diff options
author | David Ahern <dsahern@gmail.com> | 2019-03-28 04:53:47 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-29 18:48:03 +0100 |
commit | 331c7a402358de6206232f6aab7aa48ec6c1088a (patch) | |
tree | df3c9ac99ca90245fa32e9f5cd115f665eb2f117 /Documentation | |
parent | ipv4: Define fib_get_nhs when CONFIG_IP_ROUTE_MULTIPATH is disabled (diff) | |
download | linux-331c7a402358de6206232f6aab7aa48ec6c1088a.tar.xz linux-331c7a402358de6206232f6aab7aa48ec6c1088a.zip |
ipv4: Move IN_DEV_IGNORE_ROUTES_WITH_LINKDOWN to helper
in_dev lookup followed by IN_DEV_IGNORE_ROUTES_WITH_LINKDOWN check
is called in several places, some with the rcu lock and others with the
rtnl held.
Move the check to a helper similar to what IPv6 has. Since the helper
can be invoked from either context use rcu_dereference_rtnl to
dereference ip_ptr.
Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions