PERFORCE change 93073 for review

Olivier Houchard cognet at FreeBSD.org
Thu Mar 9 14:21:41 PST 2006


http://perforce.freebsd.org/chv.cgi?CH=93073

Change 93073 by cognet at cognet on 2006/03/09 22:21:05

	Bring back the code responsible for setting the mbuf len.

Affected files ...

.. //depot/projects/arm/src/sys/arm/at91/if_ate.c#34 edit

Differences ...

==== //depot/projects/arm/src/sys/arm/at91/if_ate.c#34 (text+ko) ====

@@ -630,6 +630,8 @@
 			 * the new buffer is loaded for dma.
 			 */
 			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