From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <bruce.richardson@intel.com>
Received: from mga11.intel.com (mga11.intel.com [192.55.52.93])
 by dpdk.org (Postfix) with ESMTP id AA75E376C
 for <dev@dpdk.org>; Mon,  4 Sep 2017 16:50:28 +0200 (CEST)
Received: from orsmga002.jf.intel.com ([10.7.209.21])
 by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
 04 Sep 2017 07:50:27 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.41,475,1498546800"; d="scan'208";a="131558325"
Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.24])
 by orsmga002.jf.intel.com with SMTP; 04 Sep 2017 07:50:24 -0700
Received: by  (sSMTP sendmail emulation); Mon, 04 Sep 2017 15:50:23 +0100
Date: Mon, 4 Sep 2017 15:50:22 +0100
From: Bruce Richardson <bruce.richardson@intel.com>
To: Jianfeng Tan <jianfeng.tan@intel.com>
Cc: dev@dpdk.org, xen-devel@lists.xenproject.org, thomas@monjalon.net,
 john.mcnamara@intel.com, oao.m.martins@oracle.com,
 jerin.jacob@caviumnetworks.com, shahafs@mellanox.com
Message-ID: <20170904145022.GF11856@bricha3-MOBL3.ger.corp.intel.com>
References: <1504116634-115687-1-git-send-email-jianfeng.tan@intel.com>
 <1504116634-115687-3-git-send-email-jianfeng.tan@intel.com>
 <20170904142548.GC11856@bricha3-MOBL3.ger.corp.intel.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20170904142548.GC11856@bricha3-MOBL3.ger.corp.intel.com>
Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?=
 =?iso-8859-1?Q?opment?= Ireland Ltd.
User-Agent: Mutt/1.8.3 (2017-05-23)
Subject: Re: [dpdk-dev] [PATCH 2/6] net/xenvirt: remove
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <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>
X-List-Received-Date: Mon, 04 Sep 2017 14:50:29 -0000

On Mon, Sep 04, 2017 at 03:25:48PM +0100, Bruce Richardson wrote:
> On Wed, Aug 30, 2017 at 06:10:30PM +0000, Jianfeng Tan wrote:
> > Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
> > ---
> >  MAINTAINERS                                     |   2 -
> >  app/test-pmd/Makefile                           |   4 -
> >  app/test-pmd/testpmd.c                          |  12 -
> >  config/common_base                              |   5 -
> >  config/defconfig_arm-armv7a-linuxapp-gcc        |   1 -
> >  doc/guides/nics/features/xenvirt.ini            |   6 -
> >  drivers/net/Makefile                            |   2 -
> >  drivers/net/xenvirt/Makefile                    |  57 --
> >  drivers/net/xenvirt/rte_eth_xenvirt.c           | 766 ------------------------
> >  drivers/net/xenvirt/rte_eth_xenvirt.h           |  61 --
> >  drivers/net/xenvirt/rte_eth_xenvirt_version.map |   7 -
> >  drivers/net/xenvirt/rte_mempool_gntalloc.c      | 295 ---------
> >  drivers/net/xenvirt/rte_xen_lib.c               | 454 --------------
> >  drivers/net/xenvirt/rte_xen_lib.h               | 116 ----
> >  drivers/net/xenvirt/virtio_logs.h               |  70 ---
> >  drivers/net/xenvirt/virtqueue.h                 | 273 ---------
> >  mk/rte.app.mk                                   |   1 -
> >  pkg/dpdk.spec                                   |   3 -
> >  18 files changed, 2135 deletions(-)
> >  delete mode 100644 doc/guides/nics/features/xenvirt.ini
> >  delete mode 100644 drivers/net/xenvirt/Makefile
> >  delete mode 100644 drivers/net/xenvirt/rte_eth_xenvirt.c
> >  delete mode 100644 drivers/net/xenvirt/rte_eth_xenvirt.h
> >  delete mode 100644 drivers/net/xenvirt/rte_eth_xenvirt_version.map
> >  delete mode 100644 drivers/net/xenvirt/rte_mempool_gntalloc.c
> >  delete mode 100644 drivers/net/xenvirt/rte_xen_lib.c
> >  delete mode 100644 drivers/net/xenvirt/rte_xen_lib.h
> >  delete mode 100644 drivers/net/xenvirt/virtio_logs.h
> >  delete mode 100644 drivers/net/xenvirt/virtqueue.h
> > 
> > diff --git a/MAINTAINERS b/MAINTAINERS
> > index fe6c6db..003e72e 100644
> > --- a/MAINTAINERS
> > +++ b/MAINTAINERS
> > @@ -194,9 +194,7 @@ M: Jianfeng Tan <jianfeng.tan@intel.com>
> >  F: lib/librte_eal/linuxapp/xen_dom0/
> >  F: lib/librte_eal/linuxapp/eal/*xen*
> >  F: lib/librte_eal/linuxapp/eal/include/exec-env/rte_dom0_common.h
> > -F: drivers/net/xenvirt/
> >  F: doc/guides/xen/
> > -F: doc/guides/nics/features/xenvirt.ini
> >  
> >  FreeBSD EAL (with overlaps)
> >  M: Bruce Richardson <bruce.richardson@intel.com>
> > diff --git a/app/test-pmd/Makefile b/app/test-pmd/Makefile
> > index c36be19..b6e80dd 100644
> > --- a/app/test-pmd/Makefile
> > +++ b/app/test-pmd/Makefile
> > @@ -77,10 +77,6 @@ ifeq ($(CONFIG_RTE_LIBRTE_BNXT_PMD),y)
> >  LDLIBS += -lrte_pmd_bnxt
> >  endif
> >  
> > -ifeq ($(CONFIG_RTE_LIBRTE_PMD_XENVIRT),y)
> > -LDLIBS += -lrte_pmd_xenvirt
> > -endif
> > -
> >  endif
> >  
> >  CFLAGS_cmdline.o := -D_GNU_SOURCE
> > diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
> > index 7d40139..f8d02ae 100644
> > --- a/app/test-pmd/testpmd.c
> > +++ b/app/test-pmd/testpmd.c
> > @@ -76,9 +76,6 @@
> >  #ifdef RTE_LIBRTE_IXGBE_PMD
> >  #include <rte_pmd_ixgbe.h>
> >  #endif
> > -#ifdef RTE_LIBRTE_PMD_XENVIRT
> > -#include <rte_eth_xenvirt.h>
> > -#endif
> >  #ifdef RTE_LIBRTE_PDUMP
> >  #include <rte_pdump.h>
> >  #endif
> > @@ -497,15 +494,6 @@ mbuf_pool_create(uint16_t mbuf_seg_size, unsigned nb_mbuf,
> >  		"create a new mbuf pool <%s>: n=%u, size=%u, socket=%u\n",
> >  		pool_name, nb_mbuf, mbuf_seg_size, socket_id);
> >  
> > -#ifdef RTE_LIBRTE_PMD_XENVIRT
> > -	rte_mp = rte_mempool_gntalloc_create(pool_name, nb_mbuf, mb_size,
> > -		(unsigned) mb_mempool_cache,
> > -		sizeof(struct rte_pktmbuf_pool_private),
> > -		rte_pktmbuf_pool_init, NULL,
> > -		rte_pktmbuf_init, NULL,
> > -		socket_id, 0);
> > -#endif
> > -
> >  	/* if the former XEN allocation failed fall back to normal allocation */
> >  	if (rte_mp == NULL) {
> 
> Remove comment and if condition, as there is no way the the variable can
> be non-null now.
>

With this change:

Acked-by: Bruce Richardson <bruce.richardson@intel.com>