PERFORCE change 128992 for review
Kip Macy
kmacy at FreeBSD.org
Mon Nov 12 13:13:39 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=128992
Change 128992 by kmacy at 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);
}
More information about the p4-projects
mailing list