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.12 [+2.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.20 [+0.08] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.30 [+0.10] TEST: Flush FDB by dev vx10 [ OK ] # 2.38 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.38 [+0.00] TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # 2.48 [+0.10] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.48 [+0.00] TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # 4.85 [+2.37] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.94 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.02 [+0.08] TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # 5.11 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.12 [+0.00] TEST: Test entries with vni 3000 [ OK ] # 5.20 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.20 [+0.00] TEST: Test entries with vni 4000 [ OK ] # 7.76 [+2.56] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.87 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.98 [+0.11] TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # 8.10 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.10 [+0.00] TEST: Test entries with src_vni 4000 [ OK ] # 8.20 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.21 [+0.00] TEST: Test entries with src_vni 3000 [ OK ] # 10.69 [+2.49] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.80 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.89 [+0.08] TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # 11.00 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.00 [+0.00] TEST: Test entries with port 1234 [ OK ] # 11.09 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 11.10 [+0.00] TEST: Test entries with port 4321 [ OK ] # 13.50 [+2.41] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.62 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.70 [+0.09] TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # 13.80 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.80 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 13.89 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 13.89 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 16.56 [+2.66] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.65 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.73 [+0.08] TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # 16.84 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.84 [+0.00] TEST: Test entries with nhid 100 [ OK ] # 16.94 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 16.94 [+0.00] TEST: Test entries with nhid 200 [ OK ] # 17.02 [+0.08] TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # 17.11 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 17.12 [+0.00] TEST: Test entries with 'nhid' keyword [ OK ] # 17.19 [+0.08] TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # 19.54 [+2.35] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 19.62 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 19.71 [+0.09] TEST: Flush FDB by dev vx10 and state permanent [ OK ] # 19.79 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 19.79 [+0.00] TEST: Test entries with state permanent [ OK ] # 19.87 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 19.88 [+0.00] TEST: Test entries with state extern_learn [ OK ] # 22.21 [+2.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.30 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.39 [+0.09] TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # 22.49 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.49 [+0.00] TEST: Test entries with state permanent [ OK ] # 22.59 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 22.59 [+0.00] TEST: Test entries with state static [ OK ] # 25.00 [+2.41] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.11 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.20 [+0.09] TEST: Flush FDB by dev vx10 and state static [ OK ] # 25.30 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 25.30 [+0.00] TEST: Test entries with state static [ OK ] # 25.38 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.39 [+0.00] TEST: Test entries with state dynamic [ OK ] # 27.79 [+2.40] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 27.87 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 27.96 [+0.09] TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # 28.06 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 28.06 [+0.00] TEST: Test entries with state permanent [ OK ] # 28.15 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 28.15 [+0.00] TEST: Test entries with state dynamic [ OK ] # 30.53 [+2.37] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 30.61 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 30.69 [+0.08] TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # 30.77 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 30.77 [+0.00] TEST: Test entries with state dynamic [ OK ] # 30.85 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 30.86 [+0.00] TEST: Test entries with state static [ OK ] # 33.19 [+2.33] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 33.30 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 33.39 [+0.09] TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # 33.46 [+0.07] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 33.46 [+0.00] TEST: Test entries with state permanent [ OK ] # 33.55 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 33.55 [+0.00] TEST: Test entries with state dynamic [ OK ] # 35.88 [+2.33] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 35.95 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 36.04 [+0.08] TEST: Flush FDB by dev vx10 and flag extern_learn [ OK ] # 36.12 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 36.13 [+0.01] TEST: Test entries with flag extern_learn [ OK ] # 36.22 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 36.22 [+0.00] TEST: Test entries with flag router [ OK ] # 38.54 [+2.32] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 38.62 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 38.71 [+0.08] TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # 38.82 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 38.82 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 38.91 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 38.91 [+0.00] TEST: Test entries with flag router [ OK ] # 41.29 [+2.38] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 41.40 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 41.47 [+0.08] TEST: Flush FDB by dev vx10 and flag router [ OK ] # 41.56 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 41.56 [+0.00] TEST: Test entries with flag router [ OK ] # 41.66 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 41.66 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 44.03 [+2.36] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 44.12 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 44.20 [+0.08] TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # 44.32 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 44.32 [+0.00] TEST: Test entries with flag router [ OK ] # 44.41 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 44.41 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 46.89 [+2.48] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 46.99 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 47.08 [+0.08] TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # 47.16 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 47.16 [+0.00] TEST: Test entries with state permanent [ OK ] # 47.25 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 47.25 [+0.00] TEST: Test entries with state static [ OK ] # 48.06 [+0.81] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.16 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.24 [+0.09] TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # 48.34 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.35 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 48.44 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 48.44 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 50.64 [+2.20] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 50.79 [+0.15] TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # 50.87 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 50.97 [+0.10] TEST: Check how many entries were flushed [ OK ] # 51.08 [+0.11] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 51.24 [+0.17] TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # 51.35 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 51.43 [+0.08] TEST: Check how many entries were flushed [ OK ] # 51.54 [+0.10] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 51.71 [+0.18] TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # 51.81 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 51.89 [+0.08] TEST: Check how many entries were flushed [ OK ] # 52.00 [+0.11] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 52.16 [+0.16] TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # 52.26 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 52.34 [+0.08] TEST: Check how many entries were flushed [ OK ] # 54.89 [+2.54] TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # 54.98 [+0.09] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 55.06 [+0.08] TEST: Flush FDB by dev br0 [ OK ] # 55.16 [+0.09] TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # 55.16 [+0.00] TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # 55.25 [+0.09] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 55.25 [+0.00] TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # 57.93 [+2.68] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 58.02 [+0.09] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 58.11 [+0.09] TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # 58.21 [+0.10] TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # 58.22 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 58.29 [+0.08] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 58.30 [+0.00] TEST: Test entries with vlan 20 [ OK ] # 60.55 [+2.25] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 60.65 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 60.74 [+0.09] TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # 60.84 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 60.84 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 60.94 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 60.94 [+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__->