[PATCH 0/2] bnxt_en: Add XDP RSS hash metadata

From: Chris J Arges

Date: Fri Feb 13 2026 - 14:25:19 EST


This patchset adds the ability to use an XDP program to extract the RSS
hash of a given an xdp_md context.

For example this XDP program extracts hash and rss_type:
```
ret = bpf_xdp_metadata_rx_hash(ctx, &hash, &rss_type);
if (ret == 0) {
bpf_printk("XDP: RX hash=0x%x type=%02x", hash, rss_type);
}
```

I was able to test this with a Broadcom BCM57414 NIC and verify that the
rss_type and hash were correct for IPv4/6 TCP/UDP and ICMP traffic.

Chris J Arges (2):
bnxt_en: use bnxt_xdp_buff for xdp context
bnxt_en: Implement XDP RSS hash metadata extraction

drivers/net/ethernet/broadcom/bnxt/bnxt.c | 29 ++++++++----
drivers/net/ethernet/broadcom/bnxt/bnxt.h | 2 +
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c | 47 +++++++++++++++++++
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h | 9 ++++
4 files changed, 77 insertions(+), 10 deletions(-)

--
2.43.0