summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/bnxt_re/ib_verbs.c
diff options
context:
space:
mode:
authorSelvin Xavier <selvin.xavier@broadcom.com>2023-08-03 11:45:23 +0300
committerLeon Romanovsky <leon@kernel.org>2023-08-07 16:39:42 +0300
commitc9f3e4e1d862f67d42720fdb680f4d7da64d7cc5 (patch)
tree1cdad9f9964a756e1136ec064d5e7177c026bb0c /drivers/infiniband/hw/bnxt_re/ib_verbs.c
parentfd28c8a8c7a10e7b53851129c6d8dc5945108fe9 (diff)
downloadlinux-c9f3e4e1d862f67d42720fdb680f4d7da64d7cc5.tar.xz
RDMA/bnxt_re: Fix the sideband buffer size handling for FW commands
bnxt_qplib_rcfw_alloc_sbuf allocates 24 bytes and it is better to fit on stack variables. This way we can avoid unwanted kmalloc call. Call dma_alloc_coherent directly instead of wrapper bnxt_qplib_rcfw_alloc_sbuf. Also, FW expects the side buffer needs to be aligned to BNXT_QPLIB_CMDQE_UNITS(16B). So align the size to have the extra padding bytes. Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com> Signed-off-by: Hongguang Gao <hongguang.gao@broadcom.com> Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Link: https://lore.kernel.org/r/1691052326-32143-4-git-send-email-selvin.xavier@broadcom.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/bnxt_re/ib_verbs.c')
0 files changed, 0 insertions, 0 deletions