]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: add configuration of port policers
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 29 Mar 2020 11:52:01 +0000 (14:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 18:44:00 +0000 (11:44 -0700)
commit04376046c62fb63df22a5337cb9ff612491dc012
tree3fa2b67a0cd56183df15fa6b5b0fdcee30cef451
parentdd0bec957d9b2d397019c242fdab5117b3b7bada
net: dsa: sja1105: add configuration of port policers

This adds partial configuration support for the L2 Policing Table. Out
of the 45 policing entries, only 5 are used (one for each port), in a
shared manner. All 8 traffic classes, and the broadcast policer, are
redirected to a common instance which belongs to the ingress port.

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