Date: Mon, 12 Nov 2007 21:13:38 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 128992 for review Message-ID: <200711122113.lACLDcos055405@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=128992 Change 128992 by kmacy@kmacy_home:ethng on 2007/11/12 21:13:31 make mbuf_put as close to skb_put as possible in the absence of head and tailroom Affected files ... .. //depot/projects/ethng/src/sys/sys/linux_compat.h#8 edit Differences ... ==== //depot/projects/ethng/src/sys/sys/linux_compat.h#8 (text+ko) ==== @@ -64,12 +64,11 @@ static __inline caddr_t mbuf_put(struct mbuf *m, unsigned int len) { - caddr_t tmp = m->m_data; + caddr_t tmp = mtod(m, caddr_t); - panic("FIXME"); - - m->m_data += len; m->m_len += len; + if (m->m_flags & M_PKTHDR) + m->m_pkthdr.len += len; return (tmp); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711122113.lACLDcos055405>