Searched hist:"96 a856256a43b88202f2ac8933092940146102ed" (Results 1 – 1 of 1) sorted by relevance
/linux/net/ipv4/ |
H A D | nexthop.c | diff 96a856256a43b88202f2ac8933092940146102ed Thu Mar 11 19:03:13 CET 2021 Petr Machata <petrm@nvidia.com> nexthop: __nh_notifier_single_info_init(): Make nh_info an argument
The cited function currently uses rtnl_dereference() to get nh_info from a handed-in nexthop. However, under the resilient hashing scheme, this function will not always be called under RTNL, sometimes the mutual exclusion will be achieved differently. Therefore move the nh_info extraction from the function to its callers to make it possible to use a different synchronization guarantee.
Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: David Ahern <dsahern@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|