diff options
author | Baowen Zheng <baowen.zheng@corigine.com> | 2021-12-17 19:16:19 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-19 15:08:47 +0100 |
commit | 5a9959008fb63191538ab0f7800f4cf26afe7750 (patch) | |
tree | 3bdcc0947ebecea7d239ee5578acb2d580a62ad5 /drivers/net/ethernet/mscc/ocelot_flower.c | |
parent | flow_offload: reject to offload tc actions in offload drivers (diff) | |
download | linux-5a9959008fb63191538ab0f7800f4cf26afe7750.tar.xz linux-5a9959008fb63191538ab0f7800f4cf26afe7750.zip |
flow_offload: add index to flow_action_entry structure
Add index to flow_action_entry structure and delete index from police and
gate child structure.
We make this change to offload tc action for driver to identify a tc
action.
Signed-off-by: Baowen Zheng <baowen.zheng@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mscc/ocelot_flower.c')
-rw-r--r-- | drivers/net/ethernet/mscc/ocelot_flower.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mscc/ocelot_flower.c b/drivers/net/ethernet/mscc/ocelot_flower.c index 58fce173f95b..beb9379424c0 100644 --- a/drivers/net/ethernet/mscc/ocelot_flower.c +++ b/drivers/net/ethernet/mscc/ocelot_flower.c @@ -303,7 +303,7 @@ static int ocelot_flower_parse_action(struct ocelot *ocelot, int port, } filter->action.police_ena = true; - pol_ix = a->police.index + ocelot->vcap_pol.base; + pol_ix = a->hw_index + ocelot->vcap_pol.base; pol_max = ocelot->vcap_pol.max; if (ocelot->vcap_pol.max2 && pol_ix > pol_max) { |