Skip to content

Commit 1bd3814

Browse files
erbthnmorey
authored andcommitted
bnxt_re: fix assertion in bnxt_re_alloc_page
[ Upstream commit 7113c9e ] When using libibverbs with a BCM57508 NIC and the bnxt_re driver, an assertion in _ioctl_next_attr fails. The issue traces back to an incorrect parameter count passed to DECLARE_COMMAND_BUFFER in bnxt_re_alloc_page. Set the parameter count to the correct value to prevent the assertion. Fixes: 52d0870 ("bnxt_re/lib: Enable low latency push") Signed-off-by: Thomas Erbesdobler <t.erbesdobler@gmx.de> Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Nicolas Morey <nmorey@suse.com>
1 parent 5d64617 commit 1bd3814

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

providers/bnxt_re/verbs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ int bnxt_re_alloc_page(struct ibv_context *ibvctx,
150150
DECLARE_COMMAND_BUFFER(cmd,
151151
BNXT_RE_OBJECT_ALLOC_PAGE,
152152
BNXT_RE_METHOD_ALLOC_PAGE,
153-
4);
153+
5);
154154
struct ib_uverbs_attr *handle;
155155
int ret;
156156

0 commit comments

Comments
 (0)