]> 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)
commita7fd416a152362bf150474804807d9c3107d1a96
tree3fa2b67a0cd56183df15fa6b5b0fdcee30cef451
parentf6d8fac9260c1457d26d69f62b0ed19f2db5a565
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