Date: Thu, 9 Mar 2006 21:53:02 GMT From: Olivier Houchard <cognet@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 93066 for review Message-ID: <200603092153.k29Lr2ZR035126@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=93066 Change 93066 by cognet@cognet on 2006/03/09 21:52:47 Set the len of the freshly allocated mbuf, or bus_dmamap_load_sg() will consider it has a len of 0, and won't actually feel the seg, which is not good. Affected files ... .. //depot/projects/arm/src/sys/arm/at91/if_ate.c#31 edit Differences ... ==== //depot/projects/arm/src/sys/arm/at91/if_ate.c#31 (text+ko) ==== @@ -625,6 +625,8 @@ */ sc->rx_mbuf[i] = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR); + sc->rx_mbuf[i]->m_len = + sc->rx_mbuf[i]->m_pkthdr.len = MCLBYTES; if (!sc->rx_mbuf[i]) { printf("Failed to get another mbuf -- discarding packet\n"); sc->rx_mbuf[i] = mb;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603092153.k29Lr2ZR035126>