summaryrefslogtreecommitdiff
path: root/lib/librte_ivshmem
diff options
context:
space:
mode:
authorFerruh Yigit <ferruh.yigit@intel.com>2016-07-01 17:26:48 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-07-01 19:33:08 +0200
commite25a87cc3a9c757b75037654a427d7493a693b45 (patch)
treede04cf5ca19342a1fcda64918acb076686a6dbcb /lib/librte_ivshmem
parentec03a0a97eed214a55b6fc2b18e2975ddc0e1357 (diff)
downloaddpdk-e25a87cc3a9c757b75037654a427d7493a693b45.zip
dpdk-e25a87cc3a9c757b75037654a427d7493a693b45.tar.gz
dpdk-e25a87cc3a9c757b75037654a427d7493a693b45.tar.xz
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 <ferruh.yigit@intel.com> Acked-by: David Hunt <david.hunt@intel.com>
Diffstat (limited to 'lib/librte_ivshmem')
-rw-r--r--lib/librte_ivshmem/rte_ivshmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_ivshmem/rte_ivshmem.c b/lib/librte_ivshmem/rte_ivshmem.c
index 5c83920..c26edb6 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