Deleted Added
full compact
iw_cxgb_provider.c (302408) iw_cxgb_provider.c (318798)
1/**************************************************************************
2
3Copyright (c) 2007, Chelsio Inc.
4All rights reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met:
8

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

22SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26POSSIBILITY OF SUCH DAMAGE.
27
28***************************************************************************/
29#include <sys/cdefs.h>
1/**************************************************************************
2
3Copyright (c) 2007, Chelsio Inc.
4All rights reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met:
8

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

22SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26POSSIBILITY OF SUCH DAMAGE.
27
28***************************************************************************/
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: stable/11/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.c 294610 2016-01-22 23:33:34Z np $");
30__FBSDID("$FreeBSD: stable/11/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.c 318798 2017-05-24 18:14:57Z np $");
31
32#include "opt_inet.h"
33
34#ifdef TCP_OFFLOAD
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/kernel.h>
38#include <sys/bus.h>

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

1089 (1ull << IB_USER_VERBS_CMD_POLL_CQ) |
1090 (1ull << IB_USER_VERBS_CMD_DESTROY_QP) |
1091 (1ull << IB_USER_VERBS_CMD_POST_SEND) |
1092 (1ull << IB_USER_VERBS_CMD_POST_RECV);
1093 dev->ibdev.node_type = RDMA_NODE_RNIC;
1094 memcpy(dev->ibdev.node_desc, IWCH_NODE_DESC, sizeof(IWCH_NODE_DESC));
1095 dev->ibdev.phys_port_cnt = sc->params.nports;
1096 dev->ibdev.num_comp_vectors = 1;
31
32#include "opt_inet.h"
33
34#ifdef TCP_OFFLOAD
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/kernel.h>
38#include <sys/bus.h>

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

1089 (1ull << IB_USER_VERBS_CMD_POLL_CQ) |
1090 (1ull << IB_USER_VERBS_CMD_DESTROY_QP) |
1091 (1ull << IB_USER_VERBS_CMD_POST_SEND) |
1092 (1ull << IB_USER_VERBS_CMD_POST_RECV);
1093 dev->ibdev.node_type = RDMA_NODE_RNIC;
1094 memcpy(dev->ibdev.node_desc, IWCH_NODE_DESC, sizeof(IWCH_NODE_DESC));
1095 dev->ibdev.phys_port_cnt = sc->params.nports;
1096 dev->ibdev.num_comp_vectors = 1;
1097 dev->ibdev.dma_device = dev->rdev.adap->dev;
1097 dev->ibdev.dma_device = NULL;
1098 dev->ibdev.query_device = iwch_query_device;
1099 dev->ibdev.query_port = iwch_query_port;
1100 dev->ibdev.modify_port = iwch_modify_port;
1101 dev->ibdev.query_pkey = iwch_query_pkey;
1102 dev->ibdev.query_gid = iwch_query_gid;
1103 dev->ibdev.alloc_ucontext = iwch_alloc_ucontext;
1104 dev->ibdev.dealloc_ucontext = iwch_dealloc_ucontext;
1105 dev->ibdev.mmap = iwch_mmap;

--- 63 unchanged lines hidden ---
1098 dev->ibdev.query_device = iwch_query_device;
1099 dev->ibdev.query_port = iwch_query_port;
1100 dev->ibdev.modify_port = iwch_modify_port;
1101 dev->ibdev.query_pkey = iwch_query_pkey;
1102 dev->ibdev.query_gid = iwch_query_gid;
1103 dev->ibdev.alloc_ucontext = iwch_alloc_ucontext;
1104 dev->ibdev.dealloc_ucontext = iwch_dealloc_ucontext;
1105 dev->ibdev.mmap = iwch_mmap;

--- 63 unchanged lines hidden ---