RE: [PATCH rdma-next v3 2/7] RDMA/core: Add helper function to create named QPs

Steve Wise
2018-01-11T19:39:42Z

> From: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
>
> The QPs in the RDMA stack can be created by kernel
> or users space, but the owner is not visible to users
> after that.
>
> The added helper keeps track of newly created QP together
> with the name of the owner. In case of kernel, the caller to
> create_qp is supposed to update QP's attribute with the name.
> For user space callers no change is needed and the name will
> be taken from the process name.
>
> This helper sets qp->device field for all QP types including
> XRC_TGT, which RDMA/core didn't do before.
>
> Reviewed-by: Mark Bloch <markb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> Signed-off-by: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>

Reviewed-by: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>