[dpdk-dev] Do we need the refcnt set to zero again?

2015-03-02 Thread Bruce Richardson
On Sat, Feb 28, 2015 at 06:08:16PM +, Wiles, Keith wrote: > Looking that the code below does the rte_mbuf_refcnt_set(m,0) need to be > present? > > static inline struct rte_mbuf* __attribute__((always_inline)) > __rte_pktmbuf_prefree_seg(struct rte_mbuf *m) > { > __rte_mbuf_sanity_check(m, 0)

[dpdk-dev] Do we need the refcnt set to zero again?

2015-02-28 Thread Wiles, Keith
Looking that the code below does the rte_mbuf_refcnt_set(m,0) need to be present? static inline struct rte_mbuf* __attribute__((always_inline)) __rte_pktmbuf_prefree_seg(struct rte_mbuf *m) { __rte_mbuf_sanity_check(m, 0); if (likely (rte_mbuf_refcnt_read(m) == 1) || likely (rte_mbuf_refcnt_upda