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.04 [+2.04] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.12 [+0.09] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.21 [+0.08] TEST: Flush FDB by dev vx10 [ OK ] # 2.29 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.30 [+0.00] TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # 2.38 [+0.08] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.38 [+0.00] TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # 4.71 [+2.33] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.79 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.88 [+0.09] TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # 4.97 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.97 [+0.00] TEST: Test entries with vni 3000 [ OK ] # 5.07 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.07 [+0.00] TEST: Test entries with vni 4000 [ OK ] # 7.58 [+2.51] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.68 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.78 [+0.10] TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # 7.87 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.87 [+0.00] TEST: Test entries with src_vni 4000 [ OK ] # 7.95 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 7.96 [+0.00] TEST: Test entries with src_vni 3000 [ OK ] # 10.30 [+2.35] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.39 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.47 [+0.08] TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # 10.56 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.57 [+0.00] TEST: Test entries with port 1234 [ OK ] # 10.65 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 10.65 [+0.00] TEST: Test entries with port 4321 [ OK ] # 12.97 [+2.32] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.07 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.16 [+0.08] TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # 13.24 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.25 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 13.34 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 13.34 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 15.97 [+2.63] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.05 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.15 [+0.09] TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # 16.23 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.23 [+0.00] TEST: Test entries with nhid 100 [ OK ] # 16.33 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 16.33 [+0.00] TEST: Test entries with nhid 200 [ OK ] # 16.41 [+0.08] TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # 16.48 [+0.07] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 16.49 [+0.00] TEST: Test entries with 'nhid' keyword [ OK ] # 16.58 [+0.09] TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # 18.89 [+2.32] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 18.99 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 19.08 [+0.10] TEST: Flush FDB by dev vx10 and state permanent [ OK ] # 19.18 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 19.18 [+0.00] TEST: Test entries with state permanent [ OK ] # 19.28 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 19.29 [+0.00] TEST: Test entries with state extern_learn [ OK ] # 21.55 [+2.26] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 21.64 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 21.72 [+0.08] TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # 21.81 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 21.81 [+0.00] TEST: Test entries with state permanent [ OK ] # 21.90 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 21.90 [+0.00] TEST: Test entries with state static [ OK ] # 24.19 [+2.29] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 24.28 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 24.36 [+0.08] TEST: Flush FDB by dev vx10 and state static [ OK ] # 24.48 [+0.12] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 24.48 [+0.00] TEST: Test entries with state static [ OK ] # 24.57 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 24.58 [+0.00] TEST: Test entries with state dynamic [ OK ] # 26.94 [+2.36] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 27.03 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 27.12 [+0.09] TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # 27.21 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 27.21 [+0.00] TEST: Test entries with state permanent [ OK ] # 27.29 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 27.30 [+0.00] TEST: Test entries with state dynamic [ OK ] # 29.68 [+2.39] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 29.78 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 29.87 [+0.09] TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # 29.96 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 29.96 [+0.00] TEST: Test entries with state dynamic [ OK ] # 30.06 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 30.06 [+0.00] TEST: Test entries with state static [ OK ] # 32.43 [+2.37] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 32.52 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 32.61 [+0.08] TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # 32.72 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 32.72 [+0.00] TEST: Test entries with state permanent [ OK ] # 32.81 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 32.81 [+0.00] TEST: Test entries with state dynamic [ OK ] # 35.15 [+2.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 35.25 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 35.33 [+0.08] TEST: Flush FDB by dev vx10 and flag extern_learn [ OK ] # 35.41 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 35.41 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 35.50 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 35.50 [+0.00] TEST: Test entries with flag router [ OK ] # 37.81 [+2.31] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 37.93 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 38.01 [+0.08] TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # 38.11 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 38.11 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 38.19 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 38.19 [+0.00] TEST: Test entries with flag router [ OK ] # 40.56 [+2.37] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 40.66 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 40.75 [+0.08] TEST: Flush FDB by dev vx10 and flag router [ OK ] # 40.84 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 40.84 [+0.00] TEST: Test entries with flag router [ OK ] # 40.93 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 40.93 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 43.31 [+2.37] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 43.41 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 43.50 [+0.09] TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # 43.62 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 43.62 [+0.00] TEST: Test entries with flag router [ OK ] # 43.71 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 43.71 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 46.26 [+2.55] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 46.37 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 46.46 [+0.09] TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # 46.53 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 46.53 [+0.00] TEST: Test entries with state permanent [ OK ] # 46.64 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 46.64 [+0.00] TEST: Test entries with state static [ OK ] # 47.47 [+0.82] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 47.57 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 47.65 [+0.08] TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # 47.76 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 47.76 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 47.85 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 47.85 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 50.11 [+2.26] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 50.29 [+0.17] TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # 50.39 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 50.49 [+0.10] TEST: Check how many entries were flushed [ OK ] # 50.59 [+0.10] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 50.76 [+0.17] TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # 50.87 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 50.94 [+0.07] TEST: Check how many entries were flushed [ OK ] # 51.02 [+0.08] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 51.20 [+0.18] TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # 51.30 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 51.40 [+0.10] TEST: Check how many entries were flushed [ OK ] # 51.49 [+0.09] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 51.67 [+0.18] TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # 51.78 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 51.87 [+0.09] TEST: Check how many entries were flushed [ OK ] # 54.44 [+2.57] TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # 54.54 [+0.10] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 54.62 [+0.09] TEST: Flush FDB by dev br0 [ OK ] # 54.71 [+0.09] TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # 54.71 [+0.00] TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # 54.80 [+0.08] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 54.80 [+0.00] TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # 57.48 [+2.68] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 57.57 [+0.09] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 57.66 [+0.09] TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # 57.77 [+0.11] TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # 57.77 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 57.86 [+0.09] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 57.86 [+0.00] TEST: Test entries with vlan 20 [ OK ] # 60.08 [+2.22] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 60.18 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 60.27 [+0.09] TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # 60.36 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 60.36 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 60.46 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 60.46 [+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__->