]> asedeno.scripts.mit.edu Git - linux.git/commit
selftests: forwarding: Test mirror-to-vlan
authorPetr Machata <petrm@mellanox.com>
Thu, 24 May 2018 14:27:48 +0000 (16:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 May 2018 02:26:19 +0000 (22:26 -0400)
commit35388a6a0c275390f64d26093175718946dd788e
tree83482c1fbad487b5d10707e311d885a4ab04c294
parent87c0c046e80293af001af95a66c46491ee43130a
selftests: forwarding: Test mirror-to-vlan

Test for "tc action mirred egress mirror" that mirrors to a vlan device.
- test_vlan() tests that the packets get mirrored
- test_tagged_vlan() tests that the mirrored packets have correct inner
  VLAN tag.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/mirror_vlan.sh [new file with mode: 0755]