vdpa/mlx5: fix mkey creation check
authorBing Zhao <bingz@nvidia.com>
Fri, 12 Nov 2021 14:42:45 +0000 (16:42 +0200)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 16 Nov 2021 10:21:18 +0000 (11:21 +0100)
commite9511a26e1c4fed566c3c2ea33ca895b7ab4f724
treeb828f2146a08c1d2170aafaa03b3200b5394f448
parent5932109ac869aa6ad130989e7532294635e20d47
vdpa/mlx5: fix mkey creation check

The return value of "mlx5_os_wrapped_mkey_create" is checked in the
caller. A zero means success without any error.

The typo in the if-condition should be fixed in case there is a
misjudgment.

Fixes: 398ea8450c53 ("vdpa/mlx5: workaround dirty bitmap MR creation")
Cc: stable@dpdk.org
Signed-off-by: Bing Zhao <bingz@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
drivers/vdpa/mlx5/mlx5_vdpa_lm.c