diff options
author | Baowen Zheng <baowen.zheng@corigine.com> | 2021-12-17 19:16:23 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-19 15:08:48 +0100 |
commit | 7adc576512110ef32b0424a727ee1d04359fc205 (patch) | |
tree | af4f4f103a2f08475bd509f858bfa83e629146b4 /include/net/act_api.h | |
parent | flow_offload: allow user to offload tc action to net device (diff) | |
download | linux-7adc576512110ef32b0424a727ee1d04359fc205.tar.xz linux-7adc576512110ef32b0424a727ee1d04359fc205.zip |
flow_offload: add skip_hw and skip_sw to control if offload the action
We add skip_hw and skip_sw for user to control if offload the action
to hardware.
We also add in_hw_count for user to indicate if the action is offloaded
to any hardware.
Signed-off-by: Baowen Zheng <baowen.zheng@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/act_api.h')
-rw-r--r-- | include/net/act_api.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/act_api.h b/include/net/act_api.h index b418bb0e44e0..15c6a881817d 100644 --- a/include/net/act_api.h +++ b/include/net/act_api.h @@ -44,6 +44,7 @@ struct tc_action { u8 hw_stats; u8 used_hw_stats; bool used_hw_stats_valid; + u32 in_hw_count; }; #define tcf_index common.tcfa_index #define tcf_refcnt common.tcfa_refcnt |