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.07 [+2.07] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.16 [+0.09] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.25 [+0.09] TEST: Flush FDB by dev vx10 [ OK ] # 2.33 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.33 [+0.00] TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # 2.43 [+0.10] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 2.44 [+0.00] TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # 4.85 [+2.41] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.95 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.04 [+0.09] TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # 5.12 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.12 [+0.00] TEST: Test entries with vni 3000 [ OK ] # 5.23 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.23 [+0.00] TEST: Test entries with vni 4000 [ OK ] # 7.88 [+2.66] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.97 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.05 [+0.08] TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # 8.14 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.14 [+0.00] TEST: Test entries with src_vni 4000 [ OK ] # 8.24 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.25 [+0.00] TEST: Test entries with src_vni 3000 [ OK ] # 10.67 [+2.43] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.78 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.86 [+0.08] TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # 10.96 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.96 [+0.00] TEST: Test entries with port 1234 [ OK ] # 11.05 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 11.05 [+0.00] TEST: Test entries with port 4321 [ OK ] # 13.44 [+2.39] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.54 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.62 [+0.08] TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # 13.71 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 13.71 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 13.82 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 13.83 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 16.58 [+2.76] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.68 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.77 [+0.09] TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # 16.86 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 16.87 [+0.00] TEST: Test entries with nhid 100 [ OK ] # 16.96 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 16.96 [+0.00] TEST: Test entries with nhid 200 [ OK ] # 17.05 [+0.08] TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # 17.15 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 17.15 [+0.00] TEST: Test entries with 'nhid' keyword [ OK ] # 17.24 [+0.08] TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # 19.64 [+2.40] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 19.74 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 19.84 [+0.09] TEST: Flush FDB by dev vx10 and state permanent [ OK ] # 19.93 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 19.94 [+0.00] TEST: Test entries with state permanent [ OK ] # 20.02 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 20.03 [+0.00] TEST: Test entries with state extern_learn [ OK ] # 22.40 [+2.38] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.52 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.60 [+0.08] TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # 22.68 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 22.68 [+0.00] TEST: Test entries with state permanent [ OK ] # 22.77 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 22.77 [+0.00] TEST: Test entries with state static [ OK ] # 25.11 [+2.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.20 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.28 [+0.08] TEST: Flush FDB by dev vx10 and state static [ OK ] # 25.37 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 25.37 [+0.00] TEST: Test entries with state static [ OK ] # 25.48 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 25.48 [+0.00] TEST: Test entries with state dynamic [ OK ] # 27.82 [+2.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 27.91 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 28.00 [+0.08] TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # 28.08 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 28.08 [+0.00] TEST: Test entries with state permanent [ OK ] # 28.17 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 28.18 [+0.00] TEST: Test entries with state dynamic [ OK ] # 30.57 [+2.40] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 30.67 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 30.76 [+0.08] TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # 30.85 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 30.85 [+0.00] TEST: Test entries with state dynamic [ OK ] # 30.94 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 30.94 [+0.00] TEST: Test entries with state static [ OK ] # 33.33 [+2.39] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 33.42 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 33.51 [+0.09] TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # 33.61 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 33.61 [+0.00] TEST: Test entries with state permanent [ OK ] # 33.70 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 33.70 [+0.00] TEST: Test entries with state dynamic [ OK ] # 36.08 [+2.38] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 36.17 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 36.25 [+0.08] TEST: Flush FDB by dev vx10 and flag extern_learn [ OK ] # 36.34 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 36.34 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 36.45 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 36.45 [+0.00] TEST: Test entries with flag router [ OK ] # 38.87 [+2.42] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 38.97 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 39.05 [+0.08] TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # 39.13 [+0.07] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 39.13 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 39.21 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 39.22 [+0.00] TEST: Test entries with flag router [ OK ] # 41.56 [+2.35] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 41.65 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 41.73 [+0.09] TEST: Flush FDB by dev vx10 and flag router [ OK ] # 41.82 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 41.82 [+0.00] TEST: Test entries with flag router [ OK ] # 41.92 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 41.92 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 44.27 [+2.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 44.36 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 44.44 [+0.08] TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # 44.55 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 44.55 [+0.00] TEST: Test entries with flag router [ OK ] # 44.66 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 44.66 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 47.13 [+2.46] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 47.23 [+0.10] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 47.32 [+0.09] TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # 47.40 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 47.41 [+0.00] TEST: Test entries with state permanent [ OK ] # 47.49 [+0.08] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 47.49 [+0.00] TEST: Test entries with state static [ OK ] # 48.32 [+0.83] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.42 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.51 [+0.09] TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # 48.62 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 48.63 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 48.73 [+0.10] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 48.73 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 50.99 [+2.26] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 51.16 [+0.17] TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # 51.25 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 51.33 [+0.08] TEST: Check how many entries were flushed [ OK ] # 51.40 [+0.07] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 51.57 [+0.17] TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # 51.67 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 51.76 [+0.09] TEST: Check how many entries were flushed [ OK ] # 51.87 [+0.11] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 52.04 [+0.17] TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # 52.13 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 52.22 [+0.09] TEST: Check how many entries were flushed [ OK ] # 52.33 [+0.11] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 52.51 [+0.19] TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # 52.61 [+0.09] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 52.70 [+0.09] TEST: Check how many entries were flushed [ OK ] # 55.25 [+2.55] TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # 55.34 [+0.09] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 55.42 [+0.08] TEST: Flush FDB by dev br0 [ OK ] # 55.53 [+0.10] TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # 55.53 [+0.00] TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # 55.63 [+0.10] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 55.63 [+0.00] TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # 58.32 [+2.69] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 58.40 [+0.08] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 58.48 [+0.08] TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # 58.56 [+0.08] TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # 58.56 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 58.65 [+0.09] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 58.65 [+0.00] TEST: Test entries with vlan 20 [ OK ] # 60.86 [+2.21] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 60.96 [+0.09] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 61.04 [+0.08] TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # 61.15 [+0.11] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 61.16 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 61.28 [+0.12] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 61.28 [+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__->