Skip to content

ice: xsk: Rx processing fixes

Maciej Fijalkowski bpf intel-wired-lan netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 7 repliesIn review
  2. v15 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ice: xsk: return xsk buffers back to pool when cleaning the ringdrivers/net/ethernet/intel/ice/ice_xsk.c+6 -61 reply
2/6ice: xsk: allocate separate memory for XDP SW ringdrivers/net/ethernet/intel/ice/ice_base.c drivers/net/ethernet/intel/ice/ice_txrx.c drivers/net/ethernet/intel/ice/ice_xsk.c+47 -221 reply
3/6ice: remove dead store on XSK hotpathdrivers/net/ethernet/intel/ice/ice_xsk.c+0 -11 reply
4/6ice: xsk: do not clear status_error0 for ntu + nb_buffs descriptordrivers/net/ethernet/intel/ice/ice_xsk.c+1 -51 reply
5/6ice: xsk: allow empty Rx descriptors on XSK ZC data pathdrivers/net/ethernet/intel/ice/ice_xsk.c+10 -41 reply
6/6ice: xsk: fix cleaned_count settingdrivers/net/ethernet/intel/ice/ice_txrx.h drivers/net/ethernet/intel/ice/ice_xsk.c+1 -61 reply

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMaciej FijalkowskiMagnus KarlssonKiran Bhandare
SeriesA-b
1/6T-b
2/6T-b
3/6A-b T-b
4/6T-b
5/6T-b
6/6T-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 v2 thread

Cover letter [PATCH v2 intel-net 0/6] ice: xsk: Rx processing fixes

Hi there,
it seems that previous [0] Rx fix was not enough and there are still issues with AF_XDP Rx ZC support in ice driver. Elza reported that for multiple XSK sockets configured on a single netdev, some of them were becoming dead after a while. We have spotted more things that needed to be addressed this time. More of information can be found in particular commit messages.

v2 has a diff around only patch 2:
- use array_size() in memsets (Alexandr)
- remove unnecessary ternary operator from ice_alloc_rx_buf{, _zc}() (Alexandr)
- respect RCT in ice_construct_skb_zc() (Alexandr)
- fix kdoc issue (Anthony)

It also carries Alexandr's patch that was sent previously which was overlapping with this set.

Thanks,
Maciej

[0]: https://lore.kernel.org/bpf/20211129231746.2767739-1-anthony.l.nguyen at intel.com/

Alexander Lobakin (1):
ice: remove dead store on XSK hotpath

Maciej Fijalkowski (5):
ice: xsk: return xsk buffers back to pool when cleaning the ring
ice: xsk: allocate separate memory for XDP SW ring
ice: xsk: do not clear status_error0 for ntu + nb_buffs descriptor
ice: xsk: allow empty Rx descriptors on XSK ZC data path
ice: xsk: fix cleaned_count setting

 drivers/net/ethernet/intel/ice/ice_base.c | 17 ++++++
 drivers/net/ethernet/intel/ice/ice_txrx.c | 19 ++++---
 drivers/net/ethernet/intel/ice/ice_txrx.h |  1 -
 drivers/net/ethernet/intel/ice/ice_xsk.c  | 66 +++++++++++------------
 4 files changed, 62 insertions(+), 41 deletions(-)
Signature · 1 line
2.33.1