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:

gecommit door
Jason Gunthorpe

bovenliggende
0584c47bbc
commit
1ffba62642
@@ -254,12 +254,6 @@ int ocrdma_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *attr)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ocrdma_modify_ah(struct ib_ah *ibah, struct rdma_ah_attr *attr)
|
||||
{
|
||||
/* modify_ah is unsupported */
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
int ocrdma_process_mad(struct ib_device *ibdev,
|
||||
int process_mad_flags,
|
||||
u8 port_num,
|
||||
|
@@ -55,7 +55,6 @@ struct ib_ah *ocrdma_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr,
|
||||
struct ib_udata *udata);
|
||||
int ocrdma_destroy_ah(struct ib_ah *ah);
|
||||
int ocrdma_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr);
|
||||
int ocrdma_modify_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr);
|
||||
|
||||
int ocrdma_process_mad(struct ib_device *,
|
||||
int process_mad_flags,
|
||||
|
@@ -176,7 +176,6 @@ static int ocrdma_register_device(struct ocrdma_dev *dev)
|
||||
dev->ibdev.create_ah = ocrdma_create_ah;
|
||||
dev->ibdev.destroy_ah = ocrdma_destroy_ah;
|
||||
dev->ibdev.query_ah = ocrdma_query_ah;
|
||||
dev->ibdev.modify_ah = ocrdma_modify_ah;
|
||||
|
||||
dev->ibdev.poll_cq = ocrdma_poll_cq;
|
||||
dev->ibdev.post_send = ocrdma_post_send;
|
||||
|
Verwijs in nieuw issue
Block a user