From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 636F5914 for ; Fri, 1 Jul 2016 18:37:10 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 01 Jul 2016 09:37:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,557,1459839600"; d="scan'208";a="838772681" Received: from dhunt5-mobl.ger.corp.intel.com (HELO [10.237.221.9]) ([10.237.221.9]) by orsmga003.jf.intel.com with ESMTP; 01 Jul 2016 09:37:08 -0700 To: dev@dpdk.org References: <1467390408-781-1-git-send-email-ferruh.yigit@intel.com> From: "Hunt, David" Message-ID: Date: Fri, 1 Jul 2016 17:37:07 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <1467390408-781-1-git-send-email-ferruh.yigit@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] ivshmem: fix for modified mempool struct X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 16:37:10 -0000 On 1/7/2016 5:26 PM, Ferruh Yigit wrote: > 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 Acked-by: David Hunt