Skip to content

Commit 2243cad

Browse files
pmachatadavem330
authored andcommitted
selftests: forwarding: mirror_gre_bridge_1q_lag: Ignore ARP
This test sets up mirroring such that it mirrors all overlay traffic. That includes ARP, which causes occasional miscounts and spurious failures. Ignore ARP explicitly to avoid these problems. Signed-off-by: Petr Machata <petrm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ba22b65 commit 2243cad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/testing/selftests/net/forwarding/mirror_gre_bridge_1q_lag.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,11 @@ test_lag_slave()
224224

225225
RET=0
226226

227+
tc filter add dev $swp1 ingress pref 999 \
228+
proto 802.1q flower vlan_ethtype arp $tcflags \
229+
action pass
227230
mirror_install $swp1 ingress gt4 \
228-
"proto 802.1q flower vlan_id 333 $tcflags"
231+
"proto 802.1q flower vlan_id 333 $tcflags"
229232

230233
# Test connectivity through $up_dev when $down_dev is set down.
231234
ip link set dev $down_dev down
@@ -245,6 +248,7 @@ test_lag_slave()
245248
ip link set dev $up_dev up
246249
ip link set dev $down_dev up
247250
mirror_uninstall $swp1 ingress
251+
tc filter del dev $swp1 ingress pref 999
248252

249253
log_test "$what ($tcflags)"
250254
}

0 commit comments

Comments
 (0)