Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Petr Machata and committed by
David S. Miller
2243cad9 ba22b65e

+5 -1
+5 -1
tools/testing/selftests/net/forwarding/mirror_gre_bridge_1q_lag.sh
··· 224 224 225 225 RET=0 226 226 227 + tc filter add dev $swp1 ingress pref 999 \ 228 + proto 802.1q flower vlan_ethtype arp $tcflags \ 229 + action pass 227 230 mirror_install $swp1 ingress gt4 \ 228 - "proto 802.1q flower vlan_id 333 $tcflags" 231 + "proto 802.1q flower vlan_id 333 $tcflags" 229 232 230 233 # Test connectivity through $up_dev when $down_dev is set down. 231 234 ip link set dev $down_dev down ··· 248 245 ip link set dev $up_dev up 249 246 ip link set dev $down_dev up 250 247 mirror_uninstall $swp1 ingress 248 + tc filter del dev $swp1 ingress pref 999 251 249 252 250 log_test "$what ($tcflags)" 253 251 }