diff options
author | Xiaoliang Yang <xiaoliang.yang_1@nxp.com> | 2020-03-29 13:51:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-30 20:44:00 +0200 |
commit | c9a7fe1238e5fb3d26cb541a12083f2e1f3b2356 (patch) | |
tree | 6ee58bbeb48b5c760b8d5b43582464365f037684 /include/soc | |
parent | Merge branch 'ionic-support-for-firmware-upgrade' (diff) | |
download | linux-c9a7fe1238e5fb3d26cb541a12083f2e1f3b2356.tar.xz linux-c9a7fe1238e5fb3d26cb541a12083f2e1f3b2356.zip |
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>
Diffstat (limited to 'include/soc')
-rw-r--r-- | include/soc/mscc/ocelot.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/soc/mscc/ocelot.h b/include/soc/mscc/ocelot.h index eadbc2ddfcb5..b5d61af9f743 100644 --- a/include/soc/mscc/ocelot.h +++ b/include/soc/mscc/ocelot.h @@ -468,6 +468,7 @@ struct ocelot_ops { struct ocelot_acl_block { struct list_head rules; int count; + int pol_lpr; }; struct ocelot_port { |