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 EEE591FE for ; Fri, 11 Jul 2014 22:36:22 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 11 Jul 2014 13:31:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,645,1400050800"; d="scan'208";a="571903525" Received: from fmsmsx105.amr.corp.intel.com ([10.19.9.36]) by orsmga002.jf.intel.com with ESMTP; 11 Jul 2014 13:31:41 -0700 Received: from fmsmsx103.amr.corp.intel.com ([169.254.3.193]) by FMSMSX105.amr.corp.intel.com ([169.254.5.110]) with mapi id 14.03.0123.003; Fri, 11 Jul 2014 13:31:40 -0700 From: "Shaw, Jeffrey B" To: "Zhou, Danny" , "John W. Linville" Thread-Topic: [dpdk-dev] [PATCH] librte_pmd_packet: add PMD for AF_PACKET-based virtual devices Thread-Index: AQHPnH/nTmCZCK3MzUm097dT1OCWiZubHZdggAAAcLD//4FWgIAAikNwgAARukCAAH53gIAAD3kA//+K9mA= Date: Fri, 11 Jul 2014 20:31:40 +0000 Message-ID: <4032A54B6BB5F04B8C08B6CFF08C59285544ECD5@FMSMSX103.amr.corp.intel.com> References: <1405024369-30058-1-git-send-email-linville@tuxdriver.com> <20140711174042.GE25478@tuxdriver.com> <20140711193139.GJ25478@tuxdriver.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.1.200.108] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] librte_pmd_packet: add PMD for AF_PACKET-based virtual devices 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, 11 Jul 2014 20:36:23 -0000 Danny, can you specify multiple --vdev parameters? "--vdev=3Deth_packet0,iface=3Deth0 --vdev=3Deth_packet1,iface=3Deth1" -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Zhou, Danny Sent: Friday, July 11, 2014 1:27 PM To: John W. Linville Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] librte_pmd_packet: add PMD for AF_PACKET-ba= sed virtual devices I want to run a common DPDK L2 or L3 forward benchmark for bi-direction tra= ffics, so at least two ports are required. Just like how to measure Linux b= ridge or OVS performance, you need add at least two ports into a bridge. > -----Original Message----- > From: John W. Linville [mailto:linville@tuxdriver.com] > Sent: Saturday, July 12, 2014 3:32 AM > To: Zhou, Danny > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] librte_pmd_packet: add PMD for=20 > AF_PACKET-based virtual devices >=20 > I'm not sure that would make any sense -- the AF_PACKET sockets are=20 > mapped to specific interfaces. >=20 > What are you trying to do with a syntax like that? >=20 > John >=20 > On Fri, Jul 11, 2014 at 07:04:19PM +0000, Zhou, Danny wrote: > > Does it support specifying multiple NIC interfaces using command=20 > > line option like > "--vdev=3Deth_packet0,iface=3D..."? Say "iface=3Deth0,eth1,eth2...", trie= d=20 > but it doesn't work. > > > > > -----Original Message----- > > > From: Zhou, Danny > > > Sent: Saturday, July 12, 2014 2:01 AM > > > To: 'John W. Linville' > > > Cc: dev@dpdk.org > > > Subject: RE: [dpdk-dev] [PATCH] librte_pmd_packet: add PMD for=20 > > > AF_PACKET-based virtual devices > > > > > > Tried on 3.12, both of them are undefined. Anyway, will comment=20 > > > them out and see what performance it could achieve. > > > > > > > -----Original Message----- > > > > From: John W. Linville [mailto:linville@tuxdriver.com] > > > > Sent: Saturday, July 12, 2014 1:41 AM > > > > To: Zhou, Danny > > > > Cc: dev@dpdk.org > > > > Subject: Re: [dpdk-dev] [PATCH] librte_pmd_packet: add PMD for=20 > > > > AF_PACKET-based virtual devices > > > > > > > > On Fri, Jul 11, 2014 at 05:20:42PM +0000, Zhou, Danny wrote: > > > > > Looks like you used a pretty new kernel version with new=20 > > > > > socket options that old > > > > kernel like my 3.12 does not support. When I tried this patch,=20 > > > > it just cannot build, and compiler complains like below. Which=20 > > > > Linux distribution does this > > > patch work for? > > > > How to ensure it works for old kernels? > > > > > > > > > > /home/danny/dpdk.org/dpdk/lib/librte_pmd_packet/rte_eth_packet > > > > > .c > > > > > : In function > > > > rte_pmd_init_internals: > > > > > /home/danny/dpdk.org/dpdk/lib/librte_pmd_packet/rte_eth_packet > > > > > .c > > > > > :524 > > > > > :1 > > > > > 7: error: PACKET_FANOUT_FLAG_ROLLOVER undeclared (first use in=20 > > > > > this > > > > > function) > > > > > /home/danny/dpdk.org/dpdk/lib/librte_pmd_packet/rte_eth_packet > > > > > .c > > > > > :524 > > > > > :1 > > > > > 7: note: each undeclared identifier is reported only once for=20 > > > > > each function it appears in=20 > > > > > /home/danny/dpdk.org/dpdk/lib/librte_pmd_packet/rte_eth_packet > > > > > .c > > > > > :557 > > > > > :3 > > > > > 3: error: PACKET_QDISC_BYPASS undeclared (first use in this > > > > > function) > > > > > > > > Both of them are isolated, so for playing with it you could just=20 > > > > comment those > out. > > > > It looks like PACKET_FANOUT_FLAG_ROLLOVER should have been in=20 > > > > 3.10, while PACKET_QDISC_BYPASS didn't show-up until 3.14... > > > > > > > > /home/linville/git/linux > > > > [linville-x1.hq.tuxdriver.com]:> git annotate=20 > > > > include/uapi/linux/if_packet.h | grep PACKET_FANOUT_FLAG_ROLLOVER > > > > 77f65ebdca506 (Willem de Bruijn 2013-03-19 10:18:11 +0000 64)#defin= e > > > > PACKET_FANOUT_FLAG_ROLLOVER 0x1000 > > > > > > > > /home/linville/git/linux > > > > [linville-x1.hq.tuxdriver.com]:> git show -s --format=3Dshort > > > > 77f65ebdca506 commit 77f65ebdca506870d99bfabe52bde222511022ec > > > > Author: Willem de Bruijn > > > > > > > > packet: packet fanout rollover during socket overload > > > > > > > > /home/linville/git/linux > > > > [linville-x1.hq.tuxdriver.com]:> git describe --contains > > > > 77f65ebdca506 > > > > v3.10-rc1~66^2~423 > > > > > > > > /home/linville/git/linux > > > > [linville-x1.hq.tuxdriver.com]:> git annotate=20 > > > > include/uapi/linux/if_packet.h | grep PACKET_QDISC_BYPASS > > > > d346a3fae3ff1 (Daniel Borkmann 2013-12-06 11:36:17 +0100 56)#define > > > > PACKET_QDISC_BYPASS 20 > > > > > > > > /home/linville/git/linux > > > > [linville-x1.hq.tuxdriver.com]:> git show -s --format=3Dshort > > > > d346a3fae3ff1 commit > > > > d346a3fae3ff1d99f5d0c819bf86edf9094a26a1 > > > > Author: Daniel Borkmann > > > > > > > > packet: introduce PACKET_QDISC_BYPASS socket option > > > > > > > > /home/linville/git/linux > > > > [linville-x1.hq.tuxdriver.com]:> git describe --contains > > > > d346a3fae3ff1 > > > > v3.14-rc1~94^2~564 > > > > > > > > Is there an example of code in DPDK that requires specific=20 > > > > kernel versions? What is the preferred method for coding such depe= ndencies? > > > > > > > > John > > > > -- > > > > John W. Linville Someday the world will need a hero, and you > > > > linville@tuxdriver.com might be all we have. Be ready. > > >=20 > -- > John W. Linville Someday the world will need a hero, and you > linville@tuxdriver.com might be all we have. Be ready.