summaryrefslogtreecommitdiffstats
path: root/src/pal
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-05-08 20:32:52 +0300
committerHanoh Haim <hhaim@cisco.com>2016-05-08 20:32:52 +0300
commit8b4df27252f317b33e11a626997748971625a47c (patch)
tree9f46d76051e69cf20959199fca83126ef82944cf /src/pal
parentc2912dfc5ad81e2edcf77b7ee992f92216ed0bad (diff)
add cache to CP
Diffstat (limited to 'src/pal')
-rwxr-xr-xsrc/pal/linux/mbuf.h7
1 files changed, 7 insertions, 0 deletions
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);
+}
+