Deleted Added
full compact
qp.c (331769) qp.c (346876)
1/*
2 * Copyright (c) 2009-2013 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:

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

25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 * SOFTWARE.
31 */
32#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2009-2013 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:

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

25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 * SOFTWARE.
31 */
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: stable/11/sys/dev/cxgbe/iw_cxgbe/qp.c 331769 2018-03-30 18:06:29Z hselasky $");
33__FBSDID("$FreeBSD: stable/11/sys/dev/cxgbe/iw_cxgbe/qp.c 346876 2019-04-29 04:42:18Z np $");
34
35#include "opt_inet.h"
36
37#ifdef TCP_OFFLOAD
38#include <sys/types.h>
39#include <sys/malloc.h>
40#include <sys/socket.h>
41#include <sys/socketvar.h>

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

229 }
230
231 wq->rdev = rdev;
232 wq->rq.msn = 1;
233
234 /* build fw_ri_res_wr */
235 wr_len = sizeof *res_wr + 2 * sizeof *res;
236
34
35#include "opt_inet.h"
36
37#ifdef TCP_OFFLOAD
38#include <sys/types.h>
39#include <sys/malloc.h>
40#include <sys/socket.h>
41#include <sys/socketvar.h>

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

229 }
230
231 wq->rdev = rdev;
232 wq->rq.msn = 1;
233
234 /* build fw_ri_res_wr */
235 wr_len = sizeof *res_wr + 2 * sizeof *res;
236
237 wr = alloc_wrqe(wr_len, &sc->sge.mgmtq);
237 wr = alloc_wrqe(wr_len, &sc->sge.ctrlq[0]);
238 if (wr == NULL) {
239 ret = -ENOMEM;
240 goto free_rq_dma;
241 }
242 res_wr = wrtod(wr);
243
244 memset(res_wr, 0, wr_len);
245 res_wr->op_nres = cpu_to_be32(

--- 1704 unchanged lines hidden ---
238 if (wr == NULL) {
239 ret = -ENOMEM;
240 goto free_rq_dma;
241 }
242 res_wr = wrtod(wr);
243
244 memset(res_wr, 0, wr_len);
245 res_wr->op_nres = cpu_to_be32(

--- 1704 unchanged lines hidden ---