Message ID | 1467390408-781-1-git-send-email-ferruh.yigit@intel.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id C4FE129C7; Fri, 1 Jul 2016 18:26:55 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id CE229E6D for <dev@dpdk.org>; Fri, 1 Jul 2016 18:26:54 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 01 Jul 2016 09:26:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,557,1459839600"; d="scan'208";a="838766743" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga003.jf.intel.com with ESMTP; 01 Jul 2016 09:26:51 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u61GQo5Z031972; Fri, 1 Jul 2016 17:26:50 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id u61GQoVf000815; Fri, 1 Jul 2016 17:26:50 +0100 Received: (from fyigit@localhost) by sivswdev02.ir.intel.com with id u61GQn48000811; Fri, 1 Jul 2016 17:26:49 +0100 X-Authentication-Warning: sivswdev02.ir.intel.com: fyigit set sender to ferruh.yigit@intel.com using -f From: Ferruh Yigit <ferruh.yigit@intel.com> To: dev@dpdk.org Cc: Anatoly Burakov <anatoly.burakov@intel.com> Date: Fri, 1 Jul 2016 17:26:48 +0100 Message-Id: <1467390408-781-1-git-send-email-ferruh.yigit@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [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 <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
Ferruh Yigit
July 1, 2016, 4:26 p.m. UTC
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 <ferruh.yigit@intel.com>
---
lib/librte_ivshmem/rte_ivshmem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
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 <ferruh.yigit@intel.com> > --- > 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 <david.hunt@intel.com>
2016-07-01 17:26, Ferruh Yigit: > 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 <ferruh.yigit@intel.com> Applied, thanks
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