On Thu, Mar 01, 2018 at 01:57:44PM -0800, Steve Wise wrote: > Implement RDMA nldev netlink interface to get detailed CM_ID information. > > Because cm_id's are attached to rdma devices in various work queue > contexts, the pid and task information at restrak_add() time is sometimes > not useful. For example, an nvme/f host connection cm_id ends up being > bound to a device in a work queue context and the resulting pid at attach > time no longer exists after connection setup. So instead we mark all > cm_id's created via the rdma_ucm as "user", and all others as "kernel". > This required tweaking the restrack code a little. It also required > wrapping some rdma_cm functions to allow passing the module name string. > > Signed-off-by: Steve Wise <swise@xxxxxxxxxxxxxxxxxxxxx> > --- > drivers/infiniband/core/cma.c | 61 +++++++++++++-------- > drivers/infiniband/core/cma_priv.h | 6 ++- > drivers/infiniband/core/nldev.c | 107 +++++++++++++++++++++++++++++++++---- > drivers/infiniband/core/restrack.c | 14 +++-- > drivers/infiniband/core/ucma.c | 8 +-- > include/rdma/rdma_cm.h | 18 +++++-- > include/rdma/restrack.h | 20 +++++++ > include/uapi/rdma/rdma_netlink.h | 14 +++++ > 8 files changed, 205 insertions(+), 43 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature