]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: fib_nexthops: Test cleanup of FDB entries following nexthop deletion
authorIdo Schimmel <idosch@nvidia.com>
Tue, 15 Sep 2020 11:41:03 +0000 (14:41 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2020 23:31:31 +0000 (16:31 -0700)
commit01372967ed682362a012ec9eaed98f07e637e898
treed2e066dcfbc111327cdf167152aec2b392c0d181
parent960799b5d281f9c0b13520f8d71b5c1ca02cbf55
selftests: fib_nexthops: Test cleanup of FDB entries following nexthop deletion

Commit f31cc193aebd ("vxlan: support for nexthop notifiers") registered
a listener in the VXLAN driver to the nexthop notification chain. Its
purpose is to cleanup FDB entries that use a nexthop that is being
deleted.

Test that such FDB entries are removed when the nexthop group that they
use is deleted. Test that entries are not deleted when a single nexthop
in the group is deleted.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_nexthops.sh