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.25 [+2.25] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.35 [+0.10] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.44 [+0.09] TEST: Flush FDB by dev vx10 [ OK ] # 2.53 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.53 [+0.00] TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # 2.64 [+0.10] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.64 [+0.00] TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # 5.15 [+2.51] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.26 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.35 [+0.09] TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # 5.46 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.46 [+0.00] TEST: Test entries with vni 3000 [ OK ] # 5.55 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.55 [+0.00] TEST: Test entries with vni 4000 [ OK ] # 8.22 [+2.67] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.32 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.42 [+0.10] TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # 8.50 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.51 [+0.01] TEST: Test entries with src_vni 4000 [ OK ] # 8.60 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.60 [+0.00] TEST: Test entries with src_vni 3000 [ OK ] # 11.07 [+2.47] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.18 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.26 [+0.08] TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # 11.36 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.37 [+0.00] TEST: Test entries with port 1234 [ OK ] # 11.47 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 11.47 [+0.00] TEST: Test entries with port 4321 [ OK ] # 13.92 [+2.45] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 14.03 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 14.12 [+0.09] TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # 14.24 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 14.24 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 14.35 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 14.35 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 17.05 [+2.70] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 17.16 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 17.24 [+0.08] TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # 17.33 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 17.33 [+0.00] TEST: Test entries with nhid 100 [ OK ] # 17.44 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 17.45 [+0.00] TEST: Test entries with nhid 200 [ OK ] # 17.54 [+0.09] TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # 17.62 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 17.62 [+0.00] TEST: Test entries with 'nhid' keyword [ OK ] # 17.71 [+0.09] TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # 20.10 [+2.39] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 20.19 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 20.27 [+0.08] TEST: Flush FDB by dev vx10 and state permanent [ OK ] # 20.38 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 20.38 [+0.00] TEST: Test entries with state permanent [ OK ] # 20.49 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 20.49 [+0.00] TEST: Test entries with state extern_learn [ OK ] # 22.87 [+2.38] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.97 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 23.06 [+0.09] TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # 23.16 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 23.16 [+0.00] TEST: Test entries with state permanent [ OK ] # 23.27 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 23.27 [+0.00] TEST: Test entries with state static [ OK ] # 25.81 [+2.54] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.93 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 26.01 [+0.09] TEST: Flush FDB by dev vx10 and state static [ OK ] # 26.12 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 26.12 [+0.00] TEST: Test entries with state static [ OK ] # 26.21 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 26.21 [+0.00] TEST: Test entries with state dynamic [ OK ] # 28.71 [+2.50] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 28.81 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 28.90 [+0.09] TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # 29.01 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 29.02 [+0.00] TEST: Test entries with state permanent [ OK ] # 29.11 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 29.11 [+0.00] TEST: Test entries with state dynamic [ OK ] # 31.54 [+2.43] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 31.69 [+0.14] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 31.77 [+0.08] TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # 31.87 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 31.87 [+0.00] TEST: Test entries with state dynamic [ OK ] # 31.97 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 31.97 [+0.00] TEST: Test entries with state static [ OK ] # 34.43 [+2.45] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 34.52 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 34.61 [+0.09] TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # 34.71 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 34.71 [+0.00] TEST: Test entries with state permanent [ OK ] # 34.82 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 34.83 [+0.00] TEST: Test entries with state dynamic [ OK ] # 37.25 [+2.42] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 37.34 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 37.42 [+0.08] TEST: Flush FDB by dev vx10 and flag extern_learn [ OK ] # 37.52 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 37.52 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 37.61 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 37.62 [+0.00] TEST: Test entries with flag router [ OK ] # 40.08 [+2.47] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 40.17 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 40.25 [+0.08] TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # 40.40 [+0.14] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 40.40 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 40.53 [+0.13] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 40.54 [+0.01] TEST: Test entries with flag router [ OK ] # 43.06 [+2.52] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 43.16 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 43.25 [+0.09] TEST: Flush FDB by dev vx10 and flag router [ OK ] # 43.35 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 43.35 [+0.00] TEST: Test entries with flag router [ OK ] # 43.46 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 43.46 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 45.98 [+2.52] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 46.06 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 46.15 [+0.09] TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # 46.27 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 46.28 [+0.00] TEST: Test entries with flag router [ OK ] # 46.37 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 46.37 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 49.05 [+2.68] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 49.14 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 49.23 [+0.10] TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # 49.32 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 49.32 [+0.00] TEST: Test entries with state permanent [ OK ] # 49.41 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 49.41 [+0.00] TEST: Test entries with state static [ OK ] # 50.27 [+0.86] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 50.37 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 50.45 [+0.08] TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # 50.56 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 50.56 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 50.65 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 50.65 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 52.96 [+2.30] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 53.14 [+0.19] TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # 53.24 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 53.34 [+0.09] TEST: Check how many entries were flushed [ OK ] # 53.45 [+0.11] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 53.62 [+0.17] TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # 53.71 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 53.79 [+0.08] TEST: Check how many entries were flushed [ OK ] # 53.89 [+0.10] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 54.06 [+0.17] TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # 54.16 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 54.26 [+0.10] TEST: Check how many entries were flushed [ OK ] # 54.36 [+0.09] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 54.53 [+0.17] TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # 54.63 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 54.72 [+0.09] TEST: Check how many entries were flushed [ OK ] # 57.30 [+2.58] TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # 57.40 [+0.11] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 57.49 [+0.08] TEST: Flush FDB by dev br0 [ OK ] # 57.58 [+0.10] TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # 57.59 [+0.00] TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # 57.68 [+0.09] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 57.68 [+0.00] TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # 60.45 [+2.77] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 60.55 [+0.10] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 60.64 [+0.09] TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # 60.76 [+0.12] TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # 60.76 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 60.87 [+0.10] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 60.87 [+0.00] TEST: Test entries with vlan 20 [ OK ] # 63.11 [+2.24] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 63.22 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 63.30 [+0.09] TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # 63.42 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 63.42 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 63.50 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 63.51 [+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__->