ivshmem: fix for modified mempool struct
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 1 Jul 2016 16:26:48 +0000 (17:26 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 1 Jul 2016 17:33:08 +0000 (19:33 +0200)
commite25a87cc3a9c757b75037654a427d7493a693b45
treede04cf5ca19342a1fcda64918acb076686a6dbcb
parentec03a0a97eed214a55b6fc2b18e2975ddc0e1357
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>
lib/librte_ivshmem/rte_ivshmem.c