git: 5cd87fd6df53 - stable/14 - mlx5e: Use M_WAITOK when allocating TLS tags
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Dec 2024 00:51:25 UTC
The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=5cd87fd6df53482f84fd26b99cc43d9045cff87b commit 5cd87fd6df53482f84fd26b99cc43d9045cff87b Author: Andrew Gallatin <gallatin@FreeBSD.org> AuthorDate: 2024-10-23 19:56:14 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-12-03 00:39:22 +0000 mlx5e: Use M_WAITOK when allocating TLS tags (cherry picked from commit 49597c3e84c4a1cc35f2c392d93db8d0a1cccac2) --- sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c | 4 +--- 1 file changed, 1 insertion(+), 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 de0cd49eeab5..f84493f49b5d 100644 --- a/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c @@ -333,9 +333,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);