Date: Wed, 9 Jan 2008 17:23:04 GMT From: Steve Wise <swise@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 132900 for review Message-ID: <200801091723.m09HN4gU077779@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132900 Change 132900 by swise@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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801091723.m09HN4gU077779>