]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Guarantee room for XSK wakeup NOP on async ICOSQ
authorTariq Toukan <tariqt@nvidia.com>
Wed, 10 Feb 2021 12:58:01 +0000 (14:58 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 31 Mar 2021 20:12:24 +0000 (13:12 -0700)
commita4b447cc19e9ebf69a1845f300ec9c57d87a1e94
tree075c22160c8e2a0a506cf9b4b3cbaa2f06f7fb7d
parent1aae1cc793ba004ac46c48fe892bb93a69c5b0a5
net/mlx5e: Guarantee room for XSK wakeup NOP on async ICOSQ

XSK wakeup flow triggers an IRQ by posting a NOP WQE and hitting
the doorbell on the async ICOSQ.
It maintains its state so that it doesn't issue another NOP WQE
if it has an outstanding one already.

For this flow to work properly, the NOP post must not fail.
Make sure to reserve room for the NOP WQE in all WQE posts to the
async ICOSQ.

Fixes: 329acd12aacc ("net/mlx5e: Turn XSK ICOSQ into a general asynchronous one")
Fixes: 063cdfb23e45 ("net/mlx5e: kTLS, Add kTLS RX HW offload support")
Fixes: d92bf3a50da0 ("net/mlx5e: kTLS, Add kTLS RX resync support")
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c