iproute2/testsuite/tests/tc
Guillaume Nault d61167dd88 m_vlan: add pop_eth and push_eth actions
Add support for the new TCA_VLAN_ACT_POP_ETH and TCA_VLAN_ACT_PUSH_ETH
actions (kernel commit 19fbcb36a39e ("net/sched: act_vlan:
Add {POP,PUSH}_ETH actions"). These action let TC remove or add the
Ethernet at the head of a frame.

Drop an Ethernet header:
 # tc filter add dev ethX matchall action vlan pop_eth

Push an Ethernet header (the original frame must have no MAC header):
 # tc filter add dev ethX matchall action vlan \
       push_eth dst_mac 0a:00:00:00:00:02 src_mac 0a:00:00:00:00:01

Also add a test suite for m_vlan, which covers these new actions and
the pre-existing ones.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
2020-10-20 08:36:38 -06:00
..
batch.t testsuite: Add a test for batch processing 2018-12-04 14:28:31 -08:00
cbq.t tests: Move tc related tests to testsuite/tests/tc folder 2014-11-29 11:17:11 -08:00
dsmark.t tests: Use /bin/sh shebang 2018-12-18 10:52:35 -08:00
pedit.t tests: Remove bashisms (s/source/.) 2017-10-11 10:59:50 -07:00
policer.t tests: Move tc related tests to testsuite/tests/tc folder 2014-11-29 11:17:11 -08:00
vlan.t m_vlan: add pop_eth and push_eth actions 2020-10-20 08:36:38 -06:00