netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC bpf-next 0/6] Add the the capability to load HW RX checsum in eBPF programs
@ 2025-09-20 12:20 Lorenzo Bianconi
  2025-09-20 12:20 ` [PATCH RFC bpf-next 1/6] netlink: specs: Add XDP RX checksum capability to XDP metadata specs Lorenzo Bianconi
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Lorenzo Bianconi @ 2025-09-20 12:20 UTC (permalink / raw)
  To: Donald Hunter, Jakub Kicinski, David S. Miller, Eric Dumazet,
	Paolo Abeni, Simon Horman, Alexei Starovoitov, Daniel Borkmann,
	Jesper Dangaard Brouer, John Fastabend, Stanislav Fomichev,
	Andrew Lunn, Tony Nguyen, Przemek Kitszel, Alexander Lobakin,
	Andrii Nakryiko, Martin KaFai Lau, Eduard Zingerman, Song Liu,
	Yonghong Song, KP Singh, Hao Luo, Jiri Olsa, Shuah Khan
  Cc: netdev, bpf, intel-wired-lan, linux-kselftest, Lorenzo Bianconi

Introduce bpf_xdp_metadata_rx_checksum() kfunc in order to load the HW
RX cheksum results in the eBPF program binded to the NIC.
Implement xmo_rx_checksum callback for veth and ice drivers.

---
Lorenzo Bianconi (6):
      netlink: specs: Add XDP RX checksum capability to XDP metadata specs
      net: xdp: Add xmo_rx_checksum callback
      veth: Add xmo_rx_checksum callback to veth driver
      net: ice: Add xmo_rx_checksum callback
      selftests/bpf: Add selftest support for bpf_xdp_metadata_rx_checksum
      selftests/bpf: Add bpf_xdp_metadata_rx_checksum support to xdp_hw_metadat prog

 Documentation/netlink/specs/netdev.yaml            |  5 ++
 drivers/net/ethernet/intel/ice/ice_base.c          |  1 +
 drivers/net/ethernet/intel/ice/ice_txrx.h          |  1 +
 drivers/net/ethernet/intel/ice/ice_txrx_lib.c      | 82 ++++++++++++++++++++++
 drivers/net/veth.c                                 | 19 +++++
 include/net/xdp.h                                  |  6 ++
 net/core/xdp.c                                     | 29 ++++++++
 .../selftests/bpf/prog_tests/xdp_metadata.c        |  7 ++
 .../testing/selftests/bpf/progs/xdp_hw_metadata.c  |  7 ++
 tools/testing/selftests/bpf/progs/xdp_metadata.c   |  1 +
 tools/testing/selftests/bpf/xdp_hw_metadata.c      | 27 +++++++
 tools/testing/selftests/bpf/xdp_metadata.h         | 13 ++++
 12 files changed, 198 insertions(+)
---
base-commit: 315f423be0d1ebe720d8fd4fa6bed68586b13d34
change-id: 20250915-xdp-meta-rxcksum-963cb3a793e7

Best regards,
-- 
Lorenzo Bianconi <lorenzo@kernel.org>


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

end of thread, other threads:[~2025-09-22 15:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-20 12:20 [PATCH RFC bpf-next 0/6] Add the the capability to load HW RX checsum in eBPF programs Lorenzo Bianconi
2025-09-20 12:20 ` [PATCH RFC bpf-next 1/6] netlink: specs: Add XDP RX checksum capability to XDP metadata specs Lorenzo Bianconi
2025-09-22 15:39   ` Stanislav Fomichev
2025-09-22 15:55     ` Lorenzo Bianconi
2025-09-20 12:20 ` [PATCH RFC bpf-next 2/6] net: xdp: Add xmo_rx_checksum callback Lorenzo Bianconi
2025-09-22 15:43   ` Stanislav Fomichev
2025-09-22 15:56     ` Lorenzo Bianconi
2025-09-20 12:20 ` [PATCH RFC bpf-next 3/6] veth: Add xmo_rx_checksum callback to veth driver Lorenzo Bianconi
2025-09-20 12:20 ` [PATCH RFC bpf-next 4/6] net: ice: Add xmo_rx_checksum callback Lorenzo Bianconi
2025-09-22 10:16   ` Maciej Fijalkowski
2025-09-22 10:32     ` Lorenzo Bianconi
2025-09-20 12:20 ` [PATCH RFC bpf-next 5/6] selftests/bpf: Add selftest support for bpf_xdp_metadata_rx_checksum Lorenzo Bianconi
2025-09-20 12:20 ` [PATCH RFC bpf-next 6/6] selftests/bpf: Add bpf_xdp_metadata_rx_checksum support to xdp_hw_metadat prog Lorenzo Bianconi

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).