diff options
author | Steve Wise <swise@opengridcomputing.com> | 2007-04-26 16:21:20 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-05-07 00:18:08 -0400 |
commit | aff9e39d97585486764572ab2f3bf5dfce18c660 (patch) | |
tree | 63269f4fae6fba0b86432620a82340033622e5f8 /drivers/infiniband/hw/cxgb3/iwch_cm.h | |
parent | 60be4b5966e22040f97db9dada72841bf90479d1 (diff) |
RDMA/cxgb3: Support for new abort logic
The HW now posts 2 ABORT_RPL and/or PEER_ABORT_REQ messages. We need
to handle them by silenty dropping the 1st but mark that we're ready
for the final message. This plugs some close races between the uP and
HW. Also update the minimum required firmware version.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb3/iwch_cm.h')
-rw-r--r-- | drivers/infiniband/hw/cxgb3/iwch_cm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.h b/drivers/infiniband/hw/cxgb3/iwch_cm.h index 0c6f281bd4a0..21a388c313cf 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_cm.h +++ b/drivers/infiniband/hw/cxgb3/iwch_cm.h | |||
@@ -143,6 +143,11 @@ enum iwch_ep_state { | |||
143 | DEAD, | 143 | DEAD, |
144 | }; | 144 | }; |
145 | 145 | ||
146 | enum iwch_ep_flags { | ||
147 | PEER_ABORT_IN_PROGRESS = (1 << 0), | ||
148 | ABORT_REQ_IN_PROGRESS = (1 << 1), | ||
149 | }; | ||
150 | |||
146 | struct iwch_ep_common { | 151 | struct iwch_ep_common { |
147 | struct iw_cm_id *cm_id; | 152 | struct iw_cm_id *cm_id; |
148 | struct iwch_qp *qp; | 153 | struct iwch_qp *qp; |
@@ -181,6 +186,7 @@ struct iwch_ep { | |||
181 | u16 plen; | 186 | u16 plen; |
182 | u32 ird; | 187 | u32 ird; |
183 | u32 ord; | 188 | u32 ord; |
189 | u32 flags; | ||
184 | }; | 190 | }; |
185 | 191 | ||
186 | static inline struct iwch_ep *to_ep(struct iw_cm_id *cm_id) | 192 | static inline struct iwch_ep *to_ep(struct iw_cm_id *cm_id) |