From: Max Gurtovoy Date: Thu, 27 Oct 2016 13:36:36 +0000 (+0300) Subject: IB/mlx5: Replace numerical constant with predefined MACRO X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2d2215888d758c194efb38332aaf5e2069ac578e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git IB/mlx5: Replace numerical constant with predefined MACRO Replace the pre-defined macro signifying inline umr instead of the numerical constant. Signed-off-by: Max Gurtovoy Signed-off-by: Leon Romanovsky Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c index 41f4c2afbcdd..00cffbfe6c35 100644 --- a/drivers/infiniband/hw/mlx5/qp.c +++ b/drivers/infiniband/hw/mlx5/qp.c @@ -3068,7 +3068,7 @@ static void set_linv_umr_seg(struct mlx5_wqe_umr_ctrl_seg *umr) { memset(umr, 0, sizeof(*umr)); umr->mkey_mask = cpu_to_be64(MLX5_MKEY_MASK_FREE); - umr->flags = 1 << 7; + umr->flags = MLX5_UMR_INLINE; } static __be64 get_umr_reg_mr_mask(void)