]> 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)
commitc3b6f42e38061a6de0c3ae7e71cc653f377f187e
treecd7e65b9a03bce9daa67d2248e77a8b5cecd5606
parent8beb10d72442c20853919de5ee8a4689a5eb7555
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