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.28 [+0.28] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.30 [+0.01] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 0.31 [+0.01] TEST: Flush FDB by dev vx10 [ OK ] # 0.32 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 0.32 [+0.00] TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # 0.34 [+0.01] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 0.34 [+0.00] TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # 0.74 [+0.40] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.75 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.76 [+0.01] TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # 0.77 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.77 [+0.00] TEST: Test entries with vni 3000 [ OK ] # 0.79 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 0.79 [+0.00] TEST: Test entries with vni 4000 [ OK ] # 1.26 [+0.47] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.27 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.29 [+0.02] TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # 1.30 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.31 [+0.00] TEST: Test entries with src_vni 4000 [ OK ] # 1.32 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 1.32 [+0.00] TEST: Test entries with src_vni 3000 [ OK ] # 1.76 [+0.44] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.77 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.79 [+0.01] TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # 1.80 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.80 [+0.00] TEST: Test entries with port 1234 [ OK ] # 1.81 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 1.82 [+0.00] TEST: Test entries with port 4321 [ OK ] # 2.25 [+0.44] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.26 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.28 [+0.01] TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # 2.29 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.30 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 2.31 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.31 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 2.76 [+0.45] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.77 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.79 [+0.01] TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # 2.80 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.80 [+0.00] TEST: Test entries with nhid 100 [ OK ] # 2.82 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.82 [+0.00] TEST: Test entries with nhid 200 [ OK ] # 2.83 [+0.01] TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # 2.84 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.85 [+0.00] TEST: Test entries with 'nhid' keyword [ OK ] # 2.86 [+0.01] TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # 3.33 [+0.47] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.35 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.36 [+0.02] TEST: Flush FDB by dev vx10 and state permanent [ OK ] # 3.38 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.38 [+0.01] TEST: Test entries with state permanent [ OK ] # 3.39 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.40 [+0.00] TEST: Test entries with state extern_learn [ OK ] # 3.86 [+0.46] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.88 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.89 [+0.02] TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # 3.91 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.91 [+0.01] TEST: Test entries with state permanent [ OK ] # 3.92 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.92 [+0.00] TEST: Test entries with state static [ OK ] # 4.40 [+0.48] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.41 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.43 [+0.01] TEST: Flush FDB by dev vx10 and state static [ OK ] # 4.44 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 4.44 [+0.00] TEST: Test entries with state static [ OK ] # 4.45 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.46 [+0.00] TEST: Test entries with state dynamic [ OK ] # 4.86 [+0.41] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.88 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.89 [+0.01] TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # 4.90 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.90 [+0.00] TEST: Test entries with state permanent [ OK ] # 4.91 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 4.92 [+0.00] TEST: Test entries with state dynamic [ OK ] # 5.32 [+0.40] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.33 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.34 [+0.01] TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # 5.36 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.36 [+0.01] TEST: Test entries with state dynamic [ OK ] # 5.37 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.38 [+0.00] TEST: Test entries with state static [ OK ] # 5.83 [+0.45] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.84 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.85 [+0.01] TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # 5.87 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.87 [+0.00] TEST: Test entries with state permanent [ OK ] # 5.88 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.89 [+0.00] TEST: Test entries with state dynamic [ OK ] # 6.28 [+0.39] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.29 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.30 [+0.01] TEST: Flush FDB by dev vx10 and flag extern_learn [ OK ] # 6.32 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 6.32 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 6.33 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.33 [+0.00] TEST: Test entries with flag router [ OK ] # 6.73 [+0.40] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.74 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.76 [+0.02] TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # 6.77 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.77 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 6.78 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 6.78 [+0.00] TEST: Test entries with flag router [ OK ] # 7.20 [+0.42] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.22 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.23 [+0.02] TEST: Flush FDB by dev vx10 and flag router [ OK ] # 7.25 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 7.25 [+0.00] TEST: Test entries with flag router [ OK ] # 7.26 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.26 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 7.64 [+0.37] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.65 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.66 [+0.01] TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # 7.67 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.68 [+0.00] TEST: Test entries with flag router [ OK ] # 7.69 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 7.69 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 8.12 [+0.44] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.14 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.15 [+0.01] TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # 8.16 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.16 [+0.00] TEST: Test entries with state permanent [ OK ] # 8.18 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.18 [+0.00] TEST: Test entries with state static [ OK ] # 8.31 [+0.13] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.32 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.33 [+0.01] TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # 8.34 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.35 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 8.36 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.36 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 8.75 [+0.39] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 8.77 [+0.02] TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # 8.78 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.79 [+0.01] TEST: Check how many entries were flushed [ OK ] # 8.81 [+0.01] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 8.83 [+0.02] TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # 8.84 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.85 [+0.01] TEST: Check how many entries were flushed [ OK ] # 8.86 [+0.01] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 8.88 [+0.02] TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # 8.90 [+0.02] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.91 [+0.01] TEST: Check how many entries were flushed [ OK ] # 8.92 [+0.01] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 8.95 [+0.02] TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # 8.96 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.97 [+0.01] TEST: Check how many entries were flushed [ OK ] # 9.36 [+0.39] TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # 9.38 [+0.01] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 9.39 [+0.01] TEST: Flush FDB by dev br0 [ OK ] # 9.40 [+0.01] TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # 9.41 [+0.00] TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # 9.42 [+0.01] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 9.42 [+0.00] TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # 9.88 [+0.46] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 9.89 [+0.01] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 9.90 [+0.02] TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # 9.91 [+0.01] TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # 9.92 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 9.93 [+0.02] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 9.93 [+0.00] TEST: Test entries with vlan 20 [ OK ] # 10.30 [+0.36] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.31 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.32 [+0.01] TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # 10.33 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 10.34 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 10.35 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 10.35 [+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__->