]> git.baikalelectronics.ru Git - kernel.git/commit
net: Pass 'net' struct as first argument to fib6_info_hw_flags_set()
authorAmit Cohen <amcohen@nvidia.com>
Mon, 1 Feb 2021 19:47:53 +0000 (21:47 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 3 Feb 2021 01:45:59 +0000 (17:45 -0800)
commit4db5a858fb11758d71e257385b8e2d040fa33712
treecd7e65b9a03bce9daa67d2248e77a8b5cecd5606
parent1d4352c9675c6a19999015649ad68cc534c722e4
net: Pass 'net' struct as first argument to fib6_info_hw_flags_set()

The next patch will emit notification when hardware flags are changed,
in case that fib_notify_on_flag_change sysctl is set to 1.

To know sysctl values, net struct is needed.
This change is consistent with the IPv4 version, which gets 'net' struct
as its first argument.

Currently, the only callers of this function are mlxsw and netdevsim.
Patch the callers to pass net.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
drivers/net/netdevsim/fib.c
include/net/ip6_fib.h