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.35 [+0.35] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.36 [+0.01] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 0.38 [+0.02] TEST: Flush FDB by dev vx10 [ OK ] # 0.40 [+0.02] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 0.40 [+0.00] TEST: Flush FDB by dev vx10 - test vx10 entries [ OK ] # 0.41 [+0.01] TEST: vx20: Expected 5 FDB entries, got 5 [ OK ] # 0.42 [+0.00] TEST: Flush FDB by dev vx10 - test vx20 entries [ OK ] # 0.87 [+0.45] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.88 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.90 [+0.02] TEST: Flush FDB by dev vx10 and vni 4000 [ OK ] # 0.91 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 0.92 [+0.00] TEST: Test entries with vni 3000 [ OK ] # 0.93 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 0.93 [+0.00] TEST: Test entries with vni 4000 [ OK ] # 1.41 [+0.48] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.42 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.44 [+0.01] TEST: Flush FDB by dev vx10 and src_vni 3000 [ OK ] # 1.45 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.45 [+0.00] TEST: Test entries with src_vni 4000 [ OK ] # 1.46 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 1.47 [+0.00] TEST: Test entries with src_vni 3000 [ OK ] # 1.88 [+0.41] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.89 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.90 [+0.01] TEST: Flush FDB by dev vx10 and port 4321 [ OK ] # 1.91 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 1.92 [+0.01] TEST: Test entries with port 1234 [ OK ] # 1.94 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 1.94 [+0.00] TEST: Test entries with port 4321 [ OK ] # 2.40 [+0.47] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.42 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.44 [+0.01] TEST: Flush FDB by dev vx10 and dst 192.0.2.2 [ OK ] # 2.45 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.45 [+0.00] TEST: Test entries with dst 192.0.2.1 [ OK ] # 2.47 [+0.02] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 2.47 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 2.97 [+0.50] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 2.99 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.00 [+0.01] TEST: Flush FDB by dev vx10 and nhid 200 [ OK ] # 3.01 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.02 [+0.01] TEST: Test entries with nhid 100 [ OK ] # 3.03 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.03 [+0.00] TEST: Test entries with nhid 200 [ OK ] # 3.05 [+0.02] TEST: Flush FDB by dev vx10 and nhid 100 [ OK ] # 3.06 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.06 [+0.00] TEST: Test entries with 'nhid' keyword [ OK ] # 3.08 [+0.02] TEST: Flush FDB by nhid when there are no entries with nexthop [ OK ] # 3.50 [+0.42] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.52 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 3.53 [+0.01] TEST: Flush FDB by dev vx10 and state permanent [ OK ] # 3.54 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.55 [+0.00] TEST: Test entries with state permanent [ OK ] # 3.56 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 3.56 [+0.00] TEST: Test entries with state extern_learn [ OK ] # 4.03 [+0.47] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.04 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.06 [+0.01] TEST: Flush FDB by dev vx10 and state nopermanent [ OK ] # 4.07 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.07 [+0.00] TEST: Test entries with state permanent [ OK ] # 4.08 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 4.08 [+0.00] TEST: Test entries with state static [ OK ] # 4.52 [+0.43] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.53 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.54 [+0.01] TEST: Flush FDB by dev vx10 and state static [ OK ] # 4.56 [+0.02] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 4.57 [+0.00] TEST: Test entries with state static [ OK ] # 4.58 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 4.59 [+0.00] TEST: Test entries with state dynamic [ OK ] # 5.03 [+0.45] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.05 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.06 [+0.01] TEST: Flush FDB by dev vx10 and state nostatic [ OK ] # 5.07 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.08 [+0.01] TEST: Test entries with state permanent [ OK ] # 5.09 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.09 [+0.00] TEST: Test entries with state dynamic [ OK ] # 5.51 [+0.42] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.53 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.54 [+0.02] TEST: Flush FDB by dev vx10 and state dynamic [ OK ] # 5.56 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 5.56 [+0.01] TEST: Test entries with state dynamic [ OK ] # 5.58 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 5.58 [+0.00] TEST: Test entries with state static [ OK ] # 6.03 [+0.46] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.05 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.06 [+0.02] TEST: Flush FDB by dev vx10 and state nodynamic [ OK ] # 6.08 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 6.08 [+0.00] TEST: Test entries with state permanent [ OK ] # 6.10 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.10 [+0.00] TEST: Test entries with state dynamic [ OK ] # 6.57 [+0.47] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.58 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.60 [+0.02] TEST: Flush FDB by dev vx10 and flag extern_learn [ OK ] # 6.62 [+0.02] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 6.62 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 6.63 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 6.64 [+0.00] TEST: Test entries with flag router [ OK ] # 7.09 [+0.46] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.11 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.12 [+0.02] TEST: Flush FDB by dev vx10 and flag noextern_learn [ OK ] # 7.13 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.14 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 7.15 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 7.16 [+0.00] TEST: Test entries with flag router [ OK ] # 7.59 [+0.44] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.61 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.62 [+0.02] TEST: Flush FDB by dev vx10 and flag router [ OK ] # 7.64 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 7.64 [+0.00] TEST: Test entries with flag router [ OK ] # 7.66 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 7.66 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 8.13 [+0.47] 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.02] TEST: Flush FDB by dev vx10 and flag norouter [ OK ] # 8.17 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.17 [+0.00] TEST: Test entries with flag router [ OK ] # 8.18 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.19 [+0.00] TEST: Test entries with flag extern_learn [ OK ] # 8.68 [+0.49] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.69 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.71 [+0.02] TEST: Flush FDB by dev vx10 nhid 100 router [ OK ] # 8.72 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.72 [+0.00] TEST: Test entries with state permanent [ OK ] # 8.74 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.74 [+0.00] TEST: Test entries with state static [ OK ] # 8.88 [+0.14] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.89 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.90 [+0.02] TEST: Flush FDB by dev vx10 vni 3000 port 1234 dst 192.0.2.2 [ OK ] # 8.92 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 8.92 [+0.01] TEST: Test entries with dst 192.0.2.1 [ OK ] # 8.93 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 8.94 [+0.00] TEST: Test entries with dst 192.0.2.2 [ OK ] # 9.37 [+0.43] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 9.40 [+0.03] TEST: Flush FDB by dev vx10 dst 192.0.2.1 port 1111 vni 2000 [ OK ] # 9.41 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 9.42 [+0.01] TEST: Check how many entries were flushed [ OK ] # 9.44 [+0.01] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 9.46 [+0.03] TEST: Flush FDB by dev vx10 dst 192.0.2.2 port 2222 [ OK ] # 9.47 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 9.49 [+0.01] TEST: Check how many entries were flushed [ OK ] # 9.50 [+0.01] TEST: vx10: Expected 1 FDB entries, got 1 [ OK ] # 9.53 [+0.03] TEST: Flush FDB by dev vx10 vni 3000 src_vni 5000 [ OK ] # 9.54 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 9.55 [+0.01] TEST: Check how many entries were flushed [ OK ] # 9.57 [+0.02] TEST: vx10: Expected 2 FDB entries, got 2 [ OK ] # 9.59 [+0.03] TEST: Flush FDB by dev vx10 dst 192.0.2.1 [ OK ] # 9.61 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 9.62 [+0.01] TEST: Check how many entries were flushed [ OK ] # 10.09 [+0.47] TEST: br0: Expected 12 FDB entries, got 12 [ OK ] # 10.10 [+0.01] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 10.12 [+0.02] TEST: Flush FDB by dev br0 [ OK ] # 10.13 [+0.01] TEST: br0: Expected 1 FDB entries, got 1 [ OK ] # 10.14 [+0.00] TEST: Flush FDB by dev br0 - test br0 entries [ OK ] # 10.16 [+0.02] TEST: br1: Expected 12 FDB entries, got 12 [ OK ] # 10.16 [+0.00] TEST: Flush FDB by dev br0 - test br1 entries [ OK ] # 10.66 [+0.50] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 10.67 [+0.01] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 10.68 [+0.02] TEST: Flush FDB by dev br0 and vlan 10 [ OK ] # 10.70 [+0.01] TEST: br0: Expected 0 FDB entries, got 0 [ OK ] # 10.70 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 10.72 [+0.01] TEST: br0: Expected 6 FDB entries, got 6 [ OK ] # 10.72 [+0.00] TEST: Test entries with vlan 20 [ OK ] # 11.15 [+0.43] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.17 [+0.02] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.18 [+0.02] TEST: Flush FDB by dev vx10, vlan 10, master and self [ OK ] # 11.20 [+0.01] TEST: vx10: Expected 0 FDB entries, got 0 [ OK ] # 11.20 [+0.00] TEST: Test entries with vlan 10 [ OK ] # 11.22 [+0.01] TEST: vx10: Expected 5 FDB entries, got 5 [ OK ] # 11.22 [+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__->