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 14:08:47 +0000 |
commit | 5a9959008fb63191538ab0f7800f4cf26afe7750 (patch) | |
tree | 3bdcc0947ebecea7d239ee5578acb2d580a62ad5 /include/net/flow_offload.h | |
parent | 144d4c9e800da1230d817bbd50068a22e4cc688e (diff) | |
download | linux-stable-5a9959008fb63191538ab0f7800f4cf26afe7750.tar.gz linux-stable-5a9959008fb63191538ab0f7800f4cf26afe7750.tar.bz2 linux-stable-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 'include/net/flow_offload.h')
-rw-r--r-- | include/net/flow_offload.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/flow_offload.h b/include/net/flow_offload.h index 3961461d9c8b..2271da5aa8ee 100644 --- a/include/net/flow_offload.h +++ b/include/net/flow_offload.h @@ -197,6 +197,7 @@ void flow_action_cookie_destroy(struct flow_action_cookie *cookie); struct flow_action_entry { enum flow_action_id id; + u32 hw_index; enum flow_action_hw_stats hw_stats; action_destr destructor; void *destructor_priv; @@ -232,7 +233,6 @@ struct flow_action_entry { bool truncate; } sample; struct { /* FLOW_ACTION_POLICE */ - u32 index; u32 burst; u64 rate_bytes_ps; u64 burst_pkt; @@ -267,7 +267,6 @@ struct flow_action_entry { u8 ttl; } mpls_mangle; struct { - u32 index; s32 prio; u64 basetime; u64 cycletime; |