diff options
author | Petr Machata <[email protected]> | 2021-03-11 19:03:13 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-03-11 16:12:59 -0800 |
commit | 96a856256a43b88202f2ac8933092940146102ed (patch) | |
tree | 1e4c7645e78566f08d8b3e4605d9b5be001eb480 /lib/test_overflow.c | |
parent | 597f48e46b6e9142d30eaa5881c1b98338f092db (diff) |
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 <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions