aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2024-10-23 19:56:14 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2024-10-23 19:56:14 +0000
commit49597c3e84c4a1cc35f2c392d93db8d0a1cccac2 (patch)
tree5632fc8d6e2759c924122d8dd5c458db624ca48a
parent81dbc22ce8b66759a9fc4ebdef5cfc7a6185af22 (diff)
mlx5e: Use M_WAITOK when allocating TLS tags
Now that it is clear we're in a sleepable context, use M_WAITOK when allocating TLS tags. Suggested by: kib Sponsored by: Netflix
-rw-r--r--sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c4
1 files changed, 1 insertions, 3 deletions
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 c347de650250..b5caa3ba53dd 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
@@ -335,9 +335,7 @@ mlx5e_tls_snd_tag_alloc(if_t ifp,
return (EOPNOTSUPP);
/* allocate new tag from zone, if any */
- ptag = uma_zalloc(priv->tls.zone, M_NOWAIT);
- if (ptag == NULL)
- return (ENOMEM);
+ ptag = uma_zalloc(priv->tls.zone, M_WAITOK);
/* sanity check default values */
MPASS(ptag->dek_index == 0);