Deleted Added
full compact
iw_cxgbe.h (296478) iw_cxgbe.h (297124)
1/*
2 * Copyright (c) 2009-2013, 2016 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:

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

23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
26 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
28 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29 * SOFTWARE.
30 *
1/*
2 * Copyright (c) 2009-2013, 2016 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:

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

23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
26 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
28 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29 * SOFTWARE.
30 *
31 * $FreeBSD: head/sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h 296478 2016-03-08 00:23:56Z np $
31 * $FreeBSD: head/sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h 297124 2016-03-21 00:29:45Z np $
32 */
33#ifndef __IW_CXGB4_H__
34#define __IW_CXGB4_H__
35
36#include <linux/list.h>
37#include <linux/spinlock.h>
38#include <linux/idr.h>
39#include <linux/completion.h>

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

152
153static inline int c4iw_fatal_error(struct c4iw_rdev *rdev)
154{
155 return rdev->flags & T4_FATAL_ERROR;
156}
157
158static inline int c4iw_num_stags(struct c4iw_rdev *rdev)
159{
32 */
33#ifndef __IW_CXGB4_H__
34#define __IW_CXGB4_H__
35
36#include <linux/list.h>
37#include <linux/spinlock.h>
38#include <linux/idr.h>
39#include <linux/completion.h>

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

152
153static inline int c4iw_fatal_error(struct c4iw_rdev *rdev)
154{
155 return rdev->flags & T4_FATAL_ERROR;
156}
157
158static inline int c4iw_num_stags(struct c4iw_rdev *rdev)
159{
160 return min((int)T4_MAX_NUM_STAG, (int)(rdev->adap->vres.stag.size >> 5));
160 return (int)(rdev->adap->vres.stag.size >> 5);
161}
162
163#define C4IW_WR_TO (10*HZ)
164
165struct c4iw_wr_wait {
166 int ret;
167 atomic_t completion;
168};

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

430 struct c4iw_ep *ep;
431 struct c4iw_qp_attributes attr;
432 struct t4_wq wq;
433 spinlock_t lock;
434 struct mutex mutex;
435 atomic_t refcnt;
436 wait_queue_head_t wait;
437 struct timer_list timer;
161}
162
163#define C4IW_WR_TO (10*HZ)
164
165struct c4iw_wr_wait {
166 int ret;
167 atomic_t completion;
168};

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

430 struct c4iw_ep *ep;
431 struct c4iw_qp_attributes attr;
432 struct t4_wq wq;
433 spinlock_t lock;
434 struct mutex mutex;
435 atomic_t refcnt;
436 wait_queue_head_t wait;
437 struct timer_list timer;
438 int sq_sig_all;
438};
439
440static inline struct c4iw_qp *to_c4iw_qp(struct ib_qp *ibqp)
441{
442 return container_of(ibqp, struct c4iw_qp, ibqp);
443}
444
445struct c4iw_ucontext {

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

707 DEAD,
708};
709
710enum c4iw_ep_flags {
711 PEER_ABORT_IN_PROGRESS = 0,
712 ABORT_REQ_IN_PROGRESS = 1,
713 RELEASE_RESOURCES = 2,
714 CLOSE_SENT = 3,
439};
440
441static inline struct c4iw_qp *to_c4iw_qp(struct ib_qp *ibqp)
442{
443 return container_of(ibqp, struct c4iw_qp, ibqp);
444}
445
446struct c4iw_ucontext {

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

708 DEAD,
709};
710
711enum c4iw_ep_flags {
712 PEER_ABORT_IN_PROGRESS = 0,
713 ABORT_REQ_IN_PROGRESS = 1,
714 RELEASE_RESOURCES = 2,
715 CLOSE_SENT = 3,
715 TIMEOUT = 4
716 TIMEOUT = 4,
717 QP_REFERENCED = 5
716};
717
718enum c4iw_ep_history {
719 ACT_OPEN_REQ = 0,
720 ACT_OFLD_CONN = 1,
721 ACT_OPEN_RPL = 2,
722 ACT_ESTAB = 3,
723 PASS_ACCEPT_REQ = 4,

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

732 PEER_CLOSE = 13,
733 CONNREQ_UPCALL = 14,
734 ABORT_CONN = 15,
735 DISCONN_UPCALL = 16,
736 EP_DISC_CLOSE = 17,
737 EP_DISC_ABORT = 18,
738 CONN_RPL_UPCALL = 19,
739 ACT_RETRY_NOMEM = 20,
718};
719
720enum c4iw_ep_history {
721 ACT_OPEN_REQ = 0,
722 ACT_OFLD_CONN = 1,
723 ACT_OPEN_RPL = 2,
724 ACT_ESTAB = 3,
725 PASS_ACCEPT_REQ = 4,

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

734 PEER_CLOSE = 13,
735 CONNREQ_UPCALL = 14,
736 ABORT_CONN = 15,
737 DISCONN_UPCALL = 16,
738 EP_DISC_CLOSE = 17,
739 EP_DISC_ABORT = 18,
740 CONN_RPL_UPCALL = 19,
741 ACT_RETRY_NOMEM = 20,
740 ACT_RETRY_INUSE = 21
742 ACT_RETRY_INUSE = 21,
743 CLOSE_CON_RPL = 22,
744 EP_DISC_FAIL = 24,
745 QP_REFED = 25,
746 QP_DEREFED = 26,
747 CM_ID_REFED = 27,
748 CM_ID_DEREFED = 28
741};
742
743struct c4iw_ep_common {
744 TAILQ_ENTRY(c4iw_ep_common) entry; /* Work queue attachment */
745 struct iw_cm_id *cm_id;
746 struct c4iw_qp *qp;
747 struct c4iw_dev *dev;
748 enum c4iw_ep_state state;

--- 295 unchanged lines hidden ---
749};
750
751struct c4iw_ep_common {
752 TAILQ_ENTRY(c4iw_ep_common) entry; /* Work queue attachment */
753 struct iw_cm_id *cm_id;
754 struct c4iw_qp *qp;
755 struct c4iw_dev *dev;
756 enum c4iw_ep_state state;

--- 295 unchanged lines hidden ---