Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Dec 2024 00:51:29 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 7211ab584ecf - stable/14 - mlx5e tls: use non-sleeping malloc flag is it was intended
Message-ID:  <202412030051.4B30pTMW016482@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=7211ab584ecf5e0a7053733188c90797bd20fcb9

commit 7211ab584ecf5e0a7053733188c90797bd20fcb9
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2024-11-25 18:45:09 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-12-03 00:39:23 +0000

    mlx5e tls: use non-sleeping malloc flag is it was intended
    
    (cherry picked from commit 67f93079075be4a2f5b7198fb3bda6d10bbd54e7)
---
 sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c b/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
index 66ecf33e67b2..af280abcdcd2 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
@@ -407,7 +407,7 @@ mlx5e_tls_snd_tag_alloc(if_t ifp, union if_snd_tag_alloc_params *params,
 	if (priv->gone != 0 || priv->tls.init == 0)
 		return (EOPNOTSUPP);
 
-	ptag = uma_zalloc(priv->tls.zone, M_WAITOK);
+	ptag = uma_zalloc(priv->tls.zone, M_NOWAIT);
  	if (ptag == NULL)
  		return (ENOMEM);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412030051.4B30pTMW016482>