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)
commit94c4fed710c372313157f20b5eced39d04a96f88
treeaa59ac3d25dac7fbb5abd6545e163786b1759276
parent581642f32f33017619355b7d91704c152df1fc2d
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: 0419d8c9d8f8 ("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