From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 345DD231C; Fri, 4 Nov 2016 06:20:17 +0100 (CET) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP; 03 Nov 2016 22:20:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,442,1473145200"; d="scan'208";a="27336461" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga005.fm.intel.com with ESMTP; 03 Nov 2016 22:20:16 -0700 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 3 Nov 2016 22:20:16 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx122.amr.corp.intel.com (10.18.125.37) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 3 Nov 2016 22:20:16 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.206]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.139]) with mapi id 14.03.0248.002; Fri, 4 Nov 2016 13:19:41 +0800 From: "Lu, Wenzhuo" To: Caianning , "users@dpdk.org" , "dev@dpdk.org" Thread-Topic: HOW to forward vlan pkt using DPDK loadbalancer and L2FD, with intel 82599ES Thread-Index: AdI2RQRYr/qTPuoYReakg0WBK4ABawAFZczA Date: Fri, 4 Nov 2016 05:19:41 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093934108A@shsmsx102.ccr.corp.intel.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] HOW to forward vlan pkt using DPDK loadbalancer and L2FD, with intel 82599ES 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, 04 Nov 2016 05:20:19 -0000 Hi Anning, > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Caianning > Sent: Friday, November 4, 2016 10:51 AM > To: users@dpdk.org; dev@dpdk.org > Subject: [dpdk-dev] HOW to forward vlan pkt using DPDK loadbalancer and L= 2FD, > with intel 82599ES >=20 > HI, >=20 > I am using DPDK 16.07 example loadbalancer to as LB to forward v= lan pkt > to applications. LB and applications are using VFs bound with DPDK igb_ui= o > driver. > But I found the packet can not be send from LB to application. Pkt input = to LB > with vlan, after LB processing it is sent out to application using anothe= r VF. >=20 > As 82599 need vlan filters if we use VF to process vlan pkts, in the LB w= e called > rte api to add a vlan filter and enable vlan flilter. And set port_conf w= ith vlan > strip off. > And for the application(L2FWD) we use the cmd: ip link set PFxxx VF yy vl= an > VLANID. >=20 > In the LB ,we can receive pkts with vlan, after processing(cut the head a= nd add > another L2 head with same vlan tag, set destination MAC to application VF= ), it is > send out to the application VF. > the result is: LB can still processing ,but all the pkt post. >=20 > We also did an experiment using testPMD to forward vlan pkt to applicatio= n on > the same VF used by LB, and it is OK. > We tried kinds of different set of vlan filter, vlan strip, ip link set, = but found no > solution. >=20 > Does anyone meet the similar problem? And what factor casued the differen= ce? >=20 > Thx. I saw you mentioned testpmd is fine. Testpmd is a very simple example, norm= ally it forwards packets blindly. It means there's no route rule. It just f= orwards packets from one port to another. I guess the difference is the APP you use has some rules for routing/swithi= ng.