diff options
-rw-r--r-- | tools/testing/selftests/net/forwarding/mirror_lib.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/forwarding/mirror_lib.sh b/tools/testing/selftests/net/forwarding/mirror_lib.sh index 67efe2556a4d..d36dc26c6c51 100644 --- a/tools/testing/selftests/net/forwarding/mirror_lib.sh +++ b/tools/testing/selftests/net/forwarding/mirror_lib.sh | |||
@@ -102,7 +102,10 @@ do_test_span_vlan_dir_ips() | |||
102 | local ip1=$1; shift | 102 | local ip1=$1; shift |
103 | local ip2=$1; shift | 103 | local ip2=$1; shift |
104 | 104 | ||
105 | vlan_capture_install $dev "vlan_id $vid" | 105 | # Install the capture as skip_hw to avoid double-counting of packets. |
106 | # The traffic is meant for local box anyway, so will be trapped to | ||
107 | # kernel. | ||
108 | vlan_capture_install $dev "skip_hw vlan_id $vid" | ||
106 | mirror_test v$h1 $ip1 $ip2 $dev 100 $expect | 109 | mirror_test v$h1 $ip1 $ip2 $dev 100 $expect |
107 | mirror_test v$h2 $ip2 $ip1 $dev 100 $expect | 110 | mirror_test v$h2 $ip2 $ip1 $dev 100 $expect |
108 | vlan_capture_uninstall $dev | 111 | vlan_capture_uninstall $dev |