Merge branch 'ocelot-vlan'
Vladimir Oltean says:
====================
Egress VLAN modification using VCAP ES0 on Ocelot switches
This patch set adds support for modifying a VLAN ID at the egress stage
of Ocelot/Felix switch ports. It is useful for replicating a packet on
multiple ports, and each egress port sends it using a different VLAN ID.
Tested by rewriting the VLAN ID of both
(a) packets injected from the CPU port
(b) packets received from an external station on a front-facing port
Adding a selftest to make sure it doesn't bit-rot, and if it does, that
it can be traced back easily.
====================
Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/mscc/ocelot.c 1 addition, 1 deletiondrivers/net/ethernet/mscc/ocelot.c
- drivers/net/ethernet/mscc/ocelot_flower.c 105 additions, 20 deletionsdrivers/net/ethernet/mscc/ocelot_flower.c
- include/linux/dsa/ocelot.h 2 additions, 2 deletionsinclude/linux/dsa/ocelot.h
- include/soc/mscc/ocelot_vcap.h 10 additions, 0 deletionsinclude/soc/mscc/ocelot_vcap.h
- net/dsa/tag_ocelot.c 39 additions, 0 deletionsnet/dsa/tag_ocelot.c
- tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh 47 additions, 3 deletions.../testing/selftests/drivers/net/ocelot/tc_flower_chains.sh
Loading
Please register or sign in to comment