diff options
| author | Pieter Jansen van Vuuren <[email protected]> | 2019-05-04 04:46:23 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-05-05 21:49:24 -0700 |
| commit | b7fe4ab8a6013c3c721bed91f73e76eec8fb5d89 (patch) | |
| tree | 28988ba26e8d1226ec643cd3539e12552a47bc25 /include/net | |
| parent | 8c8cfc6ed274e6fb86f00b53f3e7811afce29043 (diff) | |
net/sched: extend matchall offload for hardware statistics
Introduce a new command for matchall classifiers that allows hardware
to update statistics.
Signed-off-by: Pieter Jansen van Vuuren <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/pkt_cls.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index 2d0470661277..161fcf8516ac 100644 --- a/include/net/pkt_cls.h +++ b/include/net/pkt_cls.h @@ -760,12 +760,14 @@ tc_cls_flower_offload_flow_rule(struct tc_cls_flower_offload *tc_flow_cmd) enum tc_matchall_command { TC_CLSMATCHALL_REPLACE, TC_CLSMATCHALL_DESTROY, + TC_CLSMATCHALL_STATS, }; struct tc_cls_matchall_offload { struct tc_cls_common_offload common; enum tc_matchall_command command; struct flow_rule *rule; + struct flow_stats stats; unsigned long cookie; }; |