netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 bpf 0/3] net: bpf_xdp_adjust_tail() fixes
@ 2023-12-12 12:57 Maciej Fijalkowski
  2023-12-12 12:57 ` [PATCH v2 bpf 1/3] xsk: recycle buffer in case Rx queue was full Maciej Fijalkowski
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Maciej Fijalkowski @ 2023-12-12 12:57 UTC (permalink / raw)
  To: bpf, ast, daniel, andrii
  Cc: netdev, magnus.karlsson, bjorn, maciej.fijalkowski, echaudro,
	lorenzo

Hi,

this set is about fixing bpf_xdp_adjust_tail() usage in XDP progs for
multi-buffer AF_XDP. Both copy and zero-copy modes were broken.

Thanks,
Maciej

v2:
- fix !CONFIG_XDP_SOCKETS builds
- add reviewed-by tag to patch 3

Maciej Fijalkowski (3):
  xsk: recycle buffer in case Rx queue was full
  xsk: fix usage of multi-buffer BPF helpers for ZC XDP
  ice: work on pre-XDP prog frag count

 drivers/net/ethernet/intel/ice/ice_txrx.c     | 14 ++++--
 drivers/net/ethernet/intel/ice/ice_txrx.h     |  1 +
 drivers/net/ethernet/intel/ice/ice_txrx_lib.h | 31 ++++++++----
 include/net/xdp_sock_drv.h                    | 26 ++++++++++
 net/core/filter.c                             | 48 +++++++++++++++----
 net/xdp/xsk.c                                 | 12 +++--
 6 files changed, 105 insertions(+), 27 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-12-12 13:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-12 12:57 [PATCH v2 bpf 0/3] net: bpf_xdp_adjust_tail() fixes Maciej Fijalkowski
2023-12-12 12:57 ` [PATCH v2 bpf 1/3] xsk: recycle buffer in case Rx queue was full Maciej Fijalkowski
2023-12-12 13:14   ` Magnus Karlsson
2023-12-12 12:57 ` [PATCH v2 bpf 2/3] xsk: fix usage of multi-buffer BPF helpers for ZC XDP Maciej Fijalkowski
2023-12-12 13:30   ` Magnus Karlsson
2023-12-12 13:36     ` Maciej Fijalkowski
2023-12-12 12:57 ` [PATCH v2 bpf 3/3] ice: work on pre-XDP prog frag count Maciej Fijalkowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).