mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
flow_offload: add statistics retrieval infrastructure and use it
This patch provides the flow_stats structure that acts as container for tc_cls_flower_offload, then we can use to restore the statistics on the existing TC actions. Hence, tcf_exts_stats_update() is not used from drivers anymore. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3a7b68617d
commit
3b1903ef97
8 changed files with 28 additions and 10 deletions
|
@ -765,6 +765,7 @@ struct tc_cls_flower_offload {
|
|||
enum tc_fl_command command;
|
||||
unsigned long cookie;
|
||||
struct flow_rule *rule;
|
||||
struct flow_stats stats;
|
||||
struct tcf_exts *exts;
|
||||
u32 classid;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue