Skip to content
Permalink
Browse files
RDMA/bnxt_re: Disable atomic support on VFs
Atomics is not currently supported for VFs. Enabling only
for PFs.

Fixes: 35f5ace ("RDMA/bnxt_re: Enable global atomic ops if platform supports")
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
  • Loading branch information
selvintxavier authored and intel-lab-lkp committed Aug 18, 2021
1 parent d2b1079 commit 5b4e1e8d37b166a3d6c7468eb96a8d7bc77740dd
Showing 1 changed file with 1 addition and 1 deletion.
@@ -128,7 +128,7 @@ static int bnxt_re_setup_chip_ctx(struct bnxt_re_dev *rdev, u8 wqe_mode)
rdev->rcfw.res = &rdev->qplib_res;

bnxt_re_set_drv_mode(rdev, wqe_mode);
if (bnxt_qplib_determine_atomics(en_dev->pdev))
if (!rdev->qplib_res.is_vf && bnxt_qplib_determine_atomics(en_dev->pdev))
ibdev_info(&rdev->ibdev,
"platform doesn't support global atomics.");
return 0;

0 comments on commit 5b4e1e8

Please sign in to comment.