]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Refactor fib6_drop_pcpu_from
authorDavid Ahern <dsahern@gmail.com>
Thu, 23 May 2019 03:27:56 +0000 (20:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 May 2019 20:26:44 +0000 (13:26 -0700)
commit87f4f022bdbe5114cf60cb0a3bc76cbd3d97593d
tree97f6b656f97cfd291429cdb249dec3b9a090018d
parent5734354a2c6e6a356b47da027e27d53a8cd14654
ipv6: Refactor fib6_drop_pcpu_from

Move the existing pcpu walk in fib6_drop_pcpu_from to a new
helper, __fib6_drop_pcpu_from, that can be invoked per fib6_nh with a
reference to the from entries that need to be evicted. If the passed
in 'from' is non-NULL then only entries associated with that fib6_info
are removed (e.g., case where fib entry is deleted); if the 'from' is
NULL are entries are flushed (e.g., fib6_nh is deleted).

For fib6_info entries with builtin fib6_nh (ie., current code) there
is no change in behavior.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c