diff options
author | Maxim Mikityanskiy | 2022-10-01 21:56:21 -0700 |
---|---|---|
committer | Jakub Kicinski | 2022-10-03 16:55:27 -0700 |
commit | cfb4d09c30c9d5b2b4d09766ebff2ec7a0f669da (patch) | |
tree | df450fa2dbd4d3bf49355584cb2de622562a2d3b /include/linux/sunrpc | |
parent | 1ca6492ec964325396d5822a26ff53876e466f71 (diff) |
net/mlx5e: xsk: Improve need_wakeup logic
XSK need_wakeup mechanism allows the driver to stop busy waiting for
buffers when the fill ring is empty, yield to the application and signal
it that the driver needs to be waken up after the application refills
the fill ring.
Add protection against the race condition on the RX (refill) side: if
the application refills buffers after xskrq->post_wqes is called, but
before mlx5e_xsk_update_rx_wakeup, NAPI will exit, skipping taking these
buffers to the hardware WQ, and the application won't wake it up again.
Optimize the whole need_wakeup logic, removing unneeded flows, to
compensate for this new check.
Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/sunrpc')
0 files changed, 0 insertions, 0 deletions