OSDN Git Service

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)
commit7a5e9d84f9e436035f44310511efdddb6e497996
treed2e066dcfbc111327cdf167152aec2b392c0d181
parent0695564bb4a24440b38b46bf52465a93a0ca1974
selftests: fib_nexthops: Test cleanup of FDB entries following nexthop deletion

Commit c7cdbe2efc40 ("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