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>
This commit is contained in:

committed by
David S. Miller

parent
8c8cfc6ed2
commit
b7fe4ab8a6
@@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user