diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2015-10-13 19:11:45 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-10-28 22:27:19 -0400 |
commit | 94e585cb7467a3e4cecb7267cd8303d2b693a8b9 (patch) | |
tree | da5c65026805b2651d927753aa05dfb2cf117041 /drivers/infiniband/hw/cxgb3/iwch_provider.c | |
parent | 191cfed565c0435aeced5f11f6cf9b03ec380d5b (diff) | |
download | lwn-94e585cb7467a3e4cecb7267cd8303d2b693a8b9.tar.gz lwn-94e585cb7467a3e4cecb7267cd8303d2b693a8b9.zip |
RDMA/cxgb3: Remove old FRWR API
No ULP uses it anymore, go ahead and remove it.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb3/iwch_provider.c')
-rw-r--r-- | drivers/infiniband/hw/cxgb3/iwch_provider.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_provider.c b/drivers/infiniband/hw/cxgb3/iwch_provider.c index f7b915378343..c34725ca0bb4 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_provider.c +++ b/drivers/infiniband/hw/cxgb3/iwch_provider.c @@ -884,28 +884,6 @@ static int iwch_map_mr_sg(struct ib_mr *ibmr, return ib_sg_to_pages(ibmr, sg, sg_nents, iwch_set_page); } -static struct ib_fast_reg_page_list *iwch_alloc_fastreg_pbl( - struct ib_device *device, - int page_list_len) -{ - struct ib_fast_reg_page_list *page_list; - - page_list = kmalloc(sizeof *page_list + page_list_len * sizeof(u64), - GFP_KERNEL); - if (!page_list) - return ERR_PTR(-ENOMEM); - - page_list->page_list = (u64 *)(page_list + 1); - page_list->max_page_list_len = page_list_len; - - return page_list; -} - -static void iwch_free_fastreg_pbl(struct ib_fast_reg_page_list *page_list) -{ - kfree(page_list); -} - static int iwch_destroy_qp(struct ib_qp *ib_qp) { struct iwch_dev *rhp; @@ -1483,8 +1461,6 @@ int iwch_register_device(struct iwch_dev *dev) dev->ibdev.dealloc_mw = iwch_dealloc_mw; dev->ibdev.alloc_mr = iwch_alloc_mr; dev->ibdev.map_mr_sg = iwch_map_mr_sg; - dev->ibdev.alloc_fast_reg_page_list = iwch_alloc_fastreg_pbl; - dev->ibdev.free_fast_reg_page_list = iwch_free_fastreg_pbl; dev->ibdev.attach_mcast = iwch_multicast_attach; dev->ibdev.detach_mcast = iwch_multicast_detach; dev->ibdev.process_mad = iwch_process_mad; |