make -C tools/testing/selftests TARGETS="net" TEST_PROGS=fdb_flush.sh TESTT_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-1/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-1/tools/testing/selftests/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make[1]: Entering directory '/home/virtme/testing-1/tools/testing/selftests/net' TAP version 13 1..1 # timeout set to 3600 # selftests: net: fdb_flush.sh # 0.22 [+0.22] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.23 [+0.01] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 0.24 [+0.01] TEST: Flush FDB by dev vx10 [ OK ] # 0.25 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 0.25 [+0.00] TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # 0.25 [+0.01] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 0.26 [+0.00] TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # 0.55 [+0.30] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.56 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.57 [+0.01] TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # 0.58 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.58 [+0.00] TEST: Test entries with vni 3000 [ OK ] # 0.59 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 0.59 [+0.00] TEST: Test entries with vni 4000 [ OK ] # 0.91 [+0.33] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.92 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.93 [+0.01] TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # 0.94 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.94 [+0.00] TEST: Test entries with src_vni 4000 [ OK ] # 0.95 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 0.95 [+0.00] TEST: Test entries with src_vni 3000 [ OK ] # 1.28 [+0.33] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.28 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.29 [+0.01] TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # 1.30 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.30 [+0.00] TEST: Test entries with port 1234 [ OK ] # 1.31 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 1.31 [+0.00] TEST: Test entries with port 4321 [ OK ] # 1.65 [+0.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.66 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.67 [+0.01] TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # 1.68 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.68 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 1.69 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 1.69 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 2.05 [+0.36] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.06 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.07 [+0.01] TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # 2.08 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.08 [+0.00] TEST: Test entries with nhid 100 [ OK ] # 2.09 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.09 [+0.00] TEST: Test entries with nhid 200 [ OK ] # 2.10 [+0.01] TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # 2.11 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.11 [+0.00] TEST: Test entries with 'nhid' keyword [ OK ] # 2.12 [+0.01] TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # 2.41 [+0.29] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.41 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.42 [+0.01] TEST: Flush FDB by dev vx10 and state permanent [ OK ] # 2.43 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.43 [+0.00] TEST: Test entries with state permanent [ OK ] # 2.44 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.44 [+0.00] TEST: Test entries with state extern_learn [ OK ] # 2.71 [+0.27] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.72 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.73 [+0.01] TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # 2.74 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.74 [+0.00] TEST: Test entries with state permanent [ OK ] # 2.75 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.75 [+0.00] TEST: Test entries with state static [ OK ] # 3.07 [+0.32] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.07 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.08 [+0.01] TEST: Flush FDB by dev vx10 and state static [ OK ] # 3.09 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.09 [+0.00] TEST: Test entries with state static [ OK ] # 3.10 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.10 [+0.00] TEST: Test entries with state dynamic [ OK ] # 3.39 [+0.28] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.39 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.40 [+0.01] TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # 3.41 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.41 [+0.00] TEST: Test entries with state permanent [ OK ] # 3.42 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.42 [+0.00] TEST: Test entries with state dynamic [ OK ] # 3.69 [+0.27] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.70 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.71 [+0.01] TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # 3.72 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.72 [+0.00] TEST: Test entries with state dynamic [ OK ] # 3.73 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.73 [+0.00] TEST: Test entries with state static [ OK ] # 4.02 [+0.29] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.03 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.03 [+0.01] TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # 4.04 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 4.04 [+0.00] TEST: Test entries with state permanent [ OK ] # 4.05 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.05 [+0.00] TEST: Test entries with state dynamic [ OK ] # 4.32 [+0.26] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.33 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.34 [+0.01] TEST: Flush FDB by dev vx10 and flag extern_learn [ OK ] # 4.35 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 4.35 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 4.35 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.36 [+0.00] TEST: Test entries with flag router [ OK ] # 4.63 [+0.28] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.64 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.65 [+0.01] TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # 4.66 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.66 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 4.67 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 4.67 [+0.00] TEST: Test entries with flag router [ OK ] # 4.94 [+0.27] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.95 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.96 [+0.01] TEST: Flush FDB by dev vx10 and flag router [ OK ] # 4.96 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 4.97 [+0.00] TEST: Test entries with flag router [ OK ] # 4.97 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.97 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 5.25 [+0.28] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.26 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.27 [+0.01] TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # 5.28 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.28 [+0.00] TEST: Test entries with flag router [ OK ] # 5.29 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.29 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 5.58 [+0.29] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.59 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.59 [+0.01] TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # 5.60 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.60 [+0.00] TEST: Test entries with state permanent [ OK ] # 5.61 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.61 [+0.00] TEST: Test entries with state static [ OK ] # 5.69 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.70 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.71 [+0.01] TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # 5.72 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.72 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 5.73 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.73 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 6.00 [+0.27] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 6.02 [+0.02] TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # 6.03 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 6.04 [+0.01] TEST: Check how many entries were flushed [ OK ] # 6.05 [+0.01] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 6.06 [+0.02] TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # 6.07 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 6.08 [+0.01] TEST: Check how many entries were flushed [ OK ] # 6.09 [+0.01] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 6.11 [+0.02] TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # 6.12 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 6.12 [+0.01] TEST: Check how many entries were flushed [ OK ] # 6.13 [+0.01] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 6.15 [+0.02] TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # 6.16 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 6.17 [+0.01] TEST: Check how many entries were flushed [ OK ] # 6.48 [+0.31] TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # 6.49 [+0.01] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 6.50 [+0.01] TEST: Flush FDB by dev br0 [ OK ] # 6.50 [+0.01] TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # 6.51 [+0.00] TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # 6.51 [+0.01] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 6.52 [+0.00] TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # 6.84 [+0.32] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 6.85 [+0.01] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 6.86 [+0.01] TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # 6.86 [+0.01] TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # 6.87 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 6.88 [+0.01] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 6.88 [+0.00] TEST: Test entries with vlan 20 [ OK ] # 7.14 [+0.26] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.15 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.15 [+0.01] TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # 7.16 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 7.17 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 7.17 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.17 [+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-1/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing-1/tools/testing/selftests' xx__-> echo $? 0 xx__->