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.18 [+0.18] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.19 [+0.01] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 0.20 [+0.01] TEST: Flush FDB by dev vx10 [ OK ] # 0.21 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 0.21 [+0.00] TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # 0.22 [+0.01] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 0.22 [+0.00] TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # 0.50 [+0.29] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.51 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.52 [+0.01] TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # 0.53 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.53 [+0.00] TEST: Test entries with vni 3000 [ OK ] # 0.54 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 0.54 [+0.00] TEST: Test entries with vni 4000 [ OK ] # 0.86 [+0.32] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.87 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.88 [+0.01] TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # 0.89 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.89 [+0.00] TEST: Test entries with src_vni 4000 [ OK ] # 0.90 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 0.90 [+0.00] TEST: Test entries with src_vni 3000 [ OK ] # 1.18 [+0.28] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.18 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.19 [+0.01] TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # 1.20 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.20 [+0.00] TEST: Test entries with port 1234 [ OK ] # 1.21 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 1.21 [+0.00] TEST: Test entries with port 4321 [ OK ] # 1.53 [+0.31] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.54 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.54 [+0.01] TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # 1.55 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.55 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 1.56 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 1.56 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 1.86 [+0.29] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.87 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.88 [+0.01] TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # 1.88 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.89 [+0.00] TEST: Test entries with nhid 100 [ OK ] # 1.89 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 1.90 [+0.00] TEST: Test entries with nhid 200 [ OK ] # 1.90 [+0.01] TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # 1.91 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 1.91 [+0.00] TEST: Test entries with 'nhid' keyword [ OK ] # 1.92 [+0.01] TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # 2.20 [+0.28] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.20 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.21 [+0.01] TEST: Flush FDB by dev vx10 and state permanent [ OK ] # 2.22 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.22 [+0.00] TEST: Test entries with state permanent [ OK ] # 2.23 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.23 [+0.00] TEST: Test entries with state extern_learn [ OK ] # 2.53 [+0.30] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.54 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.54 [+0.01] TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # 2.55 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.55 [+0.00] TEST: Test entries with state permanent [ OK ] # 2.56 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.57 [+0.00] TEST: Test entries with state static [ OK ] # 2.83 [+0.27] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.84 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.85 [+0.01] TEST: Flush FDB by dev vx10 and state static [ OK ] # 2.86 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.86 [+0.00] TEST: Test entries with state static [ OK ] # 2.87 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.87 [+0.00] TEST: Test entries with state dynamic [ OK ] # 3.19 [+0.33] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.20 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.21 [+0.01] TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # 3.22 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.22 [+0.00] TEST: Test entries with state permanent [ OK ] # 3.23 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.23 [+0.00] TEST: Test entries with state dynamic [ OK ] # 3.49 [+0.26] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.50 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.51 [+0.01] TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # 3.52 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.52 [+0.00] TEST: Test entries with state dynamic [ OK ] # 3.53 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.53 [+0.00] TEST: Test entries with state static [ OK ] # 3.80 [+0.27] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.81 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.82 [+0.01] TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # 3.83 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.83 [+0.00] TEST: Test entries with state permanent [ OK ] # 3.84 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.84 [+0.00] TEST: Test entries with state dynamic [ OK ] # 4.11 [+0.27] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.12 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.13 [+0.01] TEST: Flush FDB by dev vx10 and flag extern_learn [ OK ] # 4.14 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 4.14 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 4.15 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.15 [+0.00] TEST: Test entries with flag router [ OK ] # 4.46 [+0.31] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.47 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.48 [+0.01] TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # 4.48 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.49 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 4.49 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 4.50 [+0.00] TEST: Test entries with flag router [ OK ] # 4.77 [+0.28] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.78 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.79 [+0.01] TEST: Flush FDB by dev vx10 and flag router [ OK ] # 4.80 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 4.80 [+0.00] TEST: Test entries with flag router [ OK ] # 4.80 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.81 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 5.11 [+0.31] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.12 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.13 [+0.01] TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # 5.14 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.14 [+0.00] TEST: Test entries with flag router [ OK ] # 5.15 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.15 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 5.46 [+0.31] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.47 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.47 [+0.01] TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # 5.48 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.48 [+0.00] TEST: Test entries with state permanent [ OK ] # 5.49 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.49 [+0.00] TEST: Test entries with state static [ OK ] # 5.57 [+0.08] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.58 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.59 [+0.01] TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # 5.59 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.60 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 5.60 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.60 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 5.89 [+0.29] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 5.91 [+0.02] TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # 5.92 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.93 [+0.01] TEST: Check how many entries were flushed [ OK ] # 5.94 [+0.01] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 5.95 [+0.02] TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # 5.96 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.97 [+0.01] TEST: Check how many entries were flushed [ OK ] # 5.98 [+0.01] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 5.99 [+0.02] TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # 6.00 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 6.01 [+0.01] TEST: Check how many entries were flushed [ OK ] # 6.02 [+0.01] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 6.03 [+0.02] TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # 6.04 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 6.05 [+0.01] TEST: Check how many entries were flushed [ OK ] # 6.34 [+0.29] TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # 6.35 [+0.01] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 6.35 [+0.01] TEST: Flush FDB by dev br0 [ OK ] # 6.36 [+0.01] TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # 6.36 [+0.00] TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # 6.37 [+0.01] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 6.37 [+0.00] TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # 6.71 [+0.33] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 6.71 [+0.01] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 6.72 [+0.01] TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # 6.73 [+0.01] TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # 6.73 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 6.74 [+0.01] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 6.74 [+0.00] TEST: Test entries with vlan 20 [ OK ] # 7.00 [+0.26] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.01 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.02 [+0.01] TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # 7.03 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 7.03 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 7.04 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.04 [+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__->