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.24 [+0.24] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.25 [+0.01] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 0.26 [+0.01] TEST: Flush FDB by dev vx10 [ OK ] # 0.27 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 0.27 [+0.00] TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # 0.29 [+0.01] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 0.29 [+0.00] TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # 0.63 [+0.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.64 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.65 [+0.01] TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # 0.67 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.67 [+0.00] TEST: Test entries with vni 3000 [ OK ] # 0.68 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 0.68 [+0.00] TEST: Test entries with vni 4000 [ OK ] # 1.04 [+0.36] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.06 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.07 [+0.01] TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # 1.08 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.08 [+0.00] TEST: Test entries with src_vni 4000 [ OK ] # 1.10 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 1.10 [+0.00] TEST: Test entries with src_vni 3000 [ OK ] # 1.45 [+0.35] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.46 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.48 [+0.01] TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # 1.48 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.49 [+0.00] TEST: Test entries with port 1234 [ OK ] # 1.50 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 1.50 [+0.00] TEST: Test entries with port 4321 [ OK ] # 1.84 [+0.33] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.85 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.86 [+0.01] TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # 1.87 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.87 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 1.88 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 1.88 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 2.22 [+0.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.23 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.24 [+0.01] TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # 2.25 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.25 [+0.00] TEST: Test entries with nhid 100 [ OK ] # 2.26 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.27 [+0.00] TEST: Test entries with nhid 200 [ OK ] # 2.28 [+0.01] TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # 2.29 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.29 [+0.00] TEST: Test entries with 'nhid' keyword [ OK ] # 2.30 [+0.01] TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # 2.62 [+0.32] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.63 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.65 [+0.01] TEST: Flush FDB by dev vx10 and state permanent [ OK ] # 2.66 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.66 [+0.00] TEST: Test entries with state permanent [ OK ] # 2.67 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.67 [+0.00] TEST: Test entries with state extern_learn [ OK ] # 3.02 [+0.35] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.03 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.04 [+0.01] TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # 3.05 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.06 [+0.00] TEST: Test entries with state permanent [ OK ] # 3.07 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.07 [+0.00] TEST: Test entries with state static [ OK ] # 3.40 [+0.33] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.41 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.42 [+0.01] TEST: Flush FDB by dev vx10 and state static [ OK ] # 3.43 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.43 [+0.00] TEST: Test entries with state static [ OK ] # 3.45 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.45 [+0.00] TEST: Test entries with state dynamic [ OK ] # 3.79 [+0.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.80 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.81 [+0.01] TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # 3.82 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.83 [+0.00] TEST: Test entries with state permanent [ OK ] # 3.84 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.84 [+0.00] TEST: Test entries with state dynamic [ OK ] # 4.18 [+0.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.19 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.21 [+0.01] TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # 4.22 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 4.22 [+0.00] TEST: Test entries with state dynamic [ OK ] # 4.23 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.23 [+0.00] TEST: Test entries with state static [ OK ] # 4.56 [+0.32] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.57 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.58 [+0.01] TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # 4.60 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 4.60 [+0.00] TEST: Test entries with state permanent [ OK ] # 4.61 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.61 [+0.00] TEST: Test entries with state dynamic [ OK ] # 4.94 [+0.33] 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 extern_learn [ OK ] # 4.97 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 4.98 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 4.99 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.99 [+0.00] TEST: Test entries with flag router [ OK ] # 5.37 [+0.38] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.39 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.40 [+0.01] TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # 5.41 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.41 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 5.42 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.42 [+0.00] TEST: Test entries with flag router [ OK ] # 5.76 [+0.34] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.78 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.79 [+0.01] TEST: Flush FDB by dev vx10 and flag router [ OK ] # 5.80 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.80 [+0.00] TEST: Test entries with flag router [ OK ] # 5.81 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.81 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 6.14 [+0.33] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.15 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.16 [+0.01] TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # 6.17 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.18 [+0.00] TEST: Test entries with flag router [ OK ] # 6.18 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 6.19 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 6.59 [+0.40] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.60 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.61 [+0.01] TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # 6.62 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 6.62 [+0.00] TEST: Test entries with state permanent [ OK ] # 6.63 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 6.63 [+0.00] TEST: Test entries with state static [ OK ] # 6.74 [+0.11] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.75 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.76 [+0.01] TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # 6.77 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.77 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 6.78 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 6.78 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 7.15 [+0.37] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 7.17 [+0.02] TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # 7.18 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 7.19 [+0.01] TEST: Check how many entries were flushed [ OK ] # 7.20 [+0.01] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 7.22 [+0.02] TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # 7.23 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 7.24 [+0.01] TEST: Check how many entries were flushed [ OK ] # 7.26 [+0.01] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 7.28 [+0.02] TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # 7.29 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 7.30 [+0.01] TEST: Check how many entries were flushed [ OK ] # 7.31 [+0.01] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 7.33 [+0.02] TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # 7.34 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 7.35 [+0.01] TEST: Check how many entries were flushed [ OK ] # 7.71 [+0.36] TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # 7.72 [+0.01] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 7.73 [+0.01] TEST: Flush FDB by dev br0 [ OK ] # 7.74 [+0.01] TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # 7.75 [+0.00] TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # 7.76 [+0.01] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 7.76 [+0.00] TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # 8.13 [+0.38] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 8.15 [+0.01] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 8.16 [+0.01] TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # 8.17 [+0.01] TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # 8.18 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 8.19 [+0.01] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 8.19 [+0.00] TEST: Test entries with vlan 20 [ OK ] # 8.53 [+0.35] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.55 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.56 [+0.01] TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # 8.57 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.57 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 8.59 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.59 [+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__->