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.17 [+2.17] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.26 [+0.09] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.36 [+0.10] TEST: Flush FDB by dev vx10 [ OK ] # 2.48 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.48 [+0.00] TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # 2.57 [+0.10] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.58 [+0.00] TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # 5.17 [+2.59] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.29 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.37 [+0.09] TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # 5.48 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.48 [+0.00] TEST: Test entries with vni 3000 [ OK ] # 5.57 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.58 [+0.00] TEST: Test entries with vni 4000 [ OK ] # 8.34 [+2.77] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.45 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.54 [+0.08] TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # 8.64 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.64 [+0.00] TEST: Test entries with src_vni 4000 [ OK ] # 8.73 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.73 [+0.00] TEST: Test entries with src_vni 3000 [ OK ] # 11.24 [+2.50] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.32 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.41 [+0.09] TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # 11.50 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.50 [+0.00] TEST: Test entries with port 1234 [ OK ] # 11.59 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 11.59 [+0.00] TEST: Test entries with port 4321 [ OK ] # 13.89 [+2.30] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.98 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 14.06 [+0.08] TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # 14.14 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 14.15 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 14.25 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 14.25 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 16.85 [+2.60] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.94 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 17.02 [+0.09] TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # 17.12 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 17.13 [+0.00] TEST: Test entries with nhid 100 [ OK ] # 17.21 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 17.21 [+0.00] TEST: Test entries with nhid 200 [ OK ] # 17.30 [+0.09] TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # 17.38 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 17.39 [+0.00] TEST: Test entries with 'nhid' keyword [ OK ] # 17.47 [+0.08] TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # 19.78 [+2.32] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 19.86 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 19.95 [+0.08] TEST: Flush FDB by dev vx10 and state permanent [ OK ] # 20.06 [+0.12] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 20.07 [+0.00] TEST: Test entries with state permanent [ OK ] # 20.16 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 20.16 [+0.00] TEST: Test entries with state extern_learn [ OK ] # 22.47 [+2.31] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.58 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.67 [+0.09] TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # 22.75 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.76 [+0.00] TEST: Test entries with state permanent [ OK ] # 22.86 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 22.86 [+0.00] TEST: Test entries with state static [ OK ] # 25.19 [+2.33] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.26 [+0.07] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.35 [+0.09] TEST: Flush FDB by dev vx10 and state static [ OK ] # 25.44 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 25.44 [+0.00] TEST: Test entries with state static [ OK ] # 25.54 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.54 [+0.00] TEST: Test entries with state dynamic [ OK ] # 27.88 [+2.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 27.97 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 28.07 [+0.10] TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # 28.17 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 28.17 [+0.00] TEST: Test entries with state permanent [ OK ] # 28.29 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 28.29 [+0.00] TEST: Test entries with state dynamic [ OK ] # 30.69 [+2.40] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 30.80 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 30.89 [+0.09] TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # 30.96 [+0.07] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 30.96 [+0.00] TEST: Test entries with state dynamic [ OK ] # 31.05 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 31.05 [+0.00] TEST: Test entries with state static [ OK ] # 33.56 [+2.51] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 33.64 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 33.72 [+0.08] TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # 33.81 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 33.81 [+0.00] TEST: Test entries with state permanent [ OK ] # 33.92 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 33.93 [+0.00] TEST: Test entries with state dynamic [ OK ] # 36.31 [+2.39] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 36.40 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 36.48 [+0.08] TEST: Flush FDB by dev vx10 and flag extern_learn [ OK ] # 36.58 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 36.58 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 36.68 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 36.68 [+0.00] TEST: Test entries with flag router [ OK ] # 39.17 [+2.49] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 39.27 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 39.36 [+0.09] TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # 39.47 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 39.47 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 39.56 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 39.57 [+0.00] TEST: Test entries with flag router [ OK ] # 41.98 [+2.41] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 42.10 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 42.18 [+0.08] TEST: Flush FDB by dev vx10 and flag router [ OK ] # 42.28 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 42.28 [+0.00] TEST: Test entries with flag router [ OK ] # 42.41 [+0.13] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 42.41 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 45.12 [+2.71] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 45.24 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 45.32 [+0.08] TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # 45.43 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 45.43 [+0.00] TEST: Test entries with flag router [ OK ] # 45.54 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 45.55 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 48.07 [+2.52] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.17 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.26 [+0.09] TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # 48.36 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 48.36 [+0.00] TEST: Test entries with state permanent [ OK ] # 48.47 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 48.47 [+0.00] TEST: Test entries with state static [ OK ] # 49.31 [+0.84] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 49.44 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 49.52 [+0.08] TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # 49.63 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 49.63 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 49.73 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 49.73 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 51.97 [+2.24] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 52.13 [+0.16] TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # 52.26 [+0.13] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 52.34 [+0.08] TEST: Check how many entries were flushed [ OK ] # 52.44 [+0.10] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 52.61 [+0.17] TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # 52.70 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 52.80 [+0.10] TEST: Check how many entries were flushed [ OK ] # 52.90 [+0.09] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 53.08 [+0.18] TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # 53.22 [+0.14] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 53.30 [+0.08] TEST: Check how many entries were flushed [ OK ] # 53.39 [+0.10] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 53.57 [+0.17] TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # 53.66 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 53.74 [+0.08] TEST: Check how many entries were flushed [ OK ] # 56.30 [+2.56] TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # 56.40 [+0.10] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 56.49 [+0.09] TEST: Flush FDB by dev br0 [ OK ] # 56.59 [+0.10] TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # 56.59 [+0.01] TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # 56.69 [+0.10] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 56.70 [+0.01] TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # 59.49 [+2.79] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 59.57 [+0.09] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 59.65 [+0.08] TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # 59.76 [+0.11] TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # 59.76 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 59.87 [+0.11] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 59.87 [+0.00] TEST: Test entries with vlan 20 [ OK ] # 62.11 [+2.24] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 62.22 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 62.31 [+0.09] TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # 62.40 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 62.41 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 62.51 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 62.52 [+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__->