X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_mbuf%2Frte_mbuf.c;h=207bf3dd32212bc3b5e214edbf2890f789364022;hb=8f094a9ac5d7424e460bc85708e99aa255432a87;hp=3fb2700ba6a65e70beaa0350c6e1e848af8b201e;hpb=1f88c0a22bb1adc5bab8e03bca82bd25d8b70bf2;p=dpdk.git diff --git a/lib/librte_mbuf/rte_mbuf.c b/lib/librte_mbuf/rte_mbuf.c index 3fb2700ba6..207bf3dd32 100644 --- a/lib/librte_mbuf/rte_mbuf.c +++ b/lib/librte_mbuf/rte_mbuf.c @@ -146,6 +146,8 @@ rte_pktmbuf_init(struct rte_mempool *mp, m->pool = mp; m->nb_segs = 1; m->port = 0xff; + rte_mbuf_refcnt_set(m, 1); + m->next = NULL; } /* helper to create a mbuf pool */