]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_mbuf/rte_mbuf.c
mbuf: set mbuf fields while in pool
[dpdk.git] / lib / librte_mbuf / rte_mbuf.c
index 3fb2700ba6a65e70beaa0350c6e1e848af8b201e..207bf3dd32212bc3b5e214edbf2890f789364022 100644 (file)
@@ -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 */