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 844F0DE0 for ; Mon, 1 Dec 2014 21:17:33 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 01 Dec 2014 12:14:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,495,1413270000"; d="scan'208";a="646425217" Received: from pgsmsx105.gar.corp.intel.com ([10.221.44.96]) by orsmga002.jf.intel.com with ESMTP; 01 Dec 2014 12:17:31 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by pgsmsx105.gar.corp.intel.com (10.221.44.96) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 2 Dec 2014 04:17:30 +0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.182]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.5]) with mapi id 14.03.0195.001; Tue, 2 Dec 2014 04:17:29 +0800 From: "Zhu, Heqing" To: Shiantung Wong , "dev@dpdk.org" Thread-Topic: [dpdk-dev] Avoid stripping vlan tag with I350 VF on a VM Thread-Index: AQHQDZTgjNX/oSgKxUWzyxizXbCMiJx7LETw Date: Mon, 1 Dec 2014 20:17:28 +0000 Message-ID: References: In-Reply-To: Accept-Language: zh-CN, 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="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] Avoid stripping vlan tag with I350 VF on a VM 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, 01 Dec 2014 20:17:33 -0000 RGlkIHlvdSB0cnkgdG8gcmVtb3ZlIHRoZSBWTEFOIHN0cmlwIG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