Author: glebius
Date: Mon Feb 23 18:57:09 2015
New Revision: 279213
URL: https://svnweb.freebsd.org/changeset/base/279213

Log:
  A lot of current code in network stack expects mbufs not having
  m_nextpkt pointer, assuming that if there is one, then this is
  a packet batch. Thus, mbufq_dequeue() needs to clear it on mbuf
  that is being returned.

Modified:
  head/sys/sys/mbuf.h

Modified: head/sys/sys/mbuf.h
==============================================================================
--- head/sys/sys/mbuf.h Mon Feb 23 18:55:26 2015        (r279212)
+++ head/sys/sys/mbuf.h Mon Feb 23 18:57:09 2015        (r279213)
@@ -1282,6 +1282,7 @@ mbufq_dequeue(struct mbufq *mq)
        m = STAILQ_FIRST(&mq->mq_head);
        if (m) {
                STAILQ_REMOVE_HEAD(&mq->mq_head, m_stailqpkt);
+               m->m_nextpkt = NULL;
                mq->mq_len--;
        }
        return (m);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to