]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: kTLS, Avoid kzalloc(GFP_KERNEL) under spinlock
authorSaeed Mahameed <saeedm@nvidia.com>
Tue, 8 Sep 2020 05:54:43 +0000 (22:54 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 22 Sep 2020 00:22:25 +0000 (17:22 -0700)
commitc936614e5bab94100a6c62c545be0b0c32ef47f5
treeaa59ac3d25dac7fbb5abd6545e163786b1759276
parent19b8f62abb095fff409cf964a15fa92c865908a6
net/mlx5e: kTLS, Avoid kzalloc(GFP_KERNEL) under spinlock

The spinlock only needed when accessing the channel's icosq, grab the lock
after the buf allocation in resync_post_get_progress_params() to avoid
kzalloc(GFP_KERNEL) in atomic context.

Fixes: c104d60a266d ("net/mlx5e: kTLS, Add kTLS RX resync support")
Reported-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c