OSDN Git Service

IB/uverbs: Add create/destroy counters support
authorRaed Salem <raeds@mellanox.com>
Thu, 31 May 2018 13:43:32 +0000 (16:43 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Sat, 2 Jun 2018 04:33:54 +0000 (07:33 +0300)
commitd9a5a6441e9dde080e9d69e736c623f7369472ed
treef64f0428cbae01ffddbf3dc18135f02fcb9e2853
parentfa9b1802d140f4d4a781b3444aadf47fa511cabb
IB/uverbs: Add create/destroy counters support

User space application which uses counters functionality, is expected to
allocate/release the counters resources by calling create/destroy verbs
and in turn get a unique handle that can be used to attach the counters to
its counted type.

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/Makefile
drivers/infiniband/core/uverbs.h
drivers/infiniband/core/uverbs_std_types.c
drivers/infiniband/core/uverbs_std_types_counters.c [new file with mode: 0644]
include/uapi/rdma/ib_user_ioctl_cmds.h