From 8b4df27252f317b33e11a626997748971625a47c Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Sun, 8 May 2016 20:32:52 +0300 Subject: add cache to CP --- src/pal/linux/mbuf.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/pal') diff --git a/src/pal/linux/mbuf.h b/src/pal/linux/mbuf.h index 4132f842..50f00b94 100755 --- a/src/pal/linux/mbuf.h +++ b/src/pal/linux/mbuf.h @@ -182,6 +182,13 @@ static inline void utl_rte_pktmbuf_add_last(rte_mbuf_t *m,rte_mbuf_t *m_last){ } } +static inline void rte_pktmbuf_refcnt_update(struct rte_mbuf *m, int16_t v) +{ + do { + rte_mbuf_refcnt_update(m, v); + } while ((m = m->next) != NULL); +} + -- cgit 1.2.3-korg