diff options
author | Sindhu Devale <sindhu.devale@intel.com> | 2023-03-15 09:53:05 -0500 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-03-19 11:36:33 +0200 |
commit | cc8997c94bf37005ded39bb8537549dc85776b88 (patch) | |
tree | 9038aa11d6ca0eda0601aed40f99c5500ce1c8fa /drivers/infiniband/hw/irdma/pble.h | |
parent | 99f96b4552330d2b725974b4429fba7986635f43 (diff) | |
download | linux-stable-cc8997c94bf37005ded39bb8537549dc85776b88.tar.gz linux-stable-cc8997c94bf37005ded39bb8537549dc85776b88.tar.bz2 linux-stable-cc8997c94bf37005ded39bb8537549dc85776b88.zip |
RDMA/irdma: Refactor PBLE functions
Refactor PBLE functions using a bit mask to represent the PBLE level
desired versus 2 parameters use_pble and lvl_one_only which makes the
code confusing.
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Sindhu Devale <sindhu.devale@intel.com>
Link: https://lore.kernel.org/r/20230315145305.955-5-shiraz.saleem@intel.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/irdma/pble.h')
-rw-r--r-- | drivers/infiniband/hw/irdma/pble.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/irdma/pble.h b/drivers/infiniband/hw/irdma/pble.h index 29d295463559..b31b7c5d66fe 100644 --- a/drivers/infiniband/hw/irdma/pble.h +++ b/drivers/infiniband/hw/irdma/pble.h @@ -114,7 +114,7 @@ void irdma_free_pble(struct irdma_hmc_pble_rsrc *pble_rsrc, struct irdma_pble_alloc *palloc); int irdma_get_pble(struct irdma_hmc_pble_rsrc *pble_rsrc, struct irdma_pble_alloc *palloc, u32 pble_cnt, - bool level1_only); + u8 lvl); int irdma_prm_add_pble_mem(struct irdma_pble_prm *pprm, struct irdma_chunk *pchunk); int irdma_prm_get_pbles(struct irdma_pble_prm *pprm, |