Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jan 2008 19:16:34 GMT
From:      Steve Wise <swise@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 133266 for review
Message-ID:  <200801141916.m0EJGYuf018387@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133266

Change 133266 by swise@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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801141916.m0EJGYuf018387>