From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) by dpdk.org (Postfix) with ESMTP id 28EBA16E for ; Fri, 27 Oct 2017 15:05:38 +0200 (CEST) Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v9RD5arx015333 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Oct 2017 13:05:37 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v9RD5aTn003088 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Oct 2017 13:05:36 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v9RD5apk028403; Fri, 27 Oct 2017 13:05:36 GMT MIME-Version: 1.0 Message-ID: <70000a5a-f6e1-4cda-bce0-e80f4e72807f@default> Date: Fri, 27 Oct 2017 06:05:35 -0700 (PDT) From: Iain Barker Sender: Iain Barker To: "Xing, Beilei" , users@dpdk.org References: <6a275bea-214e-489b-ba42-df70328b3854@default> <93359c04-0da3-4f3c-ba56-799817775781@default> <94479800C636CB44BD422CB454846E013205FCB4@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <94479800C636CB44BD422CB454846E013205FCB4@SHSMSX101.ccr.corp.intel.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 15.0.4971.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0021.oracle.com [156.151.31.71] Subject: Re: [dpdk-users] VLAN tags always stripped on i40evf [VMware SR-IOV] X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Oct 2017 13:05:38 -0000 Original message from Iain Barker: > > --- drivers/net/i40e/i40e_rxtx.c.orig 2016-11-30 04:28:48.000000000 = -0500 > +++ drivers/net/i40e/i40e_rxtx.c 2017-10-10 15:07:10.851398087 -0400 > @@ -93,6 +93,8 @@ > rte_le_to_cpu_16(rxdp->wb.qword0.lo_dword.l2tag1)= ; > PMD_RX_LOG(DEBUG, "Descriptor l2tag1: %u", > rte_le_to_cpu_16(rxdp->wb.qword0.lo_dword.l2ta= g1)); > + // vlan got stripped. Re-inject vlan from tci > + rte_vlan_insert(&mb); > } else { > mb->vlan_tci =3D 0; > } >=20 From: Xing, Beilei [mailto:beilei.xing@intel.com] : > >NACK this patch as it will impact performance. > >VLAN strip is supported by latest i40e kernel driver, it works well in ker= nel PF + >DPDK VF mode with i40e kernel driver 2.1.26 and DPDK 17.08. Please refer t= o >Latest kernel driver. > >Beilei Thanks Beilei. I wasn't proposing to submit the patch. I was just using it as a demonstra= tion of the problem. i.e. that the TCI has the required data, but it was stripped before the fra= me arrives at the app. This is not Linux kernel as the host for PF, it is VMware ESXi. =20 The latest Intel PF driver I see for i40e is version 2.0.6. Will that wor= k?