Can't pass MSIZE to m_cljget(), an mbuf can't be attached as external storage

to another mbuf.
This commit is contained in:
glebius 2012-01-09 14:35:05 +00:00
parent ac80dd6d9e
commit 5b2011f996

View File

@ -2163,8 +2163,7 @@ pfsync_sendout(void)
if (pktlen > MHLEN) {
/* Find the right pool to allocate from. */
/* XXX: This is ugly. */
m_cljget(m, M_DONTWAIT, pktlen <= MSIZE ? MSIZE :
pktlen <= MCLBYTES ? MCLBYTES :
m_cljget(m, M_DONTWAIT, pktlen <= MCLBYTES ? MCLBYTES :
#if MJUMPAGESIZE != MCLBYTES
pktlen <= MJUMPAGESIZE ? MJUMPAGESIZE :
#endif