[PATCH bpf RFC 0/4] XDP-hints: API change for RX-hash kfunc bpf_xdp_metadata_rx_hash

Jesper Dangaard Brouer
2023-03-28T20:16:58Z

Notice targeted 6.3-rc kernel via bpf git tree.

Current API for bpf_xdp_metadata_rx_hash() returns the raw RSS hash value,
but doesn't provide information on the RSS hash type (part of 6.3-rc).

This patchset proposal is to use the return value from
bpf_xdp_metadata_rx_hash() to provide the RSS hash type.

---

Jesper Dangaard Brouer (4):
xdp: rss hash types representation
igc: bpf_xdp_metadata_rx_hash return xdp rss hash type
veth: bpf_xdp_metadata_rx_hash return xdp rss hash type
mlx5: bpf_xdp_metadata_rx_hash return xdp rss hash type

drivers/net/ethernet/intel/igc/igc_main.c | 22 ++++++-
.../net/ethernet/mellanox/mlx5/core/en/xdp.c | 61 ++++++++++++++++++-
drivers/net/veth.c | 2 +-
include/linux/mlx5/device.h | 14 ++++-
include/net/xdp.h | 54 ++++++++++++++++
net/core/xdp.c | 4 +-
6 files changed, 150 insertions(+), 7 deletions(-)

--