PERFORCE change 93066 for review
Olivier Houchard
cognet at FreeBSD.org
Thu Mar 9 13:53:04 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=93066
Change 93066 by cognet at 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;
More information about the p4-projects
mailing list