netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC bpf-next v2 0/5] Add the the capability to load HW RX checsum in eBPF programs
@ 2025-09-25  9:30 Lorenzo Bianconi
  2025-09-25  9:30 ` [PATCH RFC bpf-next v2 1/5] netlink: specs: Add XDP RX checksum capability to XDP metadata specs Lorenzo Bianconi
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Lorenzo Bianconi @ 2025-09-25  9:30 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,
	Maciej Fijalkowski
  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.

Please note ice support changes are just compile-tested at the moment.

---
Changes in RFC v2:
- Squash patch 1/6 and 2/6
- Introduce enum xdp_checksum definitions
- Rework ice support to reuse ice_rx_csum codebase

---
Lorenzo Bianconi (5):
      netlink: specs: Add XDP RX checksum capability to XDP metadata specs
      net: 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      | 125 +++++++++++++--------
 drivers/net/veth.c                                 |  20 ++++
 include/net/xdp.h                                  |  14 +++
 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, 206 insertions(+), 44 deletions(-)
---
base-commit: 5e3fee34f626a8cb8715f5b5409416c481714ebf
change-id: 20250925-bpf-xdp-meta-rxcksum-900685e2909d

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


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

end of thread, other threads:[~2025-09-27  0:41 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-25  9:30 [PATCH RFC bpf-next v2 0/5] Add the the capability to load HW RX checsum in eBPF programs Lorenzo Bianconi
2025-09-25  9:30 ` [PATCH RFC bpf-next v2 1/5] netlink: specs: Add XDP RX checksum capability to XDP metadata specs Lorenzo Bianconi
2025-09-26  4:20   ` Stanislav Fomichev
2025-09-26  8:59     ` Jesper Dangaard Brouer
2025-09-26 22:53       ` Stanislav Fomichev
2025-09-26  9:53   ` Jesper Dangaard Brouer
2025-09-27  0:35     ` Jakub Kicinski
2025-09-27  0:41     ` Jakub Kicinski
2025-09-25  9:30 ` [PATCH RFC bpf-next v2 2/5] net: veth: Add xmo_rx_checksum callback to veth driver Lorenzo Bianconi
2025-09-25  9:30 ` [PATCH RFC bpf-next v2 3/5] net: ice: Add xmo_rx_checksum callback Lorenzo Bianconi
2025-09-25  9:30 ` [PATCH RFC bpf-next v2 4/5] selftests/bpf: Add selftest support for bpf_xdp_metadata_rx_checksum Lorenzo Bianconi
2025-09-25  9:30 ` [PATCH RFC bpf-next v2 5/5] selftests/bpf: Add bpf_xdp_metadata_rx_checksum support to xdp_hw_metadat prog Lorenzo Bianconi
2025-09-25  9:51 ` [PATCH RFC bpf-next v2 0/5] Add the the capability to load HW RX checsum in eBPF programs Jakub Sitnicki
2025-09-25 10:39   ` Lorenzo Bianconi
2025-09-25 10:58     ` Jakub Sitnicki
2025-09-26 11:45       ` Jesper Dangaard Brouer
2025-09-26 11:58         ` Jakub Sitnicki
2025-09-26 12:55           ` 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).