summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/pmtu.sh
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2019-06-08 14:53:35 -0700
committerDavid S. Miller <davem@davemloft.net>2019-06-10 10:44:57 -0700
commit7bf4796dd09984ad1612877a82d0d139c70ae27f (patch)
tree3a146690b5c107fd54f6b4caa9b79b395ac2d4be /tools/testing/selftests/net/pmtu.sh
parent5b98324ebe29f4494b0fc45bde2d47ee716518fd (diff)
nexthops: add support for replace
Add support for atomically upating a nexthop config. When updating a nexthop, walk the lists of associated fib entries and verify the new config is valid. Replace is done by swapping nh_info for single nexthops - new config is applied to old nexthop struct, and old config is moved to new nexthop struct. For nexthop groups the same applies but for nh_group. In addition for groups the nh_parent reference needs to be updated. The old config is released by calling __remove_nexthop on the 'new' nexthop which now has the old config. This is done to avoid messing around with the list_heads that track which fib entries are using the nexthop. After the swap of config data, bump the sequence counters for FIB entries to invalidate any dst entries and send notifications to userspace. The notifications include the new nexthop spec as well as any fib entries using the updated nexthop struct. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/pmtu.sh')
0 files changed, 0 insertions, 0 deletions