iproute2/testsuite
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
..
iproute2 Makefile: use make -C to change directory 2019-06-14 06:44:39 -07:00
lib bridge: Fix vni printing 2019-12-16 20:49:28 -08:00
tests m_vlan: add pop_eth and push_eth actions 2020-10-20 08:36:38 -06:00
tools tools: Fix include path for generate_nlmsg 2019-06-14 06:50:55 -07:00
Makefile bridge: Fix vni printing 2019-12-16 20:49:28 -08:00