]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: configure the multicast policers, if present
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 24 May 2021 13:14:20 +0000 (16:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 May 2021 20:59:03 +0000 (13:59 -0700)
commit38fbe91f2287c696f290d9115901aa435f7166a8
tree31e80bff6be0a7cc395f98e150a57b56ae2cfa37
parentf78a2517cf73fb0de68012ba2f42c9ad65d2aa14
net: dsa: sja1105: configure the multicast policers, if present

The SJA1110 policer array is similar in layout with SJA1105, except it
contains one multicast policer per port at the end.

Detect the presence of multicast policers based on the maximum number of
supported L2 Policing Table entries, and make those policers have a
shared index equal to the port's default policer. Letting the user
configure these policers is not supported at the moment.

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