IB/uverbs: Add support for flow counters
authorRaed Salem <raeds@mellanox.com>
Thu, 31 May 2018 13:43:37 +0000 (16:43 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Sat, 2 Jun 2018 04:33:56 +0000 (07:33 +0300)
commitb6ba4a9aa59fe99c6e9ca6ec941cd5f9823b0cae
treecc9a9ca9b3ec4615970a8a46b35b1096340cbf8b
parent7eea23a5cd51a945700ad44c7ce585dd2a640dea
IB/uverbs: Add support for flow counters

The struct ib_uverbs_flow_spec_action_count associates a counters object
with the flow.

Post this association the flow counters can be read via the counters
object.

Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Raed Salem <raeds@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs.h
drivers/infiniband/core/uverbs_cmd.c
include/uapi/rdma/ib_user_verbs.h