diff options
author | Nikolay Aleksandrov <[email protected]> | 2021-11-22 17:15:12 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-11-22 15:44:49 +0000 |
commit | 8837cbbf854246f5f4d565f21e6baa945d37aded (patch) | |
tree | 23c2e14d568ef38ace50fa87f761599df6601068 /lib/test_overflow.c | |
parent | 4177d5b017a71433d4760889b88f7a29e11fad10 (diff) |
net: ipv6: add fib6_nh_release_dsts stub
We need a way to release a fib6_nh's per-cpu dsts when replacing
nexthops otherwise we can end up with stale per-cpu dsts which hold net
device references, so add a new IPv6 stub called fib6_nh_release_dsts.
It must be used after an RCU grace period, so no new dsts can be created
through a group's nexthop entry.
Similar to fib6_nh_release it shouldn't be used if fib6_nh_init has failed
so it doesn't need a dummy stub when IPv6 is not enabled.
Fixes: 7bf4796dd099 ("nexthops: add support for replace")
Signed-off-by: Nikolay Aleksandrov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions