diff options
author | Xingfeng Hu <xingfeng.hu@corigine.com> | 2021-03-12 15:08:29 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-13 23:18:09 +0100 |
commit | 25660156f4cc4cf0cb55deda69f999dab554b750 (patch) | |
tree | 3a235a0eff104a16795b4fc5c5aa50130a6233ac /include/net/flow_offload.h | |
parent | Merge branch 'hns3-imp-phys' (diff) | |
download | linux-25660156f4cc4cf0cb55deda69f999dab554b750.tar.xz linux-25660156f4cc4cf0cb55deda69f999dab554b750.zip |
flow_offload: add support for packet-per-second policing
Allow flow_offload API to configure packet-per-second policing using rate
and burst parameters.
Dummy implementations of tcf_police_rate_pkt_ps() and
tcf_police_burst_pkt() are supplied which return 0, the unconfigured state.
This is to facilitate splitting the offload, driver, and TC code portion of
this feature into separate patches with the aim of providing a logical flow
for review. And the implementation of these helpers will be filled out by a
follow-up patch.
Signed-off-by: Xingfeng Hu <xingfeng.hu@corigine.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Louis Peens <louis.peens@netronome.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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/flow_offload.h b/include/net/flow_offload.h index e6bd8ebf9ac3..fde025c57b4f 100644 --- a/include/net/flow_offload.h +++ b/include/net/flow_offload.h @@ -234,6 +234,8 @@ struct flow_action_entry { u32 index; u32 burst; u64 rate_bytes_ps; + u64 burst_pkt; + u64 rate_pkt_ps; u32 mtu; } police; struct { /* FLOW_ACTION_CT */ |