IB/core: Remove old fast registration API
No callers and no providers left, 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>
This commit is contained in:
parent
5eae15927b
commit
39bfc271bd
2 changed files with 0 additions and 79 deletions
|
@ -1280,31 +1280,6 @@ struct ib_mr *ib_alloc_mr(struct ib_pd *pd,
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(ib_alloc_mr);
|
EXPORT_SYMBOL(ib_alloc_mr);
|
||||||
|
|
||||||
struct ib_fast_reg_page_list *ib_alloc_fast_reg_page_list(struct ib_device *device,
|
|
||||||
int max_page_list_len)
|
|
||||||
{
|
|
||||||
struct ib_fast_reg_page_list *page_list;
|
|
||||||
|
|
||||||
if (!device->alloc_fast_reg_page_list)
|
|
||||||
return ERR_PTR(-ENOSYS);
|
|
||||||
|
|
||||||
page_list = device->alloc_fast_reg_page_list(device, max_page_list_len);
|
|
||||||
|
|
||||||
if (!IS_ERR(page_list)) {
|
|
||||||
page_list->device = device;
|
|
||||||
page_list->max_page_list_len = max_page_list_len;
|
|
||||||
}
|
|
||||||
|
|
||||||
return page_list;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(ib_alloc_fast_reg_page_list);
|
|
||||||
|
|
||||||
void ib_free_fast_reg_page_list(struct ib_fast_reg_page_list *page_list)
|
|
||||||
{
|
|
||||||
page_list->device->free_fast_reg_page_list(page_list);
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(ib_free_fast_reg_page_list);
|
|
||||||
|
|
||||||
/* Memory windows */
|
/* Memory windows */
|
||||||
|
|
||||||
struct ib_mw *ib_alloc_mw(struct ib_pd *pd, enum ib_mw_type type)
|
struct ib_mw *ib_alloc_mw(struct ib_pd *pd, enum ib_mw_type type)
|
||||||
|
|
|
@ -737,7 +737,6 @@ enum ib_wc_opcode {
|
||||||
IB_WC_BIND_MW,
|
IB_WC_BIND_MW,
|
||||||
IB_WC_LSO,
|
IB_WC_LSO,
|
||||||
IB_WC_LOCAL_INV,
|
IB_WC_LOCAL_INV,
|
||||||
IB_WC_FAST_REG_MR,
|
|
||||||
IB_WC_REG_MR,
|
IB_WC_REG_MR,
|
||||||
IB_WC_MASKED_COMP_SWAP,
|
IB_WC_MASKED_COMP_SWAP,
|
||||||
IB_WC_MASKED_FETCH_ADD,
|
IB_WC_MASKED_FETCH_ADD,
|
||||||
|
@ -1025,7 +1024,6 @@ enum ib_wr_opcode {
|
||||||
IB_WR_SEND_WITH_INV,
|
IB_WR_SEND_WITH_INV,
|
||||||
IB_WR_RDMA_READ_WITH_INV,
|
IB_WR_RDMA_READ_WITH_INV,
|
||||||
IB_WR_LOCAL_INV,
|
IB_WR_LOCAL_INV,
|
||||||
IB_WR_FAST_REG_MR,
|
|
||||||
IB_WR_REG_MR,
|
IB_WR_REG_MR,
|
||||||
IB_WR_MASKED_ATOMIC_CMP_AND_SWP,
|
IB_WR_MASKED_ATOMIC_CMP_AND_SWP,
|
||||||
IB_WR_MASKED_ATOMIC_FETCH_AND_ADD,
|
IB_WR_MASKED_ATOMIC_FETCH_AND_ADD,
|
||||||
|
@ -1064,12 +1062,6 @@ struct ib_sge {
|
||||||
u32 lkey;
|
u32 lkey;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ib_fast_reg_page_list {
|
|
||||||
struct ib_device *device;
|
|
||||||
u64 *page_list;
|
|
||||||
unsigned int max_page_list_len;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct ib_mw_bind_info - Parameters for a memory window bind operation.
|
* struct ib_mw_bind_info - Parameters for a memory window bind operation.
|
||||||
* @mr: A memory region to bind the memory window to.
|
* @mr: A memory region to bind the memory window to.
|
||||||
|
@ -1143,22 +1135,6 @@ static inline struct ib_ud_wr *ud_wr(struct ib_send_wr *wr)
|
||||||
return container_of(wr, struct ib_ud_wr, wr);
|
return container_of(wr, struct ib_ud_wr, wr);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ib_fast_reg_wr {
|
|
||||||
struct ib_send_wr wr;
|
|
||||||
u64 iova_start;
|
|
||||||
struct ib_fast_reg_page_list *page_list;
|
|
||||||
unsigned int page_shift;
|
|
||||||
unsigned int page_list_len;
|
|
||||||
u32 length;
|
|
||||||
int access_flags;
|
|
||||||
u32 rkey;
|
|
||||||
};
|
|
||||||
|
|
||||||
static inline struct ib_fast_reg_wr *fast_reg_wr(struct ib_send_wr *wr)
|
|
||||||
{
|
|
||||||
return container_of(wr, struct ib_fast_reg_wr, wr);
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ib_reg_wr {
|
struct ib_reg_wr {
|
||||||
struct ib_send_wr wr;
|
struct ib_send_wr wr;
|
||||||
struct ib_mr *mr;
|
struct ib_mr *mr;
|
||||||
|
@ -1773,9 +1749,6 @@ struct ib_device {
|
||||||
int (*map_mr_sg)(struct ib_mr *mr,
|
int (*map_mr_sg)(struct ib_mr *mr,
|
||||||
struct scatterlist *sg,
|
struct scatterlist *sg,
|
||||||
int sg_nents);
|
int sg_nents);
|
||||||
struct ib_fast_reg_page_list * (*alloc_fast_reg_page_list)(struct ib_device *device,
|
|
||||||
int page_list_len);
|
|
||||||
void (*free_fast_reg_page_list)(struct ib_fast_reg_page_list *page_list);
|
|
||||||
int (*rereg_phys_mr)(struct ib_mr *mr,
|
int (*rereg_phys_mr)(struct ib_mr *mr,
|
||||||
int mr_rereg_mask,
|
int mr_rereg_mask,
|
||||||
struct ib_pd *pd,
|
struct ib_pd *pd,
|
||||||
|
@ -2884,33 +2857,6 @@ struct ib_mr *ib_alloc_mr(struct ib_pd *pd,
|
||||||
enum ib_mr_type mr_type,
|
enum ib_mr_type mr_type,
|
||||||
u32 max_num_sg);
|
u32 max_num_sg);
|
||||||
|
|
||||||
/**
|
|
||||||
* ib_alloc_fast_reg_page_list - Allocates a page list array
|
|
||||||
* @device - ib device pointer.
|
|
||||||
* @page_list_len - size of the page list array to be allocated.
|
|
||||||
*
|
|
||||||
* This allocates and returns a struct ib_fast_reg_page_list * and a
|
|
||||||
* page_list array that is at least page_list_len in size. The actual
|
|
||||||
* size is returned in max_page_list_len. The caller is responsible
|
|
||||||
* for initializing the contents of the page_list array before posting
|
|
||||||
* a send work request with the IB_WC_FAST_REG_MR opcode.
|
|
||||||
*
|
|
||||||
* The page_list array entries must be translated using one of the
|
|
||||||
* ib_dma_*() functions just like the addresses passed to
|
|
||||||
* ib_map_phys_fmr(). Once the ib_post_send() is issued, the struct
|
|
||||||
* ib_fast_reg_page_list must not be modified by the caller until the
|
|
||||||
* IB_WC_FAST_REG_MR work request completes.
|
|
||||||
*/
|
|
||||||
struct ib_fast_reg_page_list *ib_alloc_fast_reg_page_list(
|
|
||||||
struct ib_device *device, int page_list_len);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ib_free_fast_reg_page_list - Deallocates a previously allocated
|
|
||||||
* page list array.
|
|
||||||
* @page_list - struct ib_fast_reg_page_list pointer to be deallocated.
|
|
||||||
*/
|
|
||||||
void ib_free_fast_reg_page_list(struct ib_fast_reg_page_list *page_list);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ib_update_fast_reg_key - updates the key portion of the fast_reg MR
|
* ib_update_fast_reg_key - updates the key portion of the fast_reg MR
|
||||||
* R_Key and L_Key.
|
* R_Key and L_Key.
|
||||||
|
|
Loading…
Add table
Reference in a new issue