]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: mirror_lib: skip_hw the VLAN capture
authorPetr Machata <petrm@mellanox.com>
Thu, 31 May 2018 17:52:15 +0000 (19:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jun 2018 18:11:02 +0000 (14:11 -0400)
commit66bf428992d1970f912c0a5b022a5818a99e08c7
treee81d0522c7d9b22b576da3399470c17fe675096d
parent21e3d17c8c4b233bcfd58e628a9e794baa7bb80f
selftests: forwarding: mirror_lib: skip_hw the VLAN capture

When the VLAN capture is installed on a front panel device and not a
soft device, the packets are counted twice: once in fast path, and once
after they are trapped to the kernel. Resolve the problem by passing
skip_hw flag to vlan_capture_install().

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/mirror_lib.sh