]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: Introduce ip6_multipath_hash_policy()
authorPetr Machata <petrm@mellanox.com>
Sun, 11 Mar 2018 07:45:47 +0000 (09:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2018 15:07:15 +0000 (11:07 -0400)
commit1bb0dc08ab843c892ef960e5b2810873d50aa2a3
tree425c07f80a2358d362f91a0524ec02d26a474598
parente6a10e0c26caeed79d5749cfb8ddbce2502d5b50
net: ipv6: Introduce ip6_multipath_hash_policy()

In order to abstract away access to the
ipv6.sysctl.multipath_hash_policy variable, which is not available on
systems compiled without IPv6 support, introduce a wrapper function
ip6_multipath_hash_policy() that falls back to 0 on non-IPv6 systems.

Use this wrapper from mlxsw/spectrum_router instead of a direct
reference.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
include/net/ipv6.h