net: dsa: sja1105: make room for virtual link parsing in flower offload
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 5 May 2020 19:20:54 +0000 (22:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 May 2020 00:31:57 +0000 (17:31 -0700)
commitb70bb8d4ab2c0a4992e4692f07e9b91056b30c88
tree0b03fa578f376e00f586490be8a5ee840160efce
parent94f94d4acfb2a5e978f98d924be33c981e2f86c6
net: dsa: sja1105: make room for virtual link parsing in flower offload

Virtual links are a sja1105 hardware concept of executing various flow
actions based on a key extracted from the frame's DMAC, VID and PCP.

Currently the tc-flower offload code supports only parsing the DMAC if
that is the broadcast MAC address, and the VLAN PCP. Extract the key
parsing logic from the L2 policers functionality and move it into its
own function, after adding extra logic for matching on any DMAC and VID.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_flower.c