From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: [PATCH] ivshmem: fix for modified mempool struct Date: Fri, 1 Jul 2016 17:26:48 +0100 Message-ID: <1467390408-781-1-git-send-email-ferruh.yigit@intel.com> Cc: Anatoly Burakov To: dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id CE229E6D for ; Fri, 1 Jul 2016 18:26:54 +0200 (CEST) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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: == Build lib/librte_ivshmem CC rte_ivshmem.o .../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 --- lib/librte_ivshmem/rte_ivshmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.7.4