XDP hardware hints discussion mail archive
 help / color / mirror / Atom feed
* [xdp-hints] [PATCH bpf RFC-V2 0/5] XDP-hints: API change for RX-hash kfunc bpf_xdp_metadata_rx_hash
@ 2023-03-29 16:28 Jesper Dangaard Brouer
  2023-03-29 16:29 ` [xdp-hints] [PATCH bpf RFC-V2 1/5] xdp: rss hash types representation Jesper Dangaard Brouer
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Jesper Dangaard Brouer @ 2023-03-29 16:28 UTC (permalink / raw)
  To: bpf, Stanislav Fomichev
  Cc: Jesper Dangaard Brouer, netdev, linux-kernel, martin.lau, ast,
	daniel, alexandr.lobakin, larysa.zaremba, xdp-hints,
	anthony.l.nguyen, yoong.siang.song, boon.leong.ong,
	intel-wired-lan, pabeni, jesse.brandeburg, kuba, edumazet,
	john.fastabend, hawk, davem

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.

Alternatively we disable bpf_xdp_metadata_rx_hash() in 6.3-rc, and have
more time to nitpick the RSS hash-type bits.

---

Jesper Dangaard Brouer (5):
      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
      mlx4: bpf_xdp_metadata_rx_hash return xdp rss hash type


 drivers/net/ethernet/intel/igc/igc_main.c     | 22 +++++-
 drivers/net/ethernet/mellanox/mlx4/en_rx.c    | 20 ++++-
 .../net/ethernet/mellanox/mlx5/core/en/xdp.c  | 61 +++++++++++++-
 drivers/net/veth.c                            |  7 +-
 include/linux/mlx5/device.h                   | 14 +++-
 include/net/xdp.h                             | 79 +++++++++++++++++++
 net/core/xdp.c                                |  4 +-
 7 files changed, 196 insertions(+), 11 deletions(-)

--
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Sr. Principal Kernel Engineer at Red Hat
  LinkedIn: http://www.linkedin.com/in/brouer


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

end of thread, other threads:[~2023-03-29 21:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-29 16:28 [xdp-hints] [PATCH bpf RFC-V2 0/5] XDP-hints: API change for RX-hash kfunc bpf_xdp_metadata_rx_hash Jesper Dangaard Brouer
2023-03-29 16:29 ` [xdp-hints] [PATCH bpf RFC-V2 1/5] xdp: rss hash types representation Jesper Dangaard Brouer
2023-03-29 17:59   ` [xdp-hints] " Jesper Dangaard Brouer
2023-03-29 21:46   ` Toke Høiland-Jørgensen
2023-03-29 16:29 ` [xdp-hints] [PATCH bpf RFC-V2 2/5] igc: bpf_xdp_metadata_rx_hash return xdp rss hash type Jesper Dangaard Brouer
2023-03-29 16:29 ` [xdp-hints] [PATCH bpf RFC-V2 3/5] veth: " Jesper Dangaard Brouer
2023-03-29 16:29 ` [xdp-hints] [PATCH bpf RFC-V2 4/5] mlx5: " Jesper Dangaard Brouer
2023-03-29 16:29 ` [xdp-hints] [PATCH bpf RFC-V2 5/5] mlx4: " Jesper Dangaard Brouer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox