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>
This commit is contained in:
Ferruh Yigit 2016-07-01 17:26:48 +01:00 committed by Thomas Monjalon
parent ec03a0a97e
commit e25a87cc3a

View File

@ -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