OSDN Git Service

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)
commit44f8658017419dccbeefe64f30122fa191d0e173
tree91666da01c7c8ae1758342a2261165c5fab6fcf6
parentd7cb1e3ba12e004e92e9ad2e8d272220db0a541c
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