On 3/11/18 12:45 AM, Ido Schimmel wrote: > From: Petr Machata <pe...@mellanox.com> > > 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 <pe...@mellanox.com> > Signed-off-by: Ido Schimmel <ido...@mellanox.com> > --- > drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 2 +- > include/net/ipv6.h | 11 +++++++++++ > 2 files changed, 12 insertions(+), 1 deletion(-) >
Acked-by: David Ahern <dsah...@gmail.com> For consistency, would be good to use that inline everywhere the sysctl is referenced.