diff options
author | Mohammad Abdul Awal <mohammad.abdul.awal@intel.com> | 2017-05-11 13:36:12 +0100 |
---|---|---|
committer | Mohammad Abdul Awal <mohammad.abdul.awal@intel.com> | 2017-05-15 15:11:36 +0100 |
commit | fbba0a3bf2dbfd86e48efe9745af9f94203d5f80 (patch) | |
tree | 69ba709ff7ebc503fc2036324c1ffa09037a9f7d /lib/libtle_l4p/misc.h | |
parent | 8d020909941acca43cf7e772a99682a894347526 (diff) |
Added rte_ring wrapper functions to support dpdk-17.05 and older version
Change-Id: I5cfcff8be275ab2a2fb4ad6a62777a8cb88f425b
Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>
Diffstat (limited to 'lib/libtle_l4p/misc.h')
-rw-r--r-- | lib/libtle_l4p/misc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libtle_l4p/misc.h b/lib/libtle_l4p/misc.h index 55dca10..6450b67 100644 --- a/lib/libtle_l4p/misc.h +++ b/lib/libtle_l4p/misc.h @@ -16,6 +16,8 @@ #ifndef _MISC_H_ #define _MISC_H_ +#include <tle_dpdk_wrapper.h> + #ifdef __cplusplus extern "C" { #endif @@ -402,7 +404,7 @@ empty_mbuf_ring(struct rte_ring *r) struct rte_mbuf *mb[MAX_PKT_BURST]; do { - n = rte_ring_dequeue_burst(r, (void **)mb, RTE_DIM(mb)); + n = _rte_ring_dequeue_burst(r, (void **)mb, RTE_DIM(mb)); for (i = 0; i != n; i++) rte_pktmbuf_free(mb[i]); } while (n != 0); |