]> git.baikalelectronics.ru Git - kernel.git/commit
sched: act: allow user to specify type of HW stats for a filter
authorJiri Pirko <jiri@mellanox.com>
Sat, 7 Mar 2020 11:40:20 +0000 (12:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Mar 2020 04:07:48 +0000 (21:07 -0700)
commita0c19791d5457b0490cfc5a4d65ce3921ca03f38
tree91666da01c7c8ae1758342a2261165c5fab6fcf6
parente131b2adf780c8c2b873b5e0d6d9d131b3eaf0bc
sched: act: allow user to specify type of HW stats for a filter

Currently, user who is adding an action expects HW to report stats,
however it does not have exact expectations about the stats types.
That is aligned with TCA_ACT_HW_STATS_TYPE_ANY.

Allow user to specify the type of HW stats for an action and require it.

Pass the information down to flow_offload layer.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/act_api.h
include/uapi/linux/pkt_cls.h
net/sched/act_api.c
net/sched/cls_api.c