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.13 [+2.13] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.25 [+0.12] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.34 [+0.10] TEST: Flush FDB by dev vx10 [ OK ] # 2.45 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.45 [+0.00] TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # 2.57 [+0.11] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.57 [+0.00] TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # 4.98 [+2.41] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.07 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.16 [+0.09] TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # 5.28 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.28 [+0.00] TEST: Test entries with vni 3000 [ OK ] # 5.37 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.37 [+0.00] TEST: Test entries with vni 4000 [ OK ] # 7.94 [+2.57] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.04 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.13 [+0.09] TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # 8.22 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.22 [+0.00] TEST: Test entries with src_vni 4000 [ OK ] # 8.33 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.33 [+0.00] TEST: Test entries with src_vni 3000 [ OK ] # 10.76 [+2.42] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.87 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.95 [+0.09] TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # 11.06 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.06 [+0.00] TEST: Test entries with port 1234 [ OK ] # 11.15 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 11.15 [+0.00] TEST: Test entries with port 4321 [ OK ] # 13.63 [+2.48] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.73 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.83 [+0.09] TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # 13.92 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.92 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 14.03 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 14.03 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 16.78 [+2.75] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.86 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.96 [+0.10] TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # 17.06 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 17.06 [+0.00] TEST: Test entries with nhid 100 [ OK ] # 17.13 [+0.07] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 17.14 [+0.00] TEST: Test entries with nhid 200 [ OK ] # 17.22 [+0.09] TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # 17.33 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 17.33 [+0.00] TEST: Test entries with 'nhid' keyword [ OK ] # 17.40 [+0.08] TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # 19.81 [+2.40] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 19.91 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 20.01 [+0.09] TEST: Flush FDB by dev vx10 and state permanent [ OK ] # 20.10 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 20.10 [+0.00] TEST: Test entries with state permanent [ OK ] # 20.18 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 20.19 [+0.00] TEST: Test entries with state extern_learn [ OK ] # 22.53 [+2.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.62 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.70 [+0.08] TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # 22.78 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.79 [+0.00] TEST: Test entries with state permanent [ OK ] # 22.88 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 22.88 [+0.00] TEST: Test entries with state static [ OK ] # 25.37 [+2.48] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.45 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.56 [+0.11] TEST: Flush FDB by dev vx10 and state static [ OK ] # 25.67 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 25.67 [+0.00] TEST: Test entries with state static [ OK ] # 25.78 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.79 [+0.00] TEST: Test entries with state dynamic [ OK ] # 28.31 [+2.52] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 28.41 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 28.49 [+0.08] TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # 28.60 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 28.60 [+0.00] TEST: Test entries with state permanent [ OK ] # 28.71 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 28.71 [+0.00] TEST: Test entries with state dynamic [ OK ] # 31.25 [+2.54] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 31.34 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 31.43 [+0.09] TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # 31.52 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 31.53 [+0.01] TEST: Test entries with state dynamic [ OK ] # 31.63 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 31.63 [+0.00] TEST: Test entries with state static [ OK ] # 34.04 [+2.41] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 34.15 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 34.23 [+0.08] TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # 34.33 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 34.34 [+0.00] TEST: Test entries with state permanent [ OK ] # 34.43 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 34.43 [+0.00] TEST: Test entries with state dynamic [ OK ] # 36.92 [+2.48] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 37.02 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 37.10 [+0.08] TEST: Flush FDB by dev vx10 and flag extern_learn [ OK ] # 37.20 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 37.21 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 37.30 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 37.30 [+0.00] TEST: Test entries with flag router [ OK ] # 39.73 [+2.43] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 39.83 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 39.92 [+0.09] TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # 40.01 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 40.02 [+0.01] TEST: Test entries with flag extern_learn [ OK ] # 40.10 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 40.11 [+0.00] TEST: Test entries with flag router [ OK ] # 42.67 [+2.56] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 42.81 [+0.14] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 42.90 [+0.10] TEST: Flush FDB by dev vx10 and flag router [ OK ] # 43.03 [+0.13] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 43.04 [+0.00] TEST: Test entries with flag router [ OK ] # 43.15 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 43.15 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 45.57 [+2.42] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 45.66 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 45.75 [+0.09] TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # 45.88 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 45.88 [+0.00] TEST: Test entries with flag router [ OK ] # 45.97 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 45.97 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 48.64 [+2.67] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.75 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.83 [+0.09] TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # 48.92 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 48.92 [+0.00] TEST: Test entries with state permanent [ OK ] # 49.03 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 49.03 [+0.00] TEST: Test entries with state static [ OK ] # 49.99 [+0.96] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 50.10 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 50.18 [+0.08] TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # 50.29 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 50.29 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 50.38 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 50.38 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 52.66 [+2.29] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 52.82 [+0.16] TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # 52.92 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 53.01 [+0.09] TEST: Check how many entries were flushed [ OK ] # 53.10 [+0.09] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 53.29 [+0.20] TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # 53.42 [+0.12] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 53.51 [+0.09] TEST: Check how many entries were flushed [ OK ] # 53.59 [+0.09] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 53.75 [+0.16] TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # 53.85 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 53.95 [+0.10] TEST: Check how many entries were flushed [ OK ] # 54.04 [+0.09] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 54.25 [+0.21] TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # 54.34 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 54.46 [+0.12] TEST: Check how many entries were flushed [ OK ] # 57.01 [+2.55] TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # 57.12 [+0.11] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 57.23 [+0.10] TEST: Flush FDB by dev br0 [ OK ] # 57.34 [+0.12] TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # 57.35 [+0.00] TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # 57.44 [+0.09] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 57.44 [+0.00] TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # 60.44 [+3.00] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 60.54 [+0.10] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 60.63 [+0.09] TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # 60.74 [+0.10] TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # 60.74 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 60.84 [+0.09] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 60.84 [+0.00] TEST: Test entries with vlan 20 [ OK ] # 63.17 [+2.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 63.30 [+0.13] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 63.38 [+0.08] TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # 63.47 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 63.47 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 63.58 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 63.58 [+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__->