netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v5 0/4] Symmetric OR-XOR RSS hash
@ 2025-02-24 17:44 Gal Pressman
  2025-02-24 17:44 ` [PATCH net-next v5 1/4] ethtool: " Gal Pressman
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Gal Pressman @ 2025-02-24 17:44 UTC (permalink / raw)
  To: David S. Miller, Jakub Kicinski
  Cc: netdev, Eric Dumazet, Paolo Abeni, Simon Horman, Jonathan Corbet,
	Tony Nguyen, Przemek Kitszel, Andrew Lunn, Tariq Toukan,
	Edward Cree, Ahmed Zaki, linux-doc, Gal Pressman

Add support for a new type of input_xfrm: Symmetric OR-XOR.
Symmetric OR-XOR performs hash as follows:
(SRC_IP | DST_IP, SRC_IP ^ DST_IP, SRC_PORT | DST_PORT, SRC_PORT ^ DST_PORT)

Configuration is done through ethtool -x/X command.
For mlx5, the default is already symmetric hash, this patch now exposes
this to userspace and allows enabling/disabling of the feature.

Changelog -
v4->v5: https://lore.kernel.org/netdev/20250220113435.417487-1-gal@nvidia.com/
* Documentation rewording (Bagas)
* Test adjustments (Jakub)
* Verify system has at least two CPUs to run the test

v3->v4: https://lore.kernel.org/netdev/20250216182453.226325-1-gal@nvidia.com/
* Test adjustments (Jakub)

v2->v3: https://lore.kernel.org/netdev/20250205135341.542720-1-gal@nvidia.com/
* Reorder fields in ethtool_ops (Jakub)
* Add a selftest (Jakub)

v1->v2: https://lore.kernel.org/all/20250203150039.519301-1-gal@nvidia.com/
* Fix wording in comments (Edward)

Thanks,
Gal

Gal Pressman (4):
  ethtool: Symmetric OR-XOR RSS hash
  net/mlx5e: Symmetric OR-XOR RSS hash control
  selftests: drv-net: Make rand_port() get a port more reliably
  selftests: drv-net-hw: Add a test for symmetric RSS hash

 Documentation/networking/ethtool-netlink.rst  |  2 +-
 Documentation/networking/scaling.rst          | 15 +++-
 .../net/ethernet/intel/iavf/iavf_ethtool.c    |  2 +-
 drivers/net/ethernet/intel/ice/ice_ethtool.c  |  2 +-
 .../net/ethernet/mellanox/mlx5/core/en/rss.c  | 13 ++-
 .../net/ethernet/mellanox/mlx5/core/en/rss.h  |  4 +-
 .../ethernet/mellanox/mlx5/core/en/rx_res.c   | 11 +--
 .../ethernet/mellanox/mlx5/core/en/rx_res.h   |  5 +-
 .../net/ethernet/mellanox/mlx5/core/en/tir.c  |  2 +-
 .../net/ethernet/mellanox/mlx5/core/en/tir.h  |  1 +
 .../ethernet/mellanox/mlx5/core/en_ethtool.c  | 17 +++-
 include/linux/ethtool.h                       |  5 +-
 include/uapi/linux/ethtool.h                  |  4 +
 net/ethtool/ioctl.c                           |  8 +-
 .../testing/selftests/drivers/net/hw/Makefile |  1 +
 .../drivers/net/hw/rss_input_xfrm.py          | 87 +++++++++++++++++++
 tools/testing/selftests/net/lib/py/utils.py   | 17 ++--
 17 files changed, 155 insertions(+), 41 deletions(-)
 create mode 100755 tools/testing/selftests/drivers/net/hw/rss_input_xfrm.py

-- 
2.40.1


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

end of thread, other threads:[~2025-02-26  3:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-24 17:44 [PATCH net-next v5 0/4] Symmetric OR-XOR RSS hash Gal Pressman
2025-02-24 17:44 ` [PATCH net-next v5 1/4] ethtool: " Gal Pressman
2025-02-24 17:44 ` [PATCH net-next v5 2/4] net/mlx5e: Symmetric OR-XOR RSS hash control Gal Pressman
2025-02-24 17:44 ` [PATCH net-next v5 3/4] selftests: drv-net: Make rand_port() get a port more reliably Gal Pressman
2025-02-24 17:44 ` [PATCH net-next v5 4/4] selftests: drv-net-hw: Add a test for symmetric RSS hash Gal Pressman
2025-02-26  3:10 ` [PATCH net-next v5 0/4] Symmetric OR-XOR " patchwork-bot+netdevbpf

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).