RDMA: Add dedicated CM_ID resource tracker function
authorMaor Gottlieb <maorg@mellanox.com>
Tue, 23 Jun 2020 11:30:39 +0000 (14:30 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 23 Jun 2020 14:46:27 +0000 (11:46 -0300)
commit211cd9459fdabe9f556e539966f50825853bf262
tree36b6caa681b285bc900c27c6a3a6a5a77dbafc38
parent5cc34116ccec60032dbaa92768f41e95ce2d8ec7
RDMA: Add dedicated CM_ID resource tracker function

In order to avoid double multiplexing of the resource when it is a cm id,
add a dedicated callback function. In addition remove fill_res_entry which
is not used anymore.

Link: https://lore.kernel.org/r/20200623113043.1228482-8-leon@kernel.org
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/device.c
drivers/infiniband/core/nldev.c
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
drivers/infiniband/hw/cxgb4/provider.c
drivers/infiniband/hw/cxgb4/restrack.c
include/rdma/ib_verbs.h