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.37 [+0.37] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.39 [+0.01] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 0.40 [+0.02] TEST: Flush FDB by dev vx10 [ OK ] # 0.42 [+0.02] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 0.42 [+0.00] TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # 0.43 [+0.01] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 0.44 [+0.00] TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # 0.94 [+0.51] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.96 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.97 [+0.02] TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # 0.99 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.00 [+0.00] TEST: Test entries with vni 3000 [ OK ] # 1.01 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 1.01 [+0.00] TEST: Test entries with vni 4000 [ OK ] # 1.53 [+0.52] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.54 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.55 [+0.01] TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # 1.56 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.57 [+0.00] TEST: Test entries with src_vni 4000 [ OK ] # 1.57 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 1.58 [+0.00] TEST: Test entries with src_vni 3000 [ OK ] # 2.05 [+0.47] 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.02] TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # 2.08 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.09 [+0.00] TEST: Test entries with port 1234 [ OK ] # 2.10 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.10 [+0.00] TEST: Test entries with port 4321 [ OK ] # 2.59 [+0.49] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.60 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.62 [+0.01] TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # 2.64 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.64 [+0.01] TEST: Test entries with dst 192.0.2.1 [ OK ] # 2.65 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.65 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 3.15 [+0.50] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.17 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.19 [+0.02] TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # 3.20 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.21 [+0.00] TEST: Test entries with nhid 100 [ OK ] # 3.22 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.22 [+0.00] TEST: Test entries with nhid 200 [ OK ] # 3.24 [+0.02] TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # 3.26 [+0.02] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.26 [+0.00] TEST: Test entries with 'nhid' keyword [ OK ] # 3.28 [+0.02] TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # 3.73 [+0.45] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.74 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.75 [+0.01] TEST: Flush FDB by dev vx10 and state permanent [ OK ] # 3.77 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.77 [+0.00] TEST: Test entries with state permanent [ OK ] # 3.78 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.78 [+0.00] TEST: Test entries with state extern_learn [ OK ] # 4.23 [+0.45] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.25 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.26 [+0.02] TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # 4.28 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.28 [+0.00] TEST: Test entries with state permanent [ OK ] # 4.29 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 4.29 [+0.00] TEST: Test entries with state static [ OK ] # 4.74 [+0.45] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.76 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.77 [+0.02] TEST: Flush FDB by dev vx10 and state static [ OK ] # 4.79 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 4.79 [+0.00] TEST: Test entries with state static [ OK ] # 4.80 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.81 [+0.00] TEST: Test entries with state dynamic [ OK ] # 5.28 [+0.47] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.30 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.32 [+0.02] TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # 5.33 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.33 [+0.00] TEST: Test entries with state permanent [ OK ] # 5.35 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.35 [+0.00] TEST: Test entries with state dynamic [ OK ] # 5.82 [+0.47] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.83 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.85 [+0.02] TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # 5.86 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.87 [+0.00] TEST: Test entries with state dynamic [ OK ] # 5.88 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.88 [+0.00] TEST: Test entries with state static [ OK ] # 6.35 [+0.46] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.36 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.38 [+0.01] TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # 6.39 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 6.39 [+0.00] TEST: Test entries with state permanent [ OK ] # 6.40 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.41 [+0.00] TEST: Test entries with state dynamic [ OK ] # 6.83 [+0.43] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.85 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.86 [+0.01] TEST: Flush FDB by dev vx10 and flag extern_learn [ OK ] # 6.87 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 6.88 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 6.89 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.89 [+0.00] TEST: Test entries with flag router [ OK ] # 7.35 [+0.46] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.36 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.38 [+0.02] TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # 7.40 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.40 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 7.41 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 7.42 [+0.00] TEST: Test entries with flag router [ OK ] # 7.90 [+0.49] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.91 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.93 [+0.02] TEST: Flush FDB by dev vx10 and flag router [ OK ] # 7.94 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 7.95 [+0.00] TEST: Test entries with flag router [ OK ] # 7.96 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.97 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 8.42 [+0.45] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.43 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.44 [+0.01] TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # 8.46 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.46 [+0.00] TEST: Test entries with flag router [ OK ] # 8.48 [+0.02] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.48 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 8.94 [+0.46] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.96 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.97 [+0.01] TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # 8.99 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.99 [+0.01] TEST: Test entries with state permanent [ OK ] # 9.01 [+0.02] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 9.01 [+0.01] TEST: Test entries with state static [ OK ] # 9.16 [+0.15] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 9.18 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 9.19 [+0.01] TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # 9.20 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 9.20 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 9.22 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 9.22 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 9.68 [+0.46] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 9.71 [+0.03] TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # 9.72 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 9.74 [+0.02] TEST: Check how many entries were flushed [ OK ] # 9.76 [+0.02] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 9.79 [+0.03] TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # 9.80 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 9.82 [+0.02] TEST: Check how many entries were flushed [ OK ] # 9.83 [+0.01] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 9.86 [+0.03] TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # 9.87 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 9.88 [+0.01] TEST: Check how many entries were flushed [ OK ] # 9.90 [+0.02] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 9.92 [+0.02] TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # 9.94 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 9.95 [+0.01] TEST: Check how many entries were flushed [ OK ] # 10.45 [+0.49] TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # 10.46 [+0.01] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 10.47 [+0.02] TEST: Flush FDB by dev br0 [ OK ] # 10.49 [+0.01] TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # 10.49 [+0.00] TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # 10.51 [+0.02] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 10.51 [+0.00] TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # 11.03 [+0.52] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 11.05 [+0.01] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 11.06 [+0.02] TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # 11.08 [+0.01] TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # 11.08 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 11.09 [+0.01] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 11.10 [+0.00] TEST: Test entries with vlan 20 [ OK ] # 11.55 [+0.46] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.57 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.58 [+0.02] TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # 11.59 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 11.60 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 11.61 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.61 [+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__->