qp.c (af52739b922f656eb1f39016fabaabe4baeda2e2) qp.c (c9b254955b9f8814966f5dabd34c39d0e0a2b437)
1/*
2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 3318 unchanged lines hidden (view full) ---

3327 wr->send_flags & IB_SEND_FENCE))
3328 return MLX5_FENCE_MODE_STRONG_ORDERING;
3329
3330 if (unlikely(fence)) {
3331 if (wr->send_flags & IB_SEND_FENCE)
3332 return MLX5_FENCE_MODE_SMALL_AND_FENCE;
3333 else
3334 return fence;
1/*
2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 3318 unchanged lines hidden (view full) ---

3327 wr->send_flags & IB_SEND_FENCE))
3328 return MLX5_FENCE_MODE_STRONG_ORDERING;
3329
3330 if (unlikely(fence)) {
3331 if (wr->send_flags & IB_SEND_FENCE)
3332 return MLX5_FENCE_MODE_SMALL_AND_FENCE;
3333 else
3334 return fence;
3335
3336 } else {
3337 return 0;
3335 } else if (unlikely(wr->send_flags & IB_SEND_FENCE)) {
3336 return MLX5_FENCE_MODE_FENCE;
3338 }
3337 }
3338
3339 return 0;
3339}
3340
3341static int begin_wqe(struct mlx5_ib_qp *qp, void **seg,
3342 struct mlx5_wqe_ctrl_seg **ctrl,
3343 struct ib_send_wr *wr, unsigned *idx,
3344 int *size, int nreq)
3345{
3346 int err = 0;

--- 819 unchanged lines hidden ---
3340}
3341
3342static int begin_wqe(struct mlx5_ib_qp *qp, void **seg,
3343 struct mlx5_wqe_ctrl_seg **ctrl,
3344 struct ib_send_wr *wr, unsigned *idx,
3345 int *size, int nreq)
3346{
3347 int err = 0;

--- 819 unchanged lines hidden ---