aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2019-01-10 09:21:37 +0200
committerMatias Elo <matias.elo@nokia.com>2019-01-10 15:29:24 +0200
commit8bb9555c2c35dfc2095f4b29e5323295e2ef09ac (patch)
treec9c878d739bb9f4655d855aee0e7df31563585d5
parentab3f675fe36de01c33d30ee976c2cb7d13d16d87 (diff)
linux-dpdk: pool: use rte_mbuf_raw API instead of rte_ctrlmbuf
rte_ctrlmbuf API has been removed in DPDK v18.02. Signed-off-by: Matias Elo <matias.elo@nokia.com>
-rw-r--r--platform/linux-dpdk/include/odp_pool_internal.h2
-rw-r--r--platform/linux-dpdk/odp_pool.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/platform/linux-dpdk/include/odp_pool_internal.h b/platform/linux-dpdk/include/odp_pool_internal.h
index 08528bdd8..530474467 100644
--- a/platform/linux-dpdk/include/odp_pool_internal.h
+++ b/platform/linux-dpdk/include/odp_pool_internal.h
@@ -86,7 +86,7 @@ static inline void buffer_free_multi(odp_buffer_hdr_t *buf_hdr[], int num)
int i;
for (i = 0; i < num; i++)
- rte_ctrlmbuf_free((struct rte_mbuf *)(uintptr_t)buf_hdr[i]);
+ rte_mbuf_raw_free((struct rte_mbuf *)(uintptr_t)buf_hdr[i]);
}
#ifdef __cplusplus
diff --git a/platform/linux-dpdk/odp_pool.c b/platform/linux-dpdk/odp_pool.c
index 0853d0055..7814a96ef 100644
--- a/platform/linux-dpdk/odp_pool.c
+++ b/platform/linux-dpdk/odp_pool.c
@@ -598,7 +598,7 @@ static inline int buffer_alloc_multi(pool_t *pool, odp_buffer_hdr_t *buf_hdr[],
for (i = 0; i < num; i++) {
struct rte_mbuf *mbuf;
- mbuf = rte_ctrlmbuf_alloc(mp);
+ mbuf = rte_mbuf_raw_alloc(mp);
if (odp_unlikely(mbuf == NULL))
return i;
@@ -638,7 +638,7 @@ int odp_buffer_alloc_multi(odp_pool_t pool_hdl, odp_buffer_t buf[], int num)
void odp_buffer_free(odp_buffer_t buf)
{
- rte_ctrlmbuf_free(buf_to_mbuf(buf));
+ rte_mbuf_raw_free(buf_to_mbuf(buf));
}
void odp_buffer_free_multi(const odp_buffer_t buf[], int num)