From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 60154F72 for ; Mon, 19 Sep 2016 17:56:30 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 19 Sep 2016 08:56:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,362,1470726000"; d="scan'208,217";a="1053364902" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga002.jf.intel.com with ESMTP; 19 Sep 2016 08:56:05 -0700 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.12]) by FMSMSX105.amr.corp.intel.com ([169.254.4.198]) with mapi id 14.03.0248.002; Mon, 19 Sep 2016 08:56:03 -0700 From: "Wiles, Keith" To: Yuanhan Liu CC: "dev@dpdk.org" , "pmatilai@redhat.com" Thread-Topic: [dpdk-dev] [PATCH v2] drivers/net:new PMD using tun/tap host interface Thread-Index: AQHSEbAhCGnwpng8sUmXKPdgE3NnhKB/4wYAgACIqoCAAI2VDw== Date: Mon, 19 Sep 2016 15:56:03 +0000 Message-ID: <841234E7-437D-4D82-8434-3468590E11D3@intel.com> References: <1473948649-14169-1-git-send-email-keith.wiles@intel.com> <1474042933-33625-1-git-send-email-keith.wiles@intel.com> <20160918132556.GH23158@yliu-dev.sh.intel.com> <73B08964-0730-4A1A-90DC-5C29D6A59419@intel.com>, <20160919002919.GJ23158@yliu-dev.sh.intel.com> In-Reply-To: <20160919002919.GJ23158@yliu-dev.sh.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH v2] drivers/net:new PMD using tun/tap host interface 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: Mon, 19 Sep 2016 15:56:31 -0000 Sent from my iPhone On Sep 18, 2016, at 7:28 PM, Yuanhan Liu > wrote: On Sun, Sep 18, 2016 at 04:20:12PM +0000, Wiles, Keith wrote: Regards, Keith On Sep 18, 2016, at 8:25 AM, Yuanhan Liu > wrote: On Fri, Sep 16, 2016 at 11:22:13AM -0500, Keith Wiles wrote: The rte_eth_tap.c PMD creates a device using TUN/TAP interfaces on the local host. The PMD allows for DPDK and the host to communicate using a raw device interface on the host and in the DPDK application. The device created is a Tap device with a L2 packet header. v2 - merge all of the patches into one patch. Fix a typo on naming the tap device. Update the maintainers list Signed-off-by: Keith Wiles > Hi, FYI, my robot caught some build errors with this patch applied. All of the below errors are from Linux header files and not the Tap driver. Yes, but you are referencing them, so ... Yes I am referencing them, but still they are not interacting with the tap = driver. It would seem like you could delete all of the code in the tap driv= er and still get these errors. Which you could try if you want, just ifdef = the code and see if it still happens. On my ubuntu 16.04 machine I do not get these errors. I need to know how to= reproduce the failure to fix it. How are you building DPDK, which config file are you using, OS version, ...= . Some details would be nice to understand how these errors are being gener= ated and how I can recreate them. My bad. I should have included all of them: my robot is still at a very rough stage: those info should be included automatically in future (badly, I don't even have time to enhance it). However, for this issue, I think it can be triggered on most (if not any) linux platforms: I got the report from ubuntu-16.04, and I have just tried it on my dev box, which is fedora 20: I got the same error. --yliu --- In file included from /yeti/vm/ubuntu-initrd-16.04-x86_64-build/dpdk/driver= s/net/tap/rte_eth_tap.c:50: /usr/include/linux/if.h:71:2: error: redefinition of enumerator 'IFF_UP' IFF_UP =3D 1<<0, /* sysfs */ ^ /usr/include/net/if.h:45:17: note: expanded from macro 'IFF_UP' # define IFF_UP IFF_UP ^