summaryrefslogtreecommitdiffstats
path: root/include/net/pkt_cls.h
diff options
context:
space:
mode:
authorPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>2019-05-04 13:46:23 +0200
committerDavid S. Miller <davem@davemloft.net>2019-05-06 06:49:24 +0200
commitb7fe4ab8a6013c3c721bed91f73e76eec8fb5d89 (patch)
tree28988ba26e8d1226ec643cd3539e12552a47bc25 /include/net/pkt_cls.h
parentnet/sched: add police action to the hardware intermediate representation (diff)
downloadlinux-b7fe4ab8a6013c3c721bed91f73e76eec8fb5d89.tar.xz
linux-b7fe4ab8a6013c3c721bed91f73e76eec8fb5d89.zip
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 <pieter.jansenvanvuuren@netronome.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/pkt_cls.h')
-rw-r--r--include/net/pkt_cls.h2
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;
};