ethtool: Symmetric OR-XOR RSS hash
authorGal Pressman <gal@nvidia.com>
Mon, 24 Feb 2025 17:44:13 +0000 (19:44 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Feb 2025 02:31:04 +0000 (18:31 -0800)
commitecdff893384cf169a55a66ca68c9d8917f8417a9
treeb9b817389640f6eb1c97f89505546b67ddd65c99
parentad530283d3c8bb926a08bb1a14c8aa053de4bc2c
ethtool: Symmetric OR-XOR RSS hash

Add an additional type of symmetric RSS hash type: OR-XOR.
The "Symmetric-OR-XOR" algorithm transforms the input as follows:

(SRC_IP | DST_IP, SRC_IP ^ DST_IP, SRC_PORT | DST_PORT, SRC_PORT ^ DST_PORT)

Change 'cap_rss_sym_xor_supported' to 'supported_input_xfrm', a bitmap
of supported RXH_XFRM_* types.

Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Edward Cree <ecree.xilinx@gmail.com>
Link: https://patch.msgid.link/20250224174416.499070-2-gal@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/ethtool-netlink.rst
Documentation/networking/scaling.rst
drivers/net/ethernet/intel/iavf/iavf_ethtool.c
drivers/net/ethernet/intel/ice/ice_ethtool.c
include/linux/ethtool.h
include/uapi/linux/ethtool.h
net/ethtool/ioctl.c