]> git.ipfire.org Git - thirdparty/kernel/linux.git/blobdiff - drivers/net/ethernet/mellanox/mlx5/core/cq.c
Merge branch 'sg_nents' into rdma.git for-next
[thirdparty/kernel/linux.git] / drivers / net / ethernet / mellanox / mlx5 / core / cq.c
index 360e093874d4fc00ddf68aecf8353d204011224a..cf97985628ab91d4bf2940adb24cd70b18a34e1f 100644 (file)
@@ -89,7 +89,8 @@ static void mlx5_add_cq_to_tasklet(struct mlx5_core_cq *cq,
 int mlx5_core_create_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq,
                        u32 *in, int inlen, u32 *out, int outlen)
 {
-       int eqn = MLX5_GET(cqc, MLX5_ADDR_OF(create_cq_in, in, cq_context), c_eqn);
+       int eqn = MLX5_GET(cqc, MLX5_ADDR_OF(create_cq_in, in, cq_context),
+                          c_eqn_or_apu_element);
        u32 din[MLX5_ST_SZ_DW(destroy_cq_in)] = {};
        struct mlx5_eq_comp *eq;
        int err;