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.14 [+2.14] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.24 [+0.10] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.33 [+0.09] TEST: Flush FDB by dev vx10 [ OK ] # 2.41 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.42 [+0.00] TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # 2.53 [+0.12] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.54 [+0.00] TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # 4.99 [+2.45] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.09 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.17 [+0.08] TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # 5.25 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.26 [+0.00] TEST: Test entries with vni 3000 [ OK ] # 5.35 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.35 [+0.00] TEST: Test entries with vni 4000 [ OK ] # 7.98 [+2.63] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.07 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.16 [+0.09] TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # 8.24 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.24 [+0.00] TEST: Test entries with src_vni 4000 [ OK ] # 8.35 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.35 [+0.00] TEST: Test entries with src_vni 3000 [ OK ] # 10.74 [+2.39] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.82 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.91 [+0.08] TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # 10.99 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.99 [+0.00] TEST: Test entries with port 1234 [ OK ] # 11.09 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 11.10 [+0.00] TEST: Test entries with port 4321 [ OK ] # 13.46 [+2.37] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.55 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.64 [+0.08] TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # 13.73 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.73 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 13.84 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 13.84 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 16.52 [+2.68] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.61 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.68 [+0.08] TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # 16.78 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.78 [+0.00] TEST: Test entries with nhid 100 [ OK ] # 16.87 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 16.87 [+0.00] TEST: Test entries with nhid 200 [ OK ] # 16.96 [+0.09] TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # 17.06 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 17.06 [+0.00] TEST: Test entries with 'nhid' keyword [ OK ] # 17.14 [+0.08] TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # 19.51 [+2.37] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 19.60 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 19.68 [+0.08] TEST: Flush FDB by dev vx10 and state permanent [ OK ] # 19.78 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 19.79 [+0.00] TEST: Test entries with state permanent [ OK ] # 19.86 [+0.07] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 19.86 [+0.00] TEST: Test entries with state extern_learn [ OK ] # 22.20 [+2.33] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.30 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.39 [+0.09] TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # 22.50 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.50 [+0.00] TEST: Test entries with state permanent [ OK ] # 22.59 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 22.59 [+0.00] TEST: Test entries with state static [ OK ] # 24.95 [+2.36] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.04 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.13 [+0.09] TEST: Flush FDB by dev vx10 and state static [ OK ] # 25.22 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 25.22 [+0.00] TEST: Test entries with state static [ OK ] # 25.30 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.30 [+0.00] TEST: Test entries with state dynamic [ OK ] # 27.69 [+2.39] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 27.78 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 27.87 [+0.09] TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # 27.98 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 27.98 [+0.00] TEST: Test entries with state permanent [ OK ] # 28.07 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 28.07 [+0.00] TEST: Test entries with state dynamic [ OK ] # 30.47 [+2.40] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 30.56 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 30.65 [+0.09] TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # 30.76 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 30.76 [+0.00] TEST: Test entries with state dynamic [ OK ] # 30.85 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 30.85 [+0.00] TEST: Test entries with state static [ OK ] # 33.17 [+2.33] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 33.26 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 33.35 [+0.08] TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # 33.45 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 33.45 [+0.00] TEST: Test entries with state permanent [ OK ] # 33.54 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 33.54 [+0.00] TEST: Test entries with state dynamic [ OK ] # 35.93 [+2.39] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 36.02 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 36.10 [+0.08] TEST: Flush FDB by dev vx10 and flag extern_learn [ OK ] # 36.19 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 36.20 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 36.29 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 36.30 [+0.00] TEST: Test entries with flag router [ OK ] # 38.63 [+2.33] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 38.73 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 38.82 [+0.09] TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # 38.92 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 38.92 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 39.03 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 39.03 [+0.00] TEST: Test entries with flag router [ OK ] # 41.41 [+2.38] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 41.52 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 41.60 [+0.08] TEST: Flush FDB by dev vx10 and flag router [ OK ] # 41.69 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 41.69 [+0.00] TEST: Test entries with flag router [ OK ] # 41.77 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 41.77 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 44.09 [+2.32] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 44.18 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 44.27 [+0.09] TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # 44.36 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 44.36 [+0.00] TEST: Test entries with flag router [ OK ] # 44.47 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 44.48 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 46.96 [+2.48] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 47.05 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 47.15 [+0.10] TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # 47.24 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 47.25 [+0.00] TEST: Test entries with state permanent [ OK ] # 47.35 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 47.35 [+0.00] TEST: Test entries with state static [ OK ] # 48.18 [+0.83] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.29 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.38 [+0.09] TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # 48.48 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.48 [+0.01] TEST: Test entries with dst 192.0.2.1 [ OK ] # 48.58 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 48.58 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 50.76 [+2.18] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 50.92 [+0.17] TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # 51.02 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 51.09 [+0.08] TEST: Check how many entries were flushed [ OK ] # 51.18 [+0.08] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 51.35 [+0.17] TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # 51.45 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 51.52 [+0.08] TEST: Check how many entries were flushed [ OK ] # 51.60 [+0.08] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 51.77 [+0.17] TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # 51.88 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 51.97 [+0.10] TEST: Check how many entries were flushed [ OK ] # 52.06 [+0.09] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 52.24 [+0.17] TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # 52.32 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 52.42 [+0.10] TEST: Check how many entries were flushed [ OK ] # 54.98 [+2.56] TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # 55.08 [+0.10] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 55.16 [+0.08] TEST: Flush FDB by dev br0 [ OK ] # 55.25 [+0.09] TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # 55.25 [+0.00] TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # 55.33 [+0.08] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 55.33 [+0.00] TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # 58.01 [+2.68] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 58.11 [+0.09] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 58.21 [+0.10] TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # 58.28 [+0.07] TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # 58.28 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 58.38 [+0.09] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 58.38 [+0.00] TEST: Test entries with vlan 20 [ OK ] # 60.58 [+2.20] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 60.66 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 60.75 [+0.10] TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # 60.83 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 60.83 [+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__->