net: mscc: ocelot: add action of police on vcap_is2
Subsystems (3)
PATCH 1/1 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.
--- drivers/net/ethernet/mscc/ocelot_ace.c | 62 ++++++++++++++++++++--- drivers/net/ethernet/mscc/ocelot_ace.h | 4 ++ drivers/net/ethernet/mscc/ocelot_flower.c | 9 ++++ drivers/net/ethernet/mscc/ocelot_police.c | 24 +++++++++ drivers/net/ethernet/mscc/ocelot_police.h | 5 ++ include/soc/mscc/ocelot.h | 1 + 6 files changed, 98 insertions(+), 7 deletions(-)
drivers/net/ethernet/mscc/ocelot_ace.c +55 -7
@@ -7,6 +7,7 @@#include <linux/proc_fs.h> #include <soc/mscc/ocelot_vcap.h> +#include "ocelot_police.h" #include "ocelot_ace.h" #include "ocelot_s2.h"
@@ -299,9 +300,9 @@ static void vcap_action_set(struct ocelot *ocelot, struct vcap_data *data, }static void is2_action_set (struct ocelot *ocelot,struct vcap_data *data, -enum ocelot_ace_action action) +struct ocelot_ace_rule *ace) { -switch (action) { +switch (ace->action) {case OCELOT_ACL_ACTION_DROP :vcap_action_set (ocelot, data,VCAP_IS2_ACT_PORT_MASK ,0 );vcap_action_set (ocelot, data,VCAP_IS2_ACT_MASK_MODE ,1 );
@@ -319,6 +320,14 @@ static void is2_action_set(struct ocelot *ocelot, struct vcap_data *data,vcap_action_set (ocelot, data,VCAP_IS2_ACT_CPU_QU_NUM ,0 );vcap_action_set (ocelot, data,VCAP_IS2_ACT_CPU_COPY_ENA ,1 );break ; +case OCELOT_ACL_ACTION_POLICE : +vcap_action_set (ocelot, data,VCAP_IS2_ACT_PORT_MASK ,0 ); +vcap_action_set (ocelot, data,VCAP_IS2_ACT_MASK_MODE ,0 ); +vcap_action_set (ocelot, data,VCAP_IS2_ACT_POLICE_ENA ,1 ); +vcap_action_set (ocelot, data,VCAP_IS2_ACT_POLICE_IDX , ace->pol_ix); +vcap_action_set (ocelot, data,VCAP_IS2_ACT_CPU_QU_NUM ,0 ); +vcap_action_set (ocelot, data,VCAP_IS2_ACT_CPU_COPY_ENA ,0 ); +break ; } }
@@ -611,7 +620,7 @@ static void is2_entry_set(struct ocelot *ocelot, int ix, }vcap_key_set (ocelot, &data,VCAP_IS2_TYPE , type, type_mask); -is2_action_set (ocelot, &data, ace->action); +is2_action_set (ocelot, &data, ace);vcap_data_set (data.counter, data.counter_offset, vcap_is2->counter_width, ace->stats.pkts);
@@ -639,12 +648,19 @@ static void is2_entry_get(struct ocelot *ocelot, struct ocelot_ace_rule *rule, rule->stats.pkts = cnt; } -static void ocelot_ace_rule_add (struct ocelot_acl_block *block, +static void ocelot_ace_rule_add (struct ocelot *ocelot, +struct ocelot_acl_block *block,struct ocelot_ace_rule *rule) {struct ocelot_ace_rule *tmp;struct list_head *pos, *n; +if (rule->action ==OCELOT_ACL_ACTION_POLICE ) { + block->pol_lpr--; + rule->pol_ix = block->pol_lpr; +ocelot_ace_policer_add (ocelot, rule->pol_ix, &rule->pol); + } + block->count++;if (list_empty (&block->rules)) {
@@ -697,7 +713,7 @@ int ocelot_ace_rule_offload_add(struct ocelot *ocelot,int i, index;/* Add rule to the linked list */ -ocelot_ace_rule_add (block, rule); +ocelot_ace_rule_add (ocelot, block, rule);/* Get the index of the inserted rule */ index =ocelot_ace_rule_get_index_id (block, rule);
@@ -713,7 +729,33 @@ int ocelot_ace_rule_offload_add(struct ocelot *ocelot,return 0 ; } -static void ocelot_ace_rule_del (struct ocelot_acl_block *block, +static void ocelot_ace_police_del (struct ocelot *ocelot, +struct ocelot_acl_block *block, +u32 ix) +{ +struct ocelot_ace_rule *tmp; +int index =-1 ; + +if (ix < block->pol_lpr) +return ; + +list_for_each_entry (tmp, &block->rules, list) { + index++; +if (tmp->action ==OCELOT_ACL_ACTION_POLICE && + tmp->pol_ix < ix) { + tmp->pol_ix +=1 ; +ocelot_ace_policer_add (ocelot, tmp->pol_ix, + &rule->pol); +is2_entry_set (ocelot, index, tmp); + } + } + +ocelot_ace_policer_del (ocelot, block->pol_lpr); + block->pol_lpr++; +} + +static void ocelot_ace_rule_del (struct ocelot *ocelot, +struct ocelot_acl_block *block,struct ocelot_ace_rule *rule) {struct ocelot_ace_rule *tmp;
@@ -722,6 +764,9 @@ static void ocelot_ace_rule_del(struct ocelot_acl_block *block,list_for_each_safe (pos, q, &block->rules) { tmp = list_entry(pos, struct ocelot_ace_rule, list);if (tmp->id == rule->id) { +if (tmp->action ==OCELOT_ACL_ACTION_POLICE ) +ocelot_ace_police_del (ocelot, block, tmp->pol_ix); +list_del (pos);kfree (tmp); }
@@ -744,7 +789,7 @@ int ocelot_ace_rule_offload_del(struct ocelot *ocelot, index =ocelot_ace_rule_get_index_id (block, rule);/* Delete rule */ -ocelot_ace_rule_del (block, rule); +ocelot_ace_rule_del (ocelot, block, rule);/* Move up all the blocks over the deleted rule */ for (i = index; i < block->count; i++) {
@@ -779,6 +824,7 @@ int ocelot_ace_rule_stats_update(struct ocelot *ocelot,int ocelot_ace_init (struct ocelot *ocelot) {const struct vcap_props *vcap_is2 = &ocelot->vcap[VCAP_IS2 ]; +struct ocelot_acl_block *block = &ocelot->acl_block;struct vcap_data data;memset (&data,0 ,sizeof (data));
@@ -807,6 +853,8 @@ int ocelot_ace_init(struct ocelot *ocelot)ocelot_write_gix (ocelot,0x3fffff ,ANA_POL_CIR_STATE ,OCELOT_POLICER_DISCARD ); + block->pol_lpr =OCELOT_POLICER_DISCARD -1 ; +INIT_LIST_HEAD (&ocelot->acl_block.rules);return 0 ;
drivers/net/ethernet/mscc/ocelot_ace.h +4 -0
@@ -7,6 +7,7 @@#define _MSCC_OCELOT_ACE_H_#include "ocelot.h" +#include "ocelot_police.h" #include <net/sch_generic.h> #include <net/pkt_cls.h>
@@ -176,6 +177,7 @@ struct ocelot_ace_frame_ipv6 {enum ocelot_ace_action {OCELOT_ACL_ACTION_DROP ,OCELOT_ACL_ACTION_TRAP , +OCELOT_ACL_ACTION_POLICE , };struct ocelot_ace_stats {
@@ -208,6 +210,8 @@ struct ocelot_ace_rule {struct ocelot_ace_frame_ipv4 ipv4;struct ocelot_ace_frame_ipv6 ipv6; } frame; +struct ocelot_policer pol; +u32 pol_ix; }; int ocelot_ace_rule_offload_add(struct ocelot *ocelot,
drivers/net/ethernet/mscc/ocelot_flower.c +9 -0
@@ -12,6 +12,8 @@ static int ocelot_flower_parse_action(struct flow_cls_offload *f, struct ocelot_ace_rule *ace) {const struct flow_action_entry *a; +s64 burst; +u64 rate;int i;if (!flow_offload_has_one_action (&f->rule->action))
@@ -29,6 +31,13 @@ static int ocelot_flower_parse_action(struct flow_cls_offload *f,case FLOW_ACTION_TRAP : ace->action =OCELOT_ACL_ACTION_TRAP ;break ; +case FLOW_ACTION_POLICE : + ace->action =OCELOT_ACL_ACTION_POLICE ; + rate = a->police.rate_bytes_ps; + ace->pol.rate = (u32 )div_u64 (rate,1000 ) *8 ; + burst = rate *PSCHED_NS2TICKS (a->police.burst); + ace->pol.burst = (u32 )div_u64 (burst,PSCHED_TICKS_PER_SEC ); +break ;default :return -EOPNOTSUPP ; }
drivers/net/ethernet/mscc/ocelot_police.c +24 -0
@@ -225,3 +225,27 @@ int ocelot_port_policer_del(struct ocelot *ocelot, int port)return 0 ; } + +int ocelot_ace_policer_add (struct ocelot *ocelot,u32 pol_ix, +struct ocelot_policer *pol) +{ +struct qos_policer_conf pp = {0 }; + +if (!pol) +return -EINVAL ; + + pp.mode =MSCC_QOS_RATE_MODE_DATA ; + pp.pir = pol->rate; + pp.pbs = pol->burst; + +return qos_policer_conf_set (ocelot,0 , pol_ix, &pp); +} + +int ocelot_ace_policer_del (struct ocelot *ocelot,u32 pol_ix) +{ +struct qos_policer_conf pp = {0 }; + + pp.mode =MSCC_QOS_RATE_MODE_DISABLED ; + +return qos_policer_conf_set (ocelot,0 , pol_ix, &pp); +}
drivers/net/ethernet/mscc/ocelot_police.h +5 -0
@@ -19,4 +19,9 @@ int ocelot_port_policer_add(struct ocelot *ocelot, int port,int ocelot_port_policer_del (struct ocelot *ocelot,int port); +int ocelot_ace_policer_add (struct ocelot *ocelot,u32 pol_ix, +struct ocelot_policer *pol); + +int ocelot_ace_policer_del (struct ocelot *ocelot,u32 pol_ix); +#endif /* _MSCC_OCELOT_POLICE_H_ */
include/soc/mscc/ocelot.h +1 -0
@@ -468,6 +468,7 @@ struct ocelot_ops {struct ocelot_acl_block {struct list_head rules;int count; +int pol_lpr; };struct ocelot_port {
Signature · 1 line
2.17.1
Hi Xiaoliang,
Thanks for the patch. I've tested it, but sadly, as-is it doesn't compile. But then again, net-next doesn't compile either, so there...
Quoted 108 lines · Xiaoliang Yang
Ocelot has 384 policers that can be allocated to ingress ports, QoS classes per port, and VCAP IS2 entries.
ocelot_police.csupports to set policers which can be allocated to police action of VCAP IS2. We allocate policers from maximumpol_id, and decrease thepol_idwhen add a newvcap_is2entry which is police action.Signed-off-by Xiaoliang Yang <[email protected]>--- drivers/net/ethernet/mscc/ocelot_ace.c | 62 ++++++++++++++++++++--- drivers/net/ethernet/mscc/ocelot_ace.h | 4 ++ drivers/net/ethernet/mscc/ocelot_flower.c | 9 ++++ drivers/net/ethernet/mscc/ocelot_police.c | 24 +++++++++ drivers/net/ethernet/mscc/ocelot_police.h | 5 ++ include/soc/mscc/ocelot.h | 1 + 6 files changed, 98 insertions(+), 7 deletions(-)drivers/net/ethernet/mscc/ocelot_ace.c +28
-6@@ -7,6 +7,7 @@#include <linux/proc_fs.h> #include <soc/mscc/ocelot_vcap.h> +#include "ocelot_police.h" #include "ocelot_ace.h" #include "ocelot_s2.h" @@ -299,9 +300,9 @@ static void vcap_action_set(struct ocelot *ocelot, struct vcap_data *data, }static void is2_action_set (struct ocelot *ocelot,struct vcap_data *data, -enum ocelot_ace_action action) +struct ocelot_ace_rule *ace) { -switch (action) { +switch (ace->action) {case OCELOT_ACL_ACTION_DROP :vcap_action_set (ocelot, data,VCAP_IS2_ACT_PORT_MASK ,0 );vcap_action_set (ocelot, data,VCAP_IS2_ACT_MASK_MODE ,1 );@@ -319,6 +320,14 @@ static void is2_action_set(struct ocelot *ocelot, struct vcap_data *data,vcap_action_set (ocelot, data,VCAP_IS2_ACT_CPU_QU_NUM ,0 );vcap_action_set (ocelot, data,VCAP_IS2_ACT_CPU_COPY_ENA ,1 );break ; +case OCELOT_ACL_ACTION_POLICE : +vcap_action_set (ocelot, data,VCAP_IS2_ACT_PORT_MASK ,0 ); +vcap_action_set (ocelot, data,VCAP_IS2_ACT_MASK_MODE ,0 ); +vcap_action_set (ocelot, data,VCAP_IS2_ACT_POLICE_ENA ,1 ); +vcap_action_set (ocelot, data,VCAP_IS2_ACT_POLICE_IDX , ace->pol_ix); +vcap_action_set (ocelot, data,VCAP_IS2_ACT_CPU_QU_NUM ,0 ); +vcap_action_set (ocelot, data,VCAP_IS2_ACT_CPU_COPY_ENA ,0 ); +break ; } }@@ -611,7 +620,7 @@ static void is2_entry_set(struct ocelot *ocelot, int ix, }vcap_key_set (ocelot, &data,VCAP_IS2_TYPE , type, type_mask); -is2_action_set (ocelot, &data, ace->action); +is2_action_set (ocelot, &data, ace);vcap_data_set (data.counter, data.counter_offset, vcap_is2->counter_width, ace->stats.pkts);@@ -639,12 +648,19 @@ static void is2_entry_get(struct ocelot *ocelot, struct ocelot_ace_rule *rule, rule->stats.pkts = cnt; } -static void ocelot_ace_rule_add (struct ocelot_acl_block *block, +static void ocelot_ace_rule_add (struct ocelot *ocelot, +struct ocelot_acl_block *block,struct ocelot_ace_rule *rule) {struct ocelot_ace_rule *tmp;struct list_head *pos, *n; +if (rule->action ==OCELOT_ACL_ACTION_POLICE ) { + block->pol_lpr--; + rule->pol_ix = block->pol_lpr; +ocelot_ace_policer_add (ocelot, rule->pol_ix, &rule->pol); + } + block->count++;if (list_empty (&block->rules)) {@@ -697,7 +713,7 @@ int ocelot_ace_rule_offload_add(struct ocelot *ocelot,int i, index;/* Add rule to the linked list */ -ocelot_ace_rule_add (block, rule); +ocelot_ace_rule_add (ocelot, block, rule);/* Get the index of the inserted rule */ index =ocelot_ace_rule_get_index_id (block, rule);@@ -713,7 +729,33 @@ int ocelot_ace_rule_offload_add(struct ocelot *ocelot,return 0 ; } -static void ocelot_ace_rule_del(struct ocelot_acl_block *block, +static void ocelot_ace_police_del (struct ocelot *ocelot, +struct ocelot_acl_block *block, +u32 ix) +{ +struct ocelot_ace_rule *tmp; +int index =-1 ; +
drivers/net/ethernet/mscc/ocelot_ace.c int ocelot_ace_rule_offload_add(struct ocelot *ocelot, · line 748
Quoted 10 lines
drivers/net/ethernet/mscc/ocelot_ace.c +10
-0+if (ix < block->pol_lpr) +return ; + +list_for_each_entry (tmp, &block->rules, list) { + index++; +if (tmp->action ==OCELOT_ACL_ACTION_POLICE && + tmp->pol_ix < ix) { + tmp->pol_ix +=1 ; +ocelot_ace_policer_add (ocelot, tmp->pol_ix, + &rule->pol);
The "rule" variable doesn't exist here, you probably mean "tmp". But I'm sure this patch was written before commit ce6659c55b7d ("net:
mscc: ocelot: replace "rule" and "ocelot_rule" variable names with "ace""), can we please stick to that convention and name the variable "ace" where possible (and here is an example of that)? It's easier to follow the code.
Quoted 164 lines
drivers/net/ethernet/mscc/ocelot_ace.c +17
-1+is2_entry_set (ocelot, index, tmp); + } + } + +ocelot_ace_policer_del (ocelot, block->pol_lpr); + block->pol_lpr++; +} + +static void ocelot_ace_rule_del (struct ocelot *ocelot, +struct ocelot_acl_block *block,struct ocelot_ace_rule *rule) {struct ocelot_ace_rule *tmp;@@ -722,6 +764,9 @@ static void ocelot_ace_rule_del(struct ocelot_acl_block *block,list_for_each_safe (pos, q, &block->rules) { tmp = list_entry(pos, struct ocelot_ace_rule, list);if (tmp->id == rule->id) { +if (tmp->action ==OCELOT_ACL_ACTION_POLICE ) +ocelot_ace_police_del (ocelot, block, tmp->pol_ix); +list_del (pos);kfree (tmp); }@@ -744,7 +789,7 @@ int ocelot_ace_rule_offload_del(struct ocelot *ocelot, index =ocelot_ace_rule_get_index_id (block, rule);/* Delete rule */ -ocelot_ace_rule_del (block, rule); +ocelot_ace_rule_del (ocelot, block, rule);/* Move up all the blocks over the deleted rule */ for (i = index; i < block->count; i++) {@@ -779,6 +824,7 @@ int ocelot_ace_rule_stats_update(struct ocelot *ocelot,int ocelot_ace_init (struct ocelot *ocelot) {const struct vcap_props *vcap_is2 = &ocelot->vcap[VCAP_IS2 ]; +struct ocelot_acl_block *block = &ocelot->acl_block;struct vcap_data data;memset (&data,0 ,sizeof (data));@@ -807,6 +853,8 @@ int ocelot_ace_init(struct ocelot *ocelot)ocelot_write_gix (ocelot,0x3fffff ,ANA_POL_CIR_STATE ,OCELOT_POLICER_DISCARD ); + block->pol_lpr =OCELOT_POLICER_DISCARD -1 ; +INIT_LIST_HEAD (&ocelot->acl_block.rules);return 0 ;drivers/net/ethernet/mscc/ocelot_ace.h +4
-0@@ -7,6 +7,7 @@#define _MSCC_OCELOT_ACE_H_#include "ocelot.h" +#include "ocelot_police.h" #include <net/sch_generic.h> #include <net/pkt_cls.h> @@ -176,6 +177,7 @@ struct ocelot_ace_frame_ipv6 {enum ocelot_ace_action {OCELOT_ACL_ACTION_DROP ,OCELOT_ACL_ACTION_TRAP , +OCELOT_ACL_ACTION_POLICE , };struct ocelot_ace_stats {@@ -208,6 +210,8 @@ struct ocelot_ace_rule {struct ocelot_ace_frame_ipv4 ipv4;struct ocelot_ace_frame_ipv6 ipv6; } frame; +struct ocelot_policer pol; +u32 pol_ix; }; int ocelot_ace_rule_offload_add(struct ocelot *ocelot,drivers/net/ethernet/mscc/ocelot_flower.c +9
-0@@ -12,6 +12,8 @@ static int ocelot_flower_parse_action(struct flow_cls_offload *f, struct ocelot_ace_rule *ace) {const struct flow_action_entry *a; +s64 burst; +u64 rate;int i;if (!flow_offload_has_one_action (&f->rule->action))@@ -29,6 +31,13 @@ static int ocelot_flower_parse_action(struct flow_cls_offload *f,case FLOW_ACTION_TRAP : ace->action =OCELOT_ACL_ACTION_TRAP ;break ; +case FLOW_ACTION_POLICE : + ace->action =OCELOT_ACL_ACTION_POLICE ; + rate = a->police.rate_bytes_ps; + ace->pol.rate = (u32 )div_u64 (rate,1000 ) *8 ; + burst = rate *PSCHED_NS2TICKS (a->police.burst); + ace->pol.burst = (u32 )div_u64 (burst,PSCHED_TICKS_PER_SEC ); +break ;default :return -EOPNOTSUPP ; }drivers/net/ethernet/mscc/ocelot_police.c +24
-0@@ -225,3 +225,27 @@ int ocelot_port_policer_del(struct ocelot *ocelot, int port)return 0 ; } + +int ocelot_ace_policer_add (struct ocelot *ocelot,u32 pol_ix, +struct ocelot_policer *pol) +{ +struct qos_policer_conf pp = {0 }; + +if (!pol) +return -EINVAL ; + + pp.mode =MSCC_QOS_RATE_MODE_DATA ; + pp.pir = pol->rate; + pp.pbs = pol->burst; + +return qos_policer_conf_set (ocelot,0 , pol_ix, &pp); +} + +int ocelot_ace_policer_del (struct ocelot *ocelot,u32 pol_ix) +{ +struct qos_policer_conf pp = {0 }; + + pp.mode =MSCC_QOS_RATE_MODE_DISABLED ; + +return qos_policer_conf_set (ocelot,0 , pol_ix, &pp); +}drivers/net/ethernet/mscc/ocelot_police.h +5
-0@@ -19,4 +19,9 @@ int ocelot_port_policer_add(struct ocelot *ocelot, int port,int ocelot_port_policer_del (struct ocelot *ocelot,int port); +int ocelot_ace_policer_add (struct ocelot *ocelot,u32 pol_ix, +struct ocelot_policer *pol); + +int ocelot_ace_policer_del (struct ocelot *ocelot,u32 pol_ix); +#endif /* _MSCC_OCELOT_POLICE_H_ */ include/soc/mscc/ocelot.h +1
-1@@ -468,6 +468,7 @@ struct ocelot_ops {struct ocelot_acl_block {struct list_head rules;int count; +int pol_lpr; };struct ocelot_port { --
Quoted 2 lines
2.17.1
For what it's worth, I am preparing another patch series for port policers in DSA, and I'm keeping your patch in my tree and rebasing on top of it. Depending on how things go with review, do you mind if I just take your patch to address other received feedback, and repost your flow-based policers together with my port-based policers?
Regards,
-Vladimir
Quoted 17 lines · Vladimir Oltean
Hi Xiaoliang,
Thanks for the patch. I've tested it, but sadly, as-is it doesn't compile. But then again, net-next doesn't compile either, so there...
Quoted 10 lines · Xiaoliang Yang
Ocelot has 384 policers that can be allocated to ingress ports, QoS classes per port, and VCAP IS2 entries.
ocelot_police.csupports to set policers which can be allocated to police action of VCAP IS2. We allocate policers from maximumpol_id, and decrease thepol_idwhen add a newvcap_is2entry which is police action.Signed-off-by Xiaoliang Yang <[email protected]>---
[snip]
Quoted 9 lines
For what it's worth, I am preparing another patch series for port policers in DSA, and I'm keeping your patch in my tree and rebasing on top of it. Depending on how things go with review, do you mind if I just take your patch to address other received feedback, and repost your flow-based policers together with my port-based policers?
Regards,
-Vladimir
I took the liberty to repost your patch with the compilation error fixed, as part of this series:
https://patchwork.ozlabs.org/patch/1263358/
So this patch is now superseded.
Thanks,
-Vladimir
Hi Vladimir,
Thanks, you are right, the patch need to change rule->pol to tmp->pol. I have seen your patch series, it's better to add this patch to your patch series.
Regards,
Xiaoliang Yang
-----Original Message-----
From: Vladimir Oltean <[email protected]>
Sent: 2020年3月29日 8:55
To: Xiaoliang Yang <[email protected]>
Cc: David S. Miller <[email protected]>; netdev <[email protected]>; lkml <[email protected]>; Ivan Khoronzhuk <[email protected]>; Horatiu Vultur <[email protected]>; Alexandre Belloni <[email protected]>; Andrew Lunn <[email protected]>; Allan W. Nielsen <[email protected]>; Vivien Didelot <[email protected]>; Joergen Andreasen <[email protected]>; Microchip Linux Driver Support <[email protected]>; Y.b. Lu <[email protected]>; Alexandru Marginean <[email protected]>; Po Liu <[email protected]>; Claudiu Manoil <[email protected]>; Vladimir Oltean <[email protected]>; Leo Li <[email protected]>; Florian Fainelli <[email protected]>
Subject: [EXT] Re: [net-next,v1] net: mscc: ocelot: add action of police on vcap_is2
Caution: EXT Email
Quoted 16 lines · Vladimir Oltean
Hi Xiaoliang,
Thanks for the patch. I've tested it, but sadly, as-is it doesn't compile. But then again, net-next doesn't compile either, so there...
Quoted 9 lines · Xiaoliang Yang
Ocelot has 384 policers that can be allocated to ingress ports, QoS classes per port, and VCAP IS2 entries.
ocelot_police.csupports to set policers which can be allocated to police action of VCAP IS2. We allocate policers from maximumpol_id, and decrease thepol_idwhen add a newvcap_is2entry which is police action.Signed-off-by Xiaoliang Yang <[email protected]>---
[snip]
Quoted 9 lines
For what it's worth, I am preparing another patch series for port policers in DSA, and I'm keeping your patch in my tree and rebasing on top of it. Depending on how things go with review, do you mind if I just take your patch to address other received feedback, and repost your flow-based policers together with my port-based policers?
Regards,
-Vladimir
I took the liberty to repost your patch with the compilation error fixed, as part of this series:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.ozlabs.org%2Fpatch%2F1263358%2F&data=02%7C01%7Cxiaoliang.yang_1%40nxp.com%7Cb9d56ee5885d4eb41ef708d7d37bce6b%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637210401032321171&sdata=aXfztjxAHg0JJwieZQSmSNe5tYftJyVYS5MMy66awUU%3D&reserved=0
So this patch is now superseded.
Thanks,
-Vladimir