summaryrefslogtreecommitdiff
path: root/rust/helpers/build_assert.c
diff options
context:
space:
mode:
authorSelvin Xavier <selvin.xavier@broadcom.com>2025-07-04 07:38:56 +0300
committerLeon Romanovsky <leon@kernel.org>2025-07-07 08:37:35 +0300
commit0aed817380d620987b2d5c573fdd2f01c30976a4 (patch)
treefaaa395df3ed3fcb5367b8767e8e1d14eddbfd13 /rust/helpers/build_assert.c
parent09d231ab569ca97478445ccc1ad44ab026de39b1 (diff)
downloadlinux-0aed817380d620987b2d5c573fdd2f01c30976a4.tar.xz
RDMA/bnxt_re: Support 2G message size
bnxt_qplib_put_sges is calculating the length in a signed int. So handling the 2G message size is not working since it is considered as negative. Use a unsigned number to calculate the total message length. As per the spec, IB message size shall be between zero and 2^31 bytes (inclusive). So adding a check for 2G message size. Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Signed-off-by: Shravya KN <shravya.k-n@broadcom.com> Link: https://patch.msgid.link/20250704043857.19158-3-kalesh-anakkur.purayil@broadcom.com Reviewed-by: Saravanan Vajravel <saravanan.vajravel@broadcom.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'rust/helpers/build_assert.c')
0 files changed, 0 insertions, 0 deletions