From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 464971E460; Mon, 11 Jun 2018 09:57:55 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jun 2018 00:57:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,500,1520924400"; d="scan'208,217";a="236372904" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga006.fm.intel.com with ESMTP; 11 Jun 2018 00:57:54 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 11 Jun 2018 00:57:54 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 11 Jun 2018 00:57:53 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.82]) by shsmsx102.ccr.corp.intel.com ([169.254.2.223]) with mapi id 14.03.0319.002; Mon, 11 Jun 2018 15:57:51 +0800 From: "Xing, Beilei" To: "Dey, Souvik" , "Wu, Jingjing" , "dev@dpdk.org" CC: "users@dpdk.org" Thread-Topic: I40evf VLAN stripping disable Thread-Index: AdP/PFvrqespiY9kSy6pZIyZWbz1AQCHJqtA Date: Mon, 11 Jun 2018 07:57:50 +0000 Message-ID: <94479800C636CB44BD422CB454846E01321C7F1F@SHSMSX101.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] 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] I40evf VLAN stripping disable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2018 07:57:56 -0000 Hi Souvik, Could you try with kernel driver (version 2.4.3) first? In my environment, = disable vlan strip in DPDK works with kernel driver version 2.4.3. My test steps with testpmd: >set fwd rxonly >set verbose 1 >set promisc 0 off >vlan set strip off 0 Then send a vlan packet with VF mac address. Best Regards, Beilei Xing From: Dey, Souvik [mailto:sodey@rbbn.com] Sent: Friday, June 8, 2018 11:22 PM To: Xing, Beilei ; Wu, Jingjing ; dev@dpdk.org Cc: users@dpdk.org Subject: I40evf VLAN stripping disable Hi i40e/i40evf maintainers, I was testing VLANs with i40evf pmd and is hitting the below issue. I have the following configuration: - host runs with Linux pf i40e driver(version 2.4.6) - guest runs with DPDK 17.11.2 vf i40e driver When I am sending a vlan packet from the outside to the guest, on the guest= , I receive the packet which has the PKT_RX_VLAN_STRIPPED flag set although= I'm not asking for it. Even though my DPDK app has the rte_eth_conf.rxmode.hw_vlan_strip set to 0 = and also verified that the i40evf_disable_vlan_strip(VIRTCHNL_OP_DISABLE_VL= AN_STRIPPING) function is getting called and not returning any error from t= he linux pf driver. Is this the default behavior that the VLAN will be always stripped by the P= F irrespective of the setting ? Should the DPDK version take care of the re= -adding the tag back to the packet in case hw_vlan_strip is disabled ? What= should be best way of handling it ? Is it a bug in DPDK or I am missing so= mething here. I do see in the linux i40evf driver we are insert vlan header in the receiv= ed packets in some cases. -- Regards, Souvik