Skip to content

Commit 92d4acb

Browse files
selvintxaviernmorey
authored andcommitted
bnxt_re/lib: Fix the WQE size alignment
[ Upstream commit 2e65381 ] WQE size alignment should be 16 bytes. Currently aligning for 32 bytes. Fix this. Fixes: 66aba73 ("bnxt_re/lib: Move hardware queue to 16B aligned indices") Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Signed-off-by: Nicolas Morey <nmorey@suse.com>
1 parent 9ca2eb1 commit 92d4acb

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
@@ -1215,7 +1215,7 @@ static int bnxt_re_get_sq_slots(struct bnxt_re_dev *rdev,
12151215
if (ilsize) {
12161216
cal_ils = hdr_sz + ilsize;
12171217
wqe_size = MAX(cal_ils, wqe_size);
1218-
wqe_size = align(wqe_size, hdr_sz);
1218+
wqe_size = align(wqe_size, stride);
12191219
}
12201220
if (wqe_size > max_wqesz)
12211221
return -EINVAL;

0 commit comments

Comments
 (0)