2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/Documentation/netlink
Jakub Kicinski 2f70251112 ethtool: rss: support setting flow hashing fields
Add support for ETHTOOL_SRXFH (setting hashing fields) in RSS_SET.

The tricky part is dealing with symmetric hashing. In netlink user
can change the hashing fields and symmetric hash in one request,
in IOCTL the two used to be set via different uAPI requests.
Since fields and hash function config are still separate driver
callbacks - changes to the two are not atomic. Keep things simple
and validate the settings against both pre- and post- change ones.
Meaning that we will reject the config request if user tries
to correct the flow fields and set input_xfrm in one request,
or disables input_xfrm and makes flow fields non-symmetric.

We can adjust it later if there's a real need. Starting simple feels
right, and potentially partially applying the settings isn't nice,
either.

Reviewed-by: Gal Pressman <gal@nvidia.com>
Link: https://patch.msgid.link/20250716000331.1378807-11-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-07-17 16:13:59 -07:00
..
specs ethtool: rss: support setting flow hashing fields 2025-07-17 16:13:59 -07:00
genetlink-c.yaml netlink: specs: allow header properties for attribute sets 2025-04-23 16:07:15 -07:00
genetlink-legacy.yaml netlink: specs: enforce strict naming of properties 2025-06-25 15:36:28 -07:00
genetlink.yaml netlink: specs: enforce strict naming of properties 2025-06-25 15:36:28 -07:00
netlink-raw.yaml netlink: specs: enforce strict naming of properties 2025-06-25 15:36:28 -07:00