make -C tools/testing/selftests TARGETS="net" TEST_PROGS=fdb_flush.sh TESTT_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-3/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-3/tools/testing/selftests/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-3/tools/testing/selftests/net' make[1]: Entering directory '/home/virtme/testing-3/tools/testing/selftests/net' TAP version 13 1..1 # overriding timeout to 7200 # selftests: net: fdb_flush.sh # 2.20 [+2.20] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.29 [+0.09] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.38 [+0.09] TEST: Flush FDB by dev vx10 [ OK ] # 2.50 [+0.12] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.50 [+0.00] TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # 2.59 [+0.09] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.60 [+0.00] TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # 5.07 [+2.47] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.16 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.26 [+0.09] TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # 5.36 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.37 [+0.00] TEST: Test entries with vni 3000 [ OK ] # 5.48 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.48 [+0.00] TEST: Test entries with vni 4000 [ OK ] # 8.10 [+2.62] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.22 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.30 [+0.08] TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # 8.42 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.42 [+0.00] TEST: Test entries with src_vni 4000 [ OK ] # 8.52 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.52 [+0.00] TEST: Test entries with src_vni 3000 [ OK ] # 10.90 [+2.38] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.00 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.09 [+0.09] TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # 11.18 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.18 [+0.00] TEST: Test entries with port 1234 [ OK ] # 11.28 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 11.28 [+0.00] TEST: Test entries with port 4321 [ OK ] # 13.70 [+2.42] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.81 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.91 [+0.10] TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # 14.01 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 14.01 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 14.12 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 14.12 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 16.80 [+2.68] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.91 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 17.00 [+0.09] TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # 17.09 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 17.09 [+0.00] TEST: Test entries with nhid 100 [ OK ] # 17.19 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 17.19 [+0.00] TEST: Test entries with nhid 200 [ OK ] # 17.29 [+0.09] TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # 17.37 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 17.38 [+0.00] TEST: Test entries with 'nhid' keyword [ OK ] # 17.46 [+0.09] TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # 19.96 [+2.50] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 20.04 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 20.12 [+0.08] TEST: Flush FDB by dev vx10 and state permanent [ OK ] # 20.25 [+0.12] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 20.25 [+0.00] TEST: Test entries with state permanent [ OK ] # 20.35 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 20.35 [+0.00] TEST: Test entries with state extern_learn [ OK ] # 22.82 [+2.46] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.92 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 23.00 [+0.08] TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # 23.11 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 23.11 [+0.00] TEST: Test entries with state permanent [ OK ] # 23.21 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 23.21 [+0.00] TEST: Test entries with state static [ OK ] # 25.66 [+2.45] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.76 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.85 [+0.09] TEST: Flush FDB by dev vx10 and state static [ OK ] # 25.94 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 25.94 [+0.00] TEST: Test entries with state static [ OK ] # 26.02 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 26.03 [+0.00] TEST: Test entries with state dynamic [ OK ] # 28.59 [+2.56] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 28.67 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 28.76 [+0.09] TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # 28.84 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 28.84 [+0.00] TEST: Test entries with state permanent [ OK ] # 28.94 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 28.94 [+0.00] TEST: Test entries with state dynamic [ OK ] # 31.36 [+2.42] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 31.48 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 31.57 [+0.09] TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # 31.67 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 31.67 [+0.00] TEST: Test entries with state dynamic [ OK ] # 31.76 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 31.76 [+0.00] TEST: Test entries with state static [ OK ] # 34.16 [+2.39] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 34.26 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 34.33 [+0.08] TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # 34.42 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 34.42 [+0.00] TEST: Test entries with state permanent [ OK ] # 34.52 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 34.52 [+0.00] TEST: Test entries with state dynamic [ OK ] # 36.92 [+2.39] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 37.01 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 37.10 [+0.09] TEST: Flush FDB by dev vx10 and flag extern_learn [ OK ] # 37.21 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 37.21 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 37.29 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 37.30 [+0.00] TEST: Test entries with flag router [ OK ] # 39.70 [+2.41] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 39.80 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 39.89 [+0.09] TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # 39.99 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 39.99 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 40.07 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 40.07 [+0.00] TEST: Test entries with flag router [ OK ] # 42.39 [+2.32] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 42.49 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 42.56 [+0.08] TEST: Flush FDB by dev vx10 and flag router [ OK ] # 42.65 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 42.66 [+0.00] TEST: Test entries with flag router [ OK ] # 42.76 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 42.76 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 45.15 [+2.39] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 45.27 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 45.35 [+0.09] TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # 45.45 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 45.45 [+0.00] TEST: Test entries with flag router [ OK ] # 45.54 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 45.54 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 48.02 [+2.48] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.12 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.21 [+0.09] TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # 48.31 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 48.31 [+0.00] TEST: Test entries with state permanent [ OK ] # 48.39 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 48.39 [+0.00] TEST: Test entries with state static [ OK ] # 49.19 [+0.80] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 49.27 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 49.36 [+0.09] TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # 49.46 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 49.46 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 49.56 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 49.56 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 51.89 [+2.33] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 52.05 [+0.16] TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # 52.13 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 52.22 [+0.08] TEST: Check how many entries were flushed [ OK ] # 52.31 [+0.10] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 52.49 [+0.18] TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # 52.57 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 52.66 [+0.09] TEST: Check how many entries were flushed [ OK ] # 52.75 [+0.09] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 52.91 [+0.17] TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # 53.02 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 53.11 [+0.09] TEST: Check how many entries were flushed [ OK ] # 53.22 [+0.11] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 53.39 [+0.16] TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # 53.47 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 53.56 [+0.10] TEST: Check how many entries were flushed [ OK ] # 56.17 [+2.61] TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # 56.27 [+0.11] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 56.36 [+0.09] TEST: Flush FDB by dev br0 [ OK ] # 56.44 [+0.08] TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # 56.45 [+0.00] TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # 56.53 [+0.08] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 56.53 [+0.00] TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # 59.23 [+2.70] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 59.30 [+0.08] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 59.40 [+0.10] TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # 59.50 [+0.09] TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # 59.50 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 59.61 [+0.11] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 59.61 [+0.00] TEST: Test entries with vlan 20 [ OK ] # 61.92 [+2.30] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 62.03 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 62.11 [+0.08] TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # 62.23 [+0.12] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 62.23 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 62.32 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 62.32 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] ok 1 selftests: net: fdb_flush.sh make[1]: Leaving directory '/home/virtme/testing-3/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing-3/tools/testing/selftests' xx__-> echo $? 0 xx__-> echo scan > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak xx__->