Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54381
b: refs/heads/master
c: c3af664
h: refs/heads/master
i:
  54379: 6492937
v: v3
  • Loading branch information
Ralph Campbell authored and Roland Dreier committed May 1, 2007
1 parent 0402673 commit e0872ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 35ff032e65ab5cc03bbba46cefece7376c7c562f
refs/heads/master: c3af664adbe06803931dbc7a3c8588982d72fac1
7 changes: 1 addition & 6 deletions trunk/drivers/infiniband/hw/ipath/ipath_rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,18 +228,13 @@ int ipath_make_rc_req(struct ipath_qp *qp,
goto done;

if (!(ib_ipath_state_ops[qp->state] & IPATH_PROCESS_SEND_OK) ||
qp->s_rnr_timeout)
qp->s_rnr_timeout || qp->s_wait_credit)
goto bail;

/* Limit the number of packets sent without an ACK. */
if (ipath_cmp24(qp->s_psn, qp->s_last_psn + IPATH_PSN_CREDIT) > 0) {
qp->s_wait_credit = 1;
dev->n_rc_stalls++;
spin_lock(&dev->pending_lock);
if (list_empty(&qp->timerwait))
list_add_tail(&qp->timerwait,
&dev->pending[dev->pending_index]);
spin_unlock(&dev->pending_lock);
goto bail;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/infiniband/hw/ipath/ipath_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ struct ipath_qp {
#define IPATH_S_RDMAR_PENDING 0x04
#define IPATH_S_ACK_PENDING 0x08

#define IPATH_PSN_CREDIT 2048
#define IPATH_PSN_CREDIT 512

/*
* Since struct ipath_swqe is not a fixed size, we can't simply index into
Expand Down

0 comments on commit e0872ce

Please sign in to comment.