mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steve Wise <swise@opengridcomputing.com>
To: rdreier@cisco.com
Cc: general@lists.openfabrics.org, linux-kernel@vger.kernel.org,
	netdev@vger.kernel.org, divy@chelsio.com
Subject: [PATCH 2/6] iw_cxgb3: TERMINATE WRs can hang the tx ofld queue.
Date: Wed, 27 Jun 2007 10:51:30 -0500	[thread overview]
Message-ID: <20070627155130.24944.55771.stgit@dell3.ogc.int> (raw)
In-Reply-To: <20070627155119.24944.44172.stgit@dell3.ogc.int>


iw_cxgb3: TERMINATE WRs can hang the tx ofld queue.

Don't set the gen bits nor length bits in the terminate wr.  This is
done by the LLD driver.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
---

 drivers/infiniband/hw/cxgb3/iwch_qp.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/infiniband/hw/cxgb3/iwch_qp.c b/drivers/infiniband/hw/cxgb3/iwch_qp.c
index 679b7c1..dd89b6b 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_qp.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_qp.c
@@ -628,9 +628,9 @@ int iwch_post_terminate(struct iwch_qp *
 	/* immediate data starts here. */
 	term = (struct terminate_message *)wqe->send.sgl;
 	build_term_codes(rsp_msg, &term->layer_etype, &term->ecode);
-	build_fw_riwrh((void *)wqe, T3_WR_SEND,
-		       T3_COMPLETION_FLAG | T3_NOTIFY_FLAG, 1,
-		       qhp->ep->hwtid, 5);
+	wqe->send.wrh.op_seop_flags = cpu_to_be32(V_FW_RIWR_OP(T3_WR_SEND) |
+			 V_FW_RIWR_FLAGS(T3_COMPLETION_FLAG | T3_NOTIFY_FLAG));
+	wqe->send.wrh.gen_tid_len = cpu_to_be32(V_FW_RIWR_TID(qhp->ep->hwtid));
 	skb->priority = CPL_PRIORITY_DATA;
 	return cxgb3_ofld_send(qhp->rhp->rdev.t3cdev_p, skb);
 }

  parent reply	other threads:[~2007-06-27 15:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-27 15:51 [PATCH 0/6] iw_cxgb3: Bug Fixes for 2.6.23 Steve Wise
2007-06-27 15:51 ` [PATCH 1/6] iw_cxgb3: Streaming -> RDMA mode transition fixes Steve Wise
2007-06-27 15:51 ` Steve Wise [this message]
2007-06-27 15:51 ` [PATCH 3/6] iw_cxgb3: Don't count neg_adv abort_req_rss messages as real aborts Steve Wise
2007-06-27 15:51 ` [PATCH 4/6] iw_cxgb3: ctrl-qp init/clear shouldn't set the gen bit Steve Wise
2007-06-27 15:51 ` [PATCH 5/6] iw_cxgb3: Don't post TID_RELEASE message Steve Wise
2007-06-27 15:51 ` [PATCH 6/6] iw_cxgb3: Don't abort after failures sending the mpa reply Steve Wise
2007-06-27 19:14 ` [PATCH 0/6] iw_cxgb3: Bug Fixes for 2.6.23 Roland Dreier
2007-06-27 19:31   ` Steve Wise

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070627155130.24944.55771.stgit@dell3.ogc.int \
    --to=swise@opengridcomputing.com \
    --cc=divy@chelsio.com \
    --cc=general@lists.openfabrics.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=rdreier@cisco.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®