RDMA/providers: Remove pointless functions
The rdma core is taking care of return the right error code when the rdma device callbacks aren't supported. Signed-off-by: Kamal Heib <kamalheib1@gmail.com> Acked-by: Shiraz Saleem <shiraz.saleem@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

parent
0584c47bbc
commit
1ffba62642
@@ -278,19 +278,6 @@ int pvrdma_destroy_cq(struct ib_cq *cq)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* pvrdma_modify_cq - modify the CQ moderation parameters
|
||||
* @ibcq: the CQ to modify
|
||||
* @cq_count: number of CQEs that will trigger an event
|
||||
* @cq_period: max period of time in usec before triggering an event
|
||||
*
|
||||
* @return: -EOPNOTSUPP as CQ resize is not supported.
|
||||
*/
|
||||
int pvrdma_modify_cq(struct ib_cq *cq, u16 cq_count, u16 cq_period)
|
||||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
static inline struct pvrdma_cqe *get_cqe(struct pvrdma_cq *cq, int i)
|
||||
{
|
||||
return (struct pvrdma_cqe *)pvrdma_page_dir_get_ptr(
|
||||
@@ -428,16 +415,3 @@ int pvrdma_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc)
|
||||
/* Ensure we do not return errors from poll_cq */
|
||||
return npolled;
|
||||
}
|
||||
|
||||
/**
|
||||
* pvrdma_resize_cq - resize CQ
|
||||
* @ibcq: the completion queue
|
||||
* @entries: CQ entries
|
||||
* @udata: user data
|
||||
*
|
||||
* @return: -EOPNOTSUPP as CQ resize is not supported.
|
||||
*/
|
||||
int pvrdma_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata)
|
||||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
@@ -214,8 +214,6 @@ static int pvrdma_register_device(struct pvrdma_dev *dev)
|
||||
dev->ib_dev.post_send = pvrdma_post_send;
|
||||
dev->ib_dev.post_recv = pvrdma_post_recv;
|
||||
dev->ib_dev.create_cq = pvrdma_create_cq;
|
||||
dev->ib_dev.modify_cq = pvrdma_modify_cq;
|
||||
dev->ib_dev.resize_cq = pvrdma_resize_cq;
|
||||
dev->ib_dev.destroy_cq = pvrdma_destroy_cq;
|
||||
dev->ib_dev.poll_cq = pvrdma_poll_cq;
|
||||
dev->ib_dev.req_notify_cq = pvrdma_req_notify_cq;
|
||||
@@ -259,7 +257,6 @@ static int pvrdma_register_device(struct pvrdma_dev *dev)
|
||||
dev->ib_dev.modify_srq = pvrdma_modify_srq;
|
||||
dev->ib_dev.query_srq = pvrdma_query_srq;
|
||||
dev->ib_dev.destroy_srq = pvrdma_destroy_srq;
|
||||
dev->ib_dev.post_srq_recv = pvrdma_post_srq_recv;
|
||||
|
||||
dev->srq_tbl = kcalloc(dev->dsr->caps.max_srq,
|
||||
sizeof(struct pvrdma_srq *),
|
||||
|
@@ -52,13 +52,6 @@
|
||||
|
||||
#include "pvrdma.h"
|
||||
|
||||
int pvrdma_post_srq_recv(struct ib_srq *ibsrq, const struct ib_recv_wr *wr,
|
||||
const struct ib_recv_wr **bad_wr)
|
||||
{
|
||||
/* No support for kernel clients. */
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
/**
|
||||
* pvrdma_query_srq - query shared receive queue
|
||||
* @ibsrq: the shared receive queue to query
|
||||
|
@@ -412,15 +412,10 @@ struct ib_mr *pvrdma_alloc_mr(struct ib_pd *pd, enum ib_mr_type mr_type,
|
||||
u32 max_num_sg);
|
||||
int pvrdma_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg,
|
||||
int sg_nents, unsigned int *sg_offset);
|
||||
int pvrdma_modify_cq(struct ib_cq *cq, u16 cq_count, u16 cq_period);
|
||||
int pvrdma_resize_cq(struct ib_cq *ibcq, int entries,
|
||||
struct ib_udata *udata);
|
||||
struct ib_cq *pvrdma_create_cq(struct ib_device *ibdev,
|
||||
const struct ib_cq_init_attr *attr,
|
||||
struct ib_ucontext *context,
|
||||
struct ib_udata *udata);
|
||||
int pvrdma_resize_cq(struct ib_cq *ibcq, int entries,
|
||||
struct ib_udata *udata);
|
||||
int pvrdma_destroy_cq(struct ib_cq *cq);
|
||||
int pvrdma_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc);
|
||||
int pvrdma_req_notify_cq(struct ib_cq *cq, enum ib_cq_notify_flags flags);
|
||||
@@ -435,8 +430,6 @@ int pvrdma_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr,
|
||||
enum ib_srq_attr_mask attr_mask, struct ib_udata *udata);
|
||||
int pvrdma_query_srq(struct ib_srq *srq, struct ib_srq_attr *srq_attr);
|
||||
int pvrdma_destroy_srq(struct ib_srq *srq);
|
||||
int pvrdma_post_srq_recv(struct ib_srq *ibsrq, const struct ib_recv_wr *wr,
|
||||
const struct ib_recv_wr **bad_wr);
|
||||
|
||||
struct ib_qp *pvrdma_create_qp(struct ib_pd *pd,
|
||||
struct ib_qp_init_attr *init_attr,
|
||||
|
Reference in New Issue
Block a user