Skip to content

Commit bbcdc3b

Browse files
damodhar-aiselvintxavier
authored andcommitted
bnxt_re/lib: Report vendor_err as zero for all flush completions.
vendor_err is reported as invalid value as this is not initalized. Initialize the reported vendor_err to zero. Fixes: f158e23 ("libbnxt_re: Allow apps to poll for flushed completions") Signed-off-by: Damodharam Ammepalli <damodharam.ammepalli@broadcom.com> Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
1 parent 0cbb657 commit bbcdc3b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

providers/bnxt_re/verbs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,7 @@ static int bnxt_re_poll_flush_wcs(struct bnxt_re_joint_queue *jqq,
975975
}
976976

977977
ibvwc->status = IBV_WC_WR_FLUSH_ERR;
978+
ibvwc->vendor_err = 0;
978979
ibvwc->opcode = opcode;
979980
ibvwc->wr_id = wrid->wrid;
980981
ibvwc->qp_num = qpid;

0 commit comments

Comments
 (0)