bnxt_en: Add XDP RSS hash metadata
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | bnxt_en: use bnxt_xdp_buff for xdp contextdrivers/ drivers/ | +21 | 0 replies | |
| 2/2 | bnxt_en: Implement XDP RSS hash metadata extractiondrivers/ drivers/ drivers/ +1 more | +56 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Joe Damato |
|---|---|
| Series | R-b R-b R-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] bnxt_en: Add XDP RSS hash metadata
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(-)
Signature · 1 line
2.43.0