diff options
author | Selvin Xavier <[email protected]> | 2023-08-03 01:45:23 -0700 |
---|---|---|
committer | Leon Romanovsky <[email protected]> | 2023-08-07 16:39:42 +0300 |
commit | c9f3e4e1d862f67d42720fdb680f4d7da64d7cc5 (patch) | |
tree | 1cdad9f9964a756e1136ec064d5e7177c026bb0c /drivers/fpga/xilinx-selectmap.c | |
parent | fd28c8a8c7a10e7b53851129c6d8dc5945108fe9 (diff) |
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 <[email protected]>
Signed-off-by: Hongguang Gao <[email protected]>
Signed-off-by: Selvin Xavier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-selectmap.c')
0 files changed, 0 insertions, 0 deletions