Skip to content

gve: various XDP fixes

Joshua Washington bpf lkml netdev stable 3 versions – Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyApplied 3/3
  2. v29 patches 1 replySuperseded
  3. v16 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Remove the more controversial fixes so that simpler fixes, (the deadlock fix in particular), are not blocked.
- v2: https://lore.kernel.org/netdev/[email protected]/

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3gve: fix XSK buffer leak when rings are stoppeddrivers/net/ethernet/google/gve/gve_rx_dqo.c+6 -00 repliesApplied
2/3gve: fix XSK buffer leak on error descriptordrivers/net/ethernet/google/gve/gve_rx_dqo.c+6 -10 repliesApplied
3/3gve: fix napi_disable deadlock when attempting to disable XSK poolsdrivers/net/ethernet/google/gve/gve_main.c+4 -40 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchTim HostetlerJordan RheeHarshitha Ramamurthy
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH net v3 0/3] gve: various XDP fixes

This patch series consists of a number of small XDP-related fixes.

These changes are split off from
https://lore.kernel.org/netdev/[email protected]/
in an effort to prevent blocking relatively simple fixes on more complex fixes that will need more feedback to merge.

A summary of the changes:
1) fix an issue where XSK buffers that have not been processed are leaked when disabling XSK pools
2) fix an XSK buffer leak when an RX error descriptor comes back from the hardware
3) fix a deadlock introduced by attempting to acquire the netdev lock after it has already been acquired

---
v3:
- Remove the more controversial fixes so that simpler fixes, (the deadlock fix in particular), are not blocked.
- v2: https://lore.kernel.org/netdev/[email protected]/

v2:
- introduce 3 new patches (7, 8, 9) based on Sashiko feedback
- corrected stat counting for packets according work_done behavioral change (patch 1)
- v1: https://lore.kernel.org/netdev/[email protected]/

Joshua Washington (3):
gve: fix XSK buffer leak when rings are stopped
gve: fix XSK buffer leak on error descriptor
gve: fix napi_disable deadlock when attempting to disable XSK pools

 drivers/net/ethernet/google/gve/gve_main.c   |  8 ++++----
 drivers/net/ethernet/google/gve/gve_rx_dqo.c | 13 ++++++++++++-
 2 files changed, 16 insertions(+), 5 deletions(-)
Signature · 1 line
2.56.0.rc1.315.gc6ed9934b7-goog