diff options
author | Bryan O'Sullivan <bos@pathscale.com> | 2006-04-24 14:23:05 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-05-01 12:14:20 -0700 |
commit | 76f0dd141b477094b026206c0d8c21beac6069f5 (patch) | |
tree | 7ca7f8dace47a2aaa0440d881d581a589dec2463 /drivers/infiniband/hw | |
parent | c71c30dcba142f16bc5f651812b1bc0b9f70f02d (diff) | |
download | op-kernel-dev-76f0dd141b477094b026206c0d8c21beac6069f5.zip op-kernel-dev-76f0dd141b477094b026206c0d8c21beac6069f5.tar.gz |
IB/ipath: simplify RC send posting
Remove some unnecessarily complicated tests.
Signed-off-by: Bryan O'Sullivan <bos@pathscale.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_ruc.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_ruc.c b/drivers/infiniband/hw/ipath/ipath_ruc.c index f232e77..eb81424 100644 --- a/drivers/infiniband/hw/ipath/ipath_ruc.c +++ b/drivers/infiniband/hw/ipath/ipath_ruc.c @@ -531,19 +531,12 @@ int ipath_post_rc_send(struct ipath_qp *qp, struct ib_send_wr *wr) } wqe->wr.num_sge = j; qp->s_head = next; - /* - * Wake up the send tasklet if the QP is not waiting - * for an RNR timeout. - */ - next = qp->s_rnr_timeout; spin_unlock_irqrestore(&qp->s_lock, flags); - if (next == 0) { - if (qp->ibqp.qp_type == IB_QPT_UC) - ipath_do_uc_send((unsigned long) qp); - else - ipath_do_rc_send((unsigned long) qp); - } + if (qp->ibqp.qp_type == IB_QPT_UC) + ipath_do_uc_send((unsigned long) qp); + else + ipath_do_rc_send((unsigned long) qp); ret = 0; |