selftests: pmtu: add explicit tests for PMTU exceptions cleanup
authorPaolo Abeni <pabeni@redhat.com>
Mon, 25 Feb 2019 15:08:37 +0000 (16:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Feb 2019 05:28:59 +0000 (21:28 -0800)
commitb3cc4f8a8a411bbf07a7d7213ce9c7571ded38b9
tree03b898eede8834f2c7d71b6a7d9670438ceb8e90
parent651eb32e569e50564803891cf2a8d22e49e979a5
selftests: pmtu: add explicit tests for PMTU exceptions cleanup

Add a couple of new tests, explicitly checking that the kernel
timely releases PMTU exceptions on related device removal.
This is mostly a regression test vs the issue fixed by
commit f5b51fe804ec ("ipv6: route: purge exception on removal")

Only 2 new test cases have been added, instead of extending all
the existing ones, because the reproducer requires executing
several commands and would slow down too much the tests otherwise.

v2 -> v3:
 - more cleanup, still from Stefano

v1 -> v2:
 - several script cleanups, as suggested by Stefano

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/pmtu.sh