make -C tools/testing/selftests TARGETS=net TEST_PROGS=fdb_flush.sh TEST_GGEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-1/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-1/tools/testing/selftests/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make[1]: Entering directory '/home/virtme/testing-1/tools/testing/selftests/net' TAP version 13 1..1 # timeout set to 6000 # selftests: net: fdb_flush.sh # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Test entries with vni 3000 [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with vni 4000 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Test entries with src_vni 4000 [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with src_vni 3000 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Test entries with port 1234 [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with port 4321 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Test entries with dst 192.0.2.1 [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with dst 192.0.2.2 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Test entries with nhid 100 [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with nhid 200 [ OK ] # TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with 'nhid' keyword [ OK ] # TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 and state permanent [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with state permanent [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with state extern_learn [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Test entries with state permanent [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with state static [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 and state static [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with state static [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Test entries with state dynamic [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Test entries with state permanent [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with state dynamic [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with state dynamic [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Test entries with state static [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with state permanent [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Test entries with state dynamic [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 and flag extern_learn [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with flag extern_learn [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Test entries with flag router [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Test entries with flag extern_learn [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with flag router [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 and flag router [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with flag router [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Test entries with flag extern_learn [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Test entries with flag router [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with flag extern_learn [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with state permanent [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with state static [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Test entries with dst 192.0.2.1 [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with dst 192.0.2.2 [ OK ] # TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Check how many entries were flushed [ OK ] # TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Check how many entries were flushed [ OK ] # TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Check how many entries were flushed [ OK ] # TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Check how many entries were flushed [ OK ] # TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # TEST: Flush FDB by dev br0 [ OK ] # TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with vlan 10 [ OK ] # TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # TEST: Test entries with vlan 20 [ OK ] [ 1132.928316] br0: port 1(vx10) entered blocking state [ 1132.928622] br0: port 1(vx10) entered disabled state [ 1132.928973] vx10: entered allmulticast mode [ 1132.929265] vx10: entered promiscuous mode # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # TEST: Test entries with vlan 10 [ OK ] # TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # TEST: Test entries with dst 192.0.2.1 [ OK ] [ 1133.128591] vx10: left allmulticast mode [ 1133.128865] vx10: left promiscuous mode [ 1133.129094] br0: port 1(vx10) entered disabled state ok 1 selftests: net: fdb_flush.sh make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing-1/tools/testing/selftests' xx__-> echo $? 0 xx__->