net: dsa: mv88e6xxx: Support policy entries in the VTU
authorTobias Waldekranz <tobias@waldekranz.com>
Thu, 3 Feb 2022 10:16:54 +0000 (11:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Feb 2022 14:05:56 +0000 (14:05 +0000)
commitbb03b280e0c307c1da48ff9c6751d121bd566cd3
tree7d552ae03e363e7049adf1567351e79870575363
parent7af4a361a62f59b44ec301f21090823365dd0244
net: dsa: mv88e6xxx: Support policy entries in the VTU

A VTU entry with policy enabled is used in combination with a port's
VTU policy setting to override normal switching behavior for frames
assigned to the entry's VID.

A typical example is to Treat all frames in a particular VLAN as
control traffic, and trap them to the CPU. In which case the relevant
user port's VTU policy would be set to TRAP.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/dsa/mv88e6xxx/global1.h
drivers/net/dsa/mv88e6xxx/global1_vtu.c