]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05d593dd5b9b19246ba52c01490106a8ae757c64
tree0b03fa578f376e00f586490be8a5ee840160efce
parent7bedc7650e7d295b40fb9212e50889362c426b2f
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