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.01 [+2.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.10 [+0.09] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.18 [+0.08] TEST: Flush FDB by dev vx10 [ OK ] # 2.26 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.26 [+0.00] TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # 2.35 [+0.09] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.35 [+0.00] TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # 4.64 [+2.28] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.73 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.83 [+0.10] TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # 4.93 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.93 [+0.00] TEST: Test entries with vni 3000 [ OK ] # 5.01 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.01 [+0.00] TEST: Test entries with vni 4000 [ OK ] # 7.50 [+2.49] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.60 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.70 [+0.10] TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # 7.80 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.80 [+0.00] TEST: Test entries with src_vni 4000 [ OK ] # 7.90 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 7.91 [+0.00] TEST: Test entries with src_vni 3000 [ OK ] # 10.22 [+2.32] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.32 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.42 [+0.09] TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # 10.50 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.50 [+0.00] TEST: Test entries with port 1234 [ OK ] # 10.59 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 10.59 [+0.00] TEST: Test entries with port 4321 [ OK ] # 12.93 [+2.33] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.02 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.11 [+0.08] TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # 13.18 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.19 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 13.27 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 13.28 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 15.85 [+2.57] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 15.96 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.04 [+0.08] TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # 16.14 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.14 [+0.01] TEST: Test entries with nhid 100 [ OK ] # 16.22 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 16.22 [+0.00] TEST: Test entries with nhid 200 [ OK ] # 16.31 [+0.09] TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # 16.41 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 16.41 [+0.00] TEST: Test entries with 'nhid' keyword [ OK ] # 16.49 [+0.08] TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # 18.83 [+2.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 18.92 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 19.02 [+0.10] TEST: Flush FDB by dev vx10 and state permanent [ OK ] # 19.10 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 19.10 [+0.00] TEST: Test entries with state permanent [ OK ] # 19.20 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 19.20 [+0.00] TEST: Test entries with state extern_learn [ OK ] # 21.54 [+2.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 21.61 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 21.70 [+0.08] TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # 21.77 [+0.07] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 21.78 [+0.00] TEST: Test entries with state permanent [ OK ] # 21.87 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 21.88 [+0.00] TEST: Test entries with state static [ OK ] # 24.18 [+2.30] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 24.29 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 24.37 [+0.08] TEST: Flush FDB by dev vx10 and state static [ OK ] # 24.45 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 24.45 [+0.00] TEST: Test entries with state static [ OK ] # 24.55 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 24.55 [+0.00] TEST: Test entries with state dynamic [ OK ] # 26.85 [+2.30] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 26.93 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 27.02 [+0.09] TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # 27.13 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 27.13 [+0.00] TEST: Test entries with state permanent [ OK ] # 27.22 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 27.22 [+0.00] TEST: Test entries with state dynamic [ OK ] # 29.47 [+2.24] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 29.56 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 29.65 [+0.08] TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # 29.74 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 29.74 [+0.00] TEST: Test entries with state dynamic [ OK ] # 29.83 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 29.83 [+0.00] TEST: Test entries with state static [ OK ] # 32.12 [+2.29] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 32.20 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 32.28 [+0.08] TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # 32.37 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 32.37 [+0.00] TEST: Test entries with state permanent [ OK ] # 32.47 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 32.48 [+0.00] TEST: Test entries with state dynamic [ OK ] # 34.73 [+2.25] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 34.83 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 34.91 [+0.08] TEST: Flush FDB by dev vx10 and flag extern_learn [ OK ] # 35.01 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 35.01 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 35.10 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 35.11 [+0.00] TEST: Test entries with flag router [ OK ] # 37.37 [+2.26] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 37.46 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 37.55 [+0.08] TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # 37.63 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 37.64 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 37.74 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 37.75 [+0.00] TEST: Test entries with flag router [ OK ] # 40.06 [+2.31] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 40.16 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 40.25 [+0.08] TEST: Flush FDB by dev vx10 and flag router [ OK ] # 40.34 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 40.34 [+0.00] TEST: Test entries with flag router [ OK ] # 40.44 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 40.44 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 42.78 [+2.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 42.86 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 42.96 [+0.10] TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # 43.06 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 43.06 [+0.00] TEST: Test entries with flag router [ OK ] # 43.14 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 43.14 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 45.57 [+2.43] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 45.67 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 45.75 [+0.09] TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # 45.84 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 45.84 [+0.00] TEST: Test entries with state permanent [ OK ] # 45.94 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 45.94 [+0.00] TEST: Test entries with state static [ OK ] # 46.75 [+0.81] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 46.85 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 46.93 [+0.08] TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # 47.01 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 47.02 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 47.11 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 47.11 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 49.32 [+2.20] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 49.48 [+0.16] TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # 49.57 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 49.66 [+0.09] TEST: Check how many entries were flushed [ OK ] # 49.76 [+0.10] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 49.91 [+0.16] TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # 49.99 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 50.08 [+0.09] TEST: Check how many entries were flushed [ OK ] # 50.18 [+0.09] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 50.32 [+0.15] TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # 50.43 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 50.52 [+0.09] TEST: Check how many entries were flushed [ OK ] # 50.60 [+0.09] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 50.77 [+0.16] TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # 50.87 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 50.94 [+0.08] TEST: Check how many entries were flushed [ OK ] # 53.41 [+2.46] TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # 53.50 [+0.10] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 53.59 [+0.09] TEST: Flush FDB by dev br0 [ OK ] # 53.68 [+0.10] TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # 53.69 [+0.00] TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # 53.77 [+0.08] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 53.77 [+0.00] TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # 56.45 [+2.67] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 56.55 [+0.10] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 56.63 [+0.08] TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # 56.73 [+0.10] TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # 56.73 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 56.86 [+0.12] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 56.86 [+0.00] TEST: Test entries with vlan 20 [ OK ] # 59.05 [+2.19] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 59.15 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 59.24 [+0.09] TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # 59.33 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 59.34 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 59.43 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 59.43 [+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__->