]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: add action of police on vcap_is2
authorXiaoliang Yang <xiaoliang.yang_1@nxp.com>
Sun, 29 Mar 2020 11:51:57 +0000 (14:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 18:44:00 +0000 (11:44 -0700)
commitee21fdfeb34574b0c273d72865b27a2480963d6d
tree6ee58bbeb48b5c760b8d5b43582464365f037684
parent84b055250da1b722c8b7d6b5fbf151a3c0ab4707
net: mscc: ocelot: add action of police on vcap_is2

Ocelot has 384 policers that can be allocated to ingress ports,
QoS classes per port, and VCAP IS2 entries. ocelot_police.c
supports to set policers which can be allocated to police action
of VCAP IS2. We allocate policers from maximum pol_id, and
decrease the pol_id when add a new vcap_is2 entry which is
police action.

Signed-off-by: Xiaoliang Yang <xiaoliang.yang_1@nxp.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_ace.c
drivers/net/ethernet/mscc/ocelot_ace.h
drivers/net/ethernet/mscc/ocelot_flower.c
drivers/net/ethernet/mscc/ocelot_police.c
drivers/net/ethernet/mscc/ocelot_police.h
include/soc/mscc/ocelot.h