From: Ferruh Yigit Date: Fri, 1 Jul 2016 16:26:48 +0000 (+0100) Subject: ivshmem: fix for modified mempool struct X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e25a87cc3a9c757b75037654a427d7493a693b45;p=dpdk.git ivshmem: fix for modified mempool struct struct rte_mempool changed its "ring" field to "pool_data" "ring" field is accessed by ivshmem library, and updated to "pool_data" This patch fixes the compile error: lib/librte_ivshmem/rte_ivshmem.c: In function 'add_mempool_to_metadata': lib/librte_ivshmem/rte_ivshmem.c:584:32: error: 'const struct rte_mempool' has no member named 'ring' return add_ring_to_metadata(mp->ring, config); ^~ Fixes: 449c49b93a6b ("mempool: support handler operations") Signed-off-by: Ferruh Yigit Acked-by: David Hunt --- diff --git a/lib/librte_ivshmem/rte_ivshmem.c b/lib/librte_ivshmem/rte_ivshmem.c index 5c839207d5..c26edb61a6 100644 --- a/lib/librte_ivshmem/rte_ivshmem.c +++ b/lib/librte_ivshmem/rte_ivshmem.c @@ -581,7 +581,7 @@ add_mempool_to_metadata(const struct rte_mempool *mp, } /* mempool consists of memzone and ring */ - return add_ring_to_metadata(mp->ring, config); + return add_ring_to_metadata(mp->pool_data, config); } int