Deleted Added
full compact
qp.c (273806) qp.c (297124)
1/*
2 * Copyright (c) 2006-2014 Chelsio, Inc. 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:

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

357 case IBV_WR_RDMA_READ:
358 INC_STAT(read);
359 fw_opcode = FW_RI_RDMA_READ_WR;
360 swsqe->opcode = FW_RI_READ_REQ;
361 fw_flags = 0;
362 err = build_rdma_read(wqe, wr, &len16);
363 if (err)
364 break;
1/*
2 * Copyright (c) 2006-2014 Chelsio, Inc. 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:

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

357 case IBV_WR_RDMA_READ:
358 INC_STAT(read);
359 fw_opcode = FW_RI_RDMA_READ_WR;
360 swsqe->opcode = FW_RI_READ_REQ;
361 fw_flags = 0;
362 err = build_rdma_read(wqe, wr, &len16);
363 if (err)
364 break;
365 swsqe->read_len = wr->sg_list[0].length;
365 swsqe->read_len = wr->sg_list ? wr->sg_list[0].length : 0;
366 if (!qhp->wq.sq.oldest_read)
367 qhp->wq.sq.oldest_read = swsqe;
368 break;
369 default:
370 PDBG("%s post of type=%d TBD!\n", __func__,
371 wr->opcode);
372 err = -EINVAL;
373 }

--- 169 unchanged lines hidden ---
366 if (!qhp->wq.sq.oldest_read)
367 qhp->wq.sq.oldest_read = swsqe;
368 break;
369 default:
370 PDBG("%s post of type=%d TBD!\n", __func__,
371 wr->opcode);
372 err = -EINVAL;
373 }

--- 169 unchanged lines hidden ---