PERFORCE change 132900 for review
Steve Wise
swise at FreeBSD.org
Wed Jan 9 09:23:05 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=132900
Change 132900 by swise at swise:vic10:iwarp on 2008/01/09 17:22:55
Set MT_DONTFREE for mpa message mbufs.
Affected files ...
.. //depot/projects/iwarp/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_iwch_cm.c#8 edit
Differences ...
==== //depot/projects/iwarp/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_iwch_cm.c#8 (text+ko) ====
@@ -81,6 +81,7 @@
#include <dev/cxgb/ulp/iw_cxgb/iw_cxgb_iwch.h>
#endif
+#ifdef DEBUG
static char *states[] = {
"idle",
"listen",
@@ -96,6 +97,7 @@
"dead",
NULL,
};
+#endif
SYSCTL_NODE(_hw, OID_AUTO, cxgb, CTLFLAG_RD, 0, "iw_cxgb driver parameters");
@@ -571,6 +573,7 @@
* will remain in memory until the hw acks the tx.
* Function tx_ack() will deref it.
*/
+ m->m_type = MT_DONTFREE; /* XXX */
set_arp_failure_handler(m, arp_failure_discard);
req->wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_TX_DATA));
req->wr_lo = htonl(V_WR_TID(ep->hwtid));
@@ -615,6 +618,7 @@
memcpy(mpa->private_data, pdata, plen);
m_set_priority(m, CPL_PRIORITY_DATA);
+ m->m_type = MT_DONTFREE; /* XXX */
set_arp_failure_handler(m, arp_failure_discard);
req->wr_hi = htonl(V_WR_OP(FW_WROPCODE_OFLD_TX_DATA));
req->wr_lo = htonl(V_WR_TID(ep->hwtid));
@@ -648,6 +652,7 @@
return (-ENOMEM);
}
m_set_priority(m, CPL_PRIORITY_DATA);
+ m->m_type = MT_DONTFREE; /* XXX */
req = (struct tx_data_wr *)mbuf_put(m, sizeof(*req));
mpa = (struct mpa_message *)mbuf_put(m, mpalen);
memset(mpa, 0, sizeof(*mpa));
More information about the p4-projects
mailing list