diff options
author | Steve Wise <swise@opengridcomputing.com> | 2007-06-19 10:27:48 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-07-09 23:12:26 -0400 |
commit | 1580367e7b2068d075cd42d04c4b8c274815e6fc (patch) | |
tree | 594ac80b4d09207776db6ea7ab81b92fc83e469e /drivers/infiniband | |
parent | fb497d726612bb0e50240405aaabcf37f13901ed (diff) |
RDMA/cxgb3: Don't count neg_adv abort_req_rss messages as real aborts
Negative advice messages should _not_ count toward the 2 abort
requests needed to indicate an abort request.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/cxgb3/iwch_cm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c index 7b8d5aaa2204..4d7c277d7cc4 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_cm.c +++ b/drivers/infiniband/hw/cxgb3/iwch_cm.c | |||
@@ -1465,6 +1465,13 @@ static int peer_abort(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) | |||
1465 | int ret; | 1465 | int ret; |
1466 | int state; | 1466 | int state; |
1467 | 1467 | ||
1468 | if (is_neg_adv_abort(req->status)) { | ||
1469 | PDBG("%s neg_adv_abort ep %p tid %d\n", __FUNCTION__, ep, | ||
1470 | ep->hwtid); | ||
1471 | t3_l2t_send_event(ep->com.tdev, ep->l2t); | ||
1472 | return CPL_RET_BUF_DONE; | ||
1473 | } | ||
1474 | |||
1468 | /* | 1475 | /* |
1469 | * We get 2 peer aborts from the HW. The first one must | 1476 | * We get 2 peer aborts from the HW. The first one must |
1470 | * be ignored except for scribbling that we need one more. | 1477 | * be ignored except for scribbling that we need one more. |
@@ -1474,13 +1481,6 @@ static int peer_abort(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) | |||
1474 | return CPL_RET_BUF_DONE; | 1481 | return CPL_RET_BUF_DONE; |
1475 | } | 1482 | } |
1476 | 1483 | ||
1477 | if (is_neg_adv_abort(req->status)) { | ||
1478 | PDBG("%s neg_adv_abort ep %p tid %d\n", __FUNCTION__, ep, | ||
1479 | ep->hwtid); | ||
1480 | t3_l2t_send_event(ep->com.tdev, ep->l2t); | ||
1481 | return CPL_RET_BUF_DONE; | ||
1482 | } | ||
1483 | |||
1484 | state = state_read(&ep->com); | 1484 | state = state_read(&ep->com); |
1485 | PDBG("%s ep %p state %u\n", __FUNCTION__, ep, state); | 1485 | PDBG("%s ep %p state %u\n", __FUNCTION__, ep, state); |
1486 | switch (state) { | 1486 | switch (state) { |