RDMA: Cleanup undesired pd->uobject usage
Drivers should be using udata to determine if a method is invoked from user space or kernel space. A pd does not necessarily say a different objects is kernel or user. Transforming the tests to use udata eliminates a large number of uobject references from the drivers. Signed-off-by: Shamir Rabinovitch <shamir.rabinovitch@oracle.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

parent
af8d70375d
commit
e00b64f7c5
@@ -510,7 +510,8 @@ int mthca_alloc_cq_buf(struct mthca_dev *dev, struct mthca_cq_buf *buf, int nent
|
||||
void mthca_free_cq_buf(struct mthca_dev *dev, struct mthca_cq_buf *buf, int cqe);
|
||||
|
||||
int mthca_alloc_srq(struct mthca_dev *dev, struct mthca_pd *pd,
|
||||
struct ib_srq_attr *attr, struct mthca_srq *srq);
|
||||
struct ib_srq_attr *attr, struct mthca_srq *srq,
|
||||
struct ib_udata *udata);
|
||||
void mthca_free_srq(struct mthca_dev *dev, struct mthca_srq *srq);
|
||||
int mthca_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr,
|
||||
enum ib_srq_attr_mask attr_mask, struct ib_udata *udata);
|
||||
@@ -547,7 +548,8 @@ int mthca_alloc_qp(struct mthca_dev *dev,
|
||||
enum ib_qp_type type,
|
||||
enum ib_sig_type send_policy,
|
||||
struct ib_qp_cap *cap,
|
||||
struct mthca_qp *qp);
|
||||
struct mthca_qp *qp,
|
||||
struct ib_udata *udata);
|
||||
int mthca_alloc_sqp(struct mthca_dev *dev,
|
||||
struct mthca_pd *pd,
|
||||
struct mthca_cq *send_cq,
|
||||
@@ -556,7 +558,8 @@ int mthca_alloc_sqp(struct mthca_dev *dev,
|
||||
struct ib_qp_cap *cap,
|
||||
int qpn,
|
||||
int port,
|
||||
struct mthca_sqp *sqp);
|
||||
struct mthca_sqp *sqp,
|
||||
struct ib_udata *udata);
|
||||
void mthca_free_qp(struct mthca_dev *dev, struct mthca_qp *qp);
|
||||
int mthca_create_ah(struct mthca_dev *dev,
|
||||
struct mthca_pd *pd,
|
||||
|
Reference in New Issue
Block a user