ice: post-mbuf fixes
Status from this message: This series was applied to bpf/bpf-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 6 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | ice: fix ice_tx_ring::xdp_tx_active underflowdrivers/ | +3 | 0 replies | Applied |
| 2/6 | ice: fix XDP Tx ring overrundrivers/ | +12 | 0 replies | Applied |
| 3/6 | ice: remove two impossible branches on XDP Tx cleaningdrivers/ drivers/ | +2 | 0 replies | Applied |
| 4/6 | ice: robustify cleaning/completing XDP Tx buffersdrivers/ drivers/ drivers/ +1 more | +63 | 0 replies | Applied |
| 5/6 | ice: fix freeing XDP frames backed by Page Pooldrivers/ drivers/ drivers/ +1 more | +43 | 0 replies | Applied |
| 6/6 | ice: micro-optimize .ndo_xdp_xmit() pathdrivers/ drivers/ drivers/ | +20 | 0 replies | Applied |
Reviews trailers per patch
None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Maciej Fijalkowski |
|---|---|
| Series | A-b |
| 1/6 | |
| 2/6 | |
| 3/6 | |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH bpf-next 0/6] ice: post-mbuf fixes
The set grew from the poor performance of %BPF_F_TEST_XDP_LIVE_FRAMES when the ice-backed device is a sender. Initially there were around 3.3 Mpps / thread, while I have 5.5 on skb-based pktgen...
After fixing 0005 (0004 is a prereq for it) first (strange thing nobody noticed that earlier), I started catching random OOMs. This is how 0002 (and partially 0001) appeared.
0003 is a suggestion from Maciej to not waste time on refactoring dead lines. 0006 is a "cherry on top" to get away with the final 6.7 Mpps. 4.5 of 6 are fixes, but only the first three are tagged, since it then starts being tricky. I may backport them manually later on.
TL;DR for the series is that shortcuts are good, but only as long as they don't make the driver miss important things. %XDP_TX is purely driver-local, however .ndo_xdp_xmit() is not, and sometimes assumptions can be unsafe there.
With that series and also one core code patch[0], "live frames" and xdp-trafficgen are now safe'n'fast on ice (probably more to come).
[0] https://lore.kernel.org/all/[email protected]
---
Goes to directly to bpf-next as touches the recently added/changed code.
Alexander Lobakin (6):
ice: fix ice_tx_ring::xdp_tx_active underflow
ice: fix XDP Tx ring overrun
ice: remove two impossible branches on XDP Tx cleaning
ice: robustify cleaning/completing XDP Tx buffers
ice: fix freeing XDP frames backed by Page Pool
ice: micro-optimize .ndo_xdp_xmit() path
drivers/net/ethernet/intel/ice/ice_txrx.c | 67 +++++++++----- drivers/net/ethernet/intel/ice/ice_txrx.h | 37 ++++++-- drivers/net/ethernet/intel/ice/ice_txrx_lib.c | 88 ++++++++++++------- drivers/net/ethernet/intel/ice/ice_txrx_lib.h | 4 +- drivers/net/ethernet/intel/ice/ice_xsk.c | 12 +-- 5 files changed, 136 insertions(+), 72 deletions(-)
Signature · 1 line
2.39.1