linux/Documentation
Ido Schimmel ed13923f98 ipv6: Add a sysctl to control multipath hash fields
A subsequent patch will add a new multipath hash policy where the packet
fields used for multipath hash calculation are determined by user space.
This patch adds a sysctl that allows user space to set these fields.

The packet fields are represented using a bitmask and are common between
IPv4 and IPv6 to allow user space to use the same numbering across both
protocols. For example, to hash based on standard 5-tuple:

 # sysctl -w net.ipv6.fib_multipath_hash_fields=0x0037
 net.ipv6.fib_multipath_hash_fields = 0x0037

To avoid introducing holes in 'struct netns_sysctl_ipv6', move the
'bindv6only' field after the multipath hash fields.

The kernel rejects unknown fields, for example:

 # sysctl -w net.ipv6.fib_multipath_hash_fields=0x1000
 sysctl: setting key "net.ipv6.fib_multipath_hash_fields": Invalid argument

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-05-18 13:27:32 -07:00
..
2021-05-06 14:22:58 -07:00
2021-04-30 12:22:28 -07:00
2021-05-04 18:03:38 -07:00
2021-04-07 17:32:12 +10:00
2021-04-20 06:52:08 -07:00
2021-04-29 14:32:00 -07:00
2021-04-30 12:22:28 -07:00
2021-04-28 14:27:12 -07:00
2021-04-26 16:32:11 -07:00
2021-05-01 10:14:08 -07:00
2021-04-30 11:20:37 -07:00