diff options
| author | Jason Gunthorpe <[email protected]> | 2020-11-15 11:43:08 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2020-11-16 20:53:30 +0000 |
| commit | a59b7b05efc827929c2aa46fc2fe561982bd19fc (patch) | |
| tree | 1725817f666196330a9c27820a1e9a854c12fd1c /drivers/infiniband/hw/mlx5/mem.c | |
| parent | RDMA/mlx5: Directly compute the PAS list for raw QP RQ's (diff) | |
| download | kernel-a59b7b05efc827929c2aa46fc2fe561982bd19fc.tar.gz kernel-a59b7b05efc827929c2aa46fc2fe561982bd19fc.zip | |
RDMA/mlx5: Use mlx5_umem_find_best_quantized_pgoff() for QP
Delete custom logic in the QP in favor of more general variant.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/mem.c')
| -rw-r--r-- | drivers/infiniband/hw/mlx5/mem.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/infiniband/hw/mlx5/mem.c b/drivers/infiniband/hw/mlx5/mem.c index fd9778113d26..ad9830eeb4b6 100644 --- a/drivers/infiniband/hw/mlx5/mem.c +++ b/drivers/infiniband/hw/mlx5/mem.c @@ -152,27 +152,6 @@ unsigned long __mlx5_umem_find_best_quantized_pgoff( return page_size; } -int mlx5_ib_get_buf_offset(u64 addr, int page_shift, u32 *offset) -{ - u64 page_size; - u64 page_mask; - u64 off_size; - u64 off_mask; - u64 buf_off; - - page_size = (u64)1 << page_shift; - page_mask = page_size - 1; - buf_off = addr & page_mask; - off_size = page_size >> 6; - off_mask = off_size - 1; - - if (buf_off & off_mask) - return -EINVAL; - - *offset = buf_off >> ilog2(off_size); - return 0; -} - #define WR_ID_BF 0xBF #define WR_ID_END 0xBAD #define TEST_WC_NUM_WQES 255 |
