]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: pmtu: Make list_flush_ipv6_exception test more demanding
authorStefano Brivio <sbrivio@redhat.com>
Fri, 21 Jun 2019 15:45:30 +0000 (17:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jun 2019 17:18:49 +0000 (10:18 -0700)
commita626f5cc012fca9d4becac69b185a25c356c33a0
tree4bb0970296305c8b482997ca7cc1c3634cacda1c
parentba504162ded6620a207ae1624aa43afcad9a6738
selftests: pmtu: Make list_flush_ipv6_exception test more demanding

Instead of just listing and flushing two cached exceptions, create
a relatively big number of them, and count how many are listed. Single
netlink dump messages contain approximately 25 entries each, and this
way we can make sure the partial dump tracking mechanism is working
properly.

While at it, also ensure that no cached routes can be listed after
flush, and remove 'sleep 1' calls, they are not actually needed.

v7: No changes

v6:
  - Merge this patch into series including fix, as it's also targeted
    for net-next. No actual changes

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/pmtu.sh