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.09 [+2.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.19 [+0.11] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.27 [+0.08] TEST: Flush FDB by dev vx10 [ OK ] # 2.36 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.36 [+0.00] TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # 2.46 [+0.10] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.46 [+0.00] TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # 4.94 [+2.47] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.03 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.12 [+0.09] TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # 5.21 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.21 [+0.00] TEST: Test entries with vni 3000 [ OK ] # 5.34 [+0.13] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.34 [+0.00] TEST: Test entries with vni 4000 [ OK ] # 8.04 [+2.70] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.14 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.23 [+0.09] TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # 8.33 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.34 [+0.00] TEST: Test entries with src_vni 4000 [ OK ] # 8.44 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.44 [+0.00] TEST: Test entries with src_vni 3000 [ OK ] # 10.98 [+2.54] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.08 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.18 [+0.10] TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # 11.27 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.27 [+0.00] TEST: Test entries with port 1234 [ OK ] # 11.37 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 11.37 [+0.00] TEST: Test entries with port 4321 [ OK ] # 13.83 [+2.46] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.91 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.99 [+0.08] TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # 14.08 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 14.08 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 14.18 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 14.18 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 17.77 [+3.59] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 17.89 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 17.98 [+0.09] TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # 18.08 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 18.08 [+0.01] TEST: Test entries with nhid 100 [ OK ] # 18.18 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 18.19 [+0.00] TEST: Test entries with nhid 200 [ OK ] # 18.28 [+0.09] TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # 18.37 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 18.37 [+0.00] TEST: Test entries with 'nhid' keyword [ OK ] # 18.46 [+0.08] TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # 20.90 [+2.45] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 21.02 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 21.10 [+0.08] TEST: Flush FDB by dev vx10 and state permanent [ OK ] # 21.23 [+0.13] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 21.23 [+0.00] TEST: Test entries with state permanent [ OK ] # 21.36 [+0.13] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 21.37 [+0.00] TEST: Test entries with state extern_learn [ OK ] # 24.53 [+3.16] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 24.65 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 24.77 [+0.12] TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # 24.92 [+0.14] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 24.92 [+0.00] TEST: Test entries with state permanent [ OK ] # 25.04 [+0.12] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 25.05 [+0.00] TEST: Test entries with state static [ OK ] # 27.78 [+2.73] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 27.89 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 27.97 [+0.08] TEST: Flush FDB by dev vx10 and state static [ OK ] # 28.09 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 28.09 [+0.00] TEST: Test entries with state static [ OK ] # 28.21 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 28.21 [+0.00] TEST: Test entries with state dynamic [ OK ] # 31.72 [+3.50] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 31.89 [+0.17] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 32.03 [+0.14] TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # 32.18 [+0.14] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 32.18 [+0.00] TEST: Test entries with state permanent [ OK ] # 32.30 [+0.12] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 32.30 [+0.00] TEST: Test entries with state dynamic [ OK ] # 35.95 [+3.64] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 36.11 [+0.16] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 36.22 [+0.12] TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # 36.35 [+0.13] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 36.36 [+0.00] TEST: Test entries with state dynamic [ OK ] # 36.48 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 36.48 [+0.00] TEST: Test entries with state static [ OK ] # 40.21 [+3.73] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 40.37 [+0.16] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 40.52 [+0.15] TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # 40.68 [+0.17] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 40.69 [+0.00] TEST: Test entries with state permanent [ OK ] # 40.84 [+0.16] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 40.85 [+0.00] TEST: Test entries with state dynamic [ OK ] # 44.66 [+3.81] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 44.77 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 44.90 [+0.12] TEST: Flush FDB by dev vx10 and flag extern_learn [ OK ] # 45.04 [+0.14] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 45.04 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 45.17 [+0.13] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 45.18 [+0.00] TEST: Test entries with flag router [ OK ] # 48.57 [+3.40] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.69 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.82 [+0.13] TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # 48.96 [+0.14] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.97 [+0.01] TEST: Test entries with flag extern_learn [ OK ] # 49.08 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 49.09 [+0.00] TEST: Test entries with flag router [ OK ] # 52.42 [+3.33] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 52.59 [+0.17] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 52.71 [+0.12] TEST: Flush FDB by dev vx10 and flag router [ OK ] # 52.83 [+0.12] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 52.83 [+0.00] TEST: Test entries with flag router [ OK ] # 52.93 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 52.94 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 56.11 [+3.18] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 56.26 [+0.15] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 56.37 [+0.11] TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # 56.52 [+0.15] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 56.53 [+0.00] TEST: Test entries with flag router [ OK ] # 56.66 [+0.13] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 56.66 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 60.34 [+3.68] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 60.48 [+0.14] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 60.64 [+0.16] TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # 60.80 [+0.16] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 60.80 [+0.00] TEST: Test entries with state permanent [ OK ] # 60.98 [+0.18] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 60.99 [+0.00] TEST: Test entries with state static [ OK ] # 62.26 [+1.28] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 62.41 [+0.15] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 62.57 [+0.16] TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # 62.71 [+0.15] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 62.72 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 62.88 [+0.16] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 62.88 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 65.98 [+3.10] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 66.20 [+0.22] TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # 66.33 [+0.13] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 66.44 [+0.12] TEST: Check how many entries were flushed [ OK ] # 66.58 [+0.14] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 66.82 [+0.24] TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # 66.92 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 67.02 [+0.10] TEST: Check how many entries were flushed [ OK ] # 67.14 [+0.12] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 67.38 [+0.24] TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # 67.53 [+0.15] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 67.67 [+0.14] TEST: Check how many entries were flushed [ OK ] # 67.81 [+0.13] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 68.06 [+0.25] TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # 68.20 [+0.14] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 68.30 [+0.11] TEST: Check how many entries were flushed [ OK ] # 71.74 [+3.43] TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # 71.87 [+0.13] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 71.97 [+0.10] TEST: Flush FDB by dev br0 [ OK ] # 72.09 [+0.12] TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # 72.09 [+0.00] TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # 72.21 [+0.12] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 72.21 [+0.00] TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # 75.30 [+3.09] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 75.40 [+0.10] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 75.50 [+0.10] TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # 75.63 [+0.13] TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # 75.63 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 75.72 [+0.09] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 75.73 [+0.00] TEST: Test entries with vlan 20 [ OK ] # 78.31 [+2.59] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 78.46 [+0.15] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 78.56 [+0.10] TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # 78.67 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 78.67 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 78.79 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 78.79 [+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__->