PERFORCE change 133266 for review
Steve Wise
swise at FreeBSD.org
Mon Jan 14 11:16:36 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=133266
Change 133266 by swise at swise:vic10:iwarp on 2008/01/14 19:16:04
Fixed iwch_post_terminate().
- set sgl and sgllen correctly
- allocate pkthdr mbuf.
Affected files ...
.. //depot/projects/iwarp/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_iwch_qp.c#4 edit
Differences ...
==== //depot/projects/iwarp/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_iwch_qp.c#4 (text+ko) ====
@@ -665,7 +665,7 @@
struct mbuf *m;
PDBG("%s %d\n", __FUNCTION__, __LINE__);
- m = m_get(MT_DATA, M_NOWAIT);
+ m = m_gethdr(MT_DATA, M_NOWAIT);
if (!m) {
log(LOG_ERR, "%s cannot send TERMINATE!\n", __FUNCTION__);
return (-ENOMEM);
@@ -685,6 +685,8 @@
wqe->send.wrh.gen_tid_len = cpu_to_be32(V_FW_RIWR_TID(qhp->ep->hwtid));
m_set_priority(m, CPL_PRIORITY_DATA);
+ m_set_sgl(m, NULL);
+ m_set_sgllen(m, 0);
return cxgb_ofld_send(qhp->rhp->rdev.t3cdev_p, m);
}
More information about the p4-projects
mailing list