iproute2/testsuite/tests
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
..
bridge/vlan bridge: Fix output with empty vlan lists 2020-05-04 17:13:53 -07:00
ip testsuite: Add tests for bareudp tunnels 2020-07-20 13:30:55 -07:00
ss ss: fix tests to reflect compact output 2020-02-04 03:21:06 -08:00
tc m_vlan: add pop_eth and push_eth actions 2020-10-20 08:36:38 -06:00