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 0BE8D3F9 for ; Wed, 17 Dec 2014 01:52:06 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 16 Dec 2014 16:50:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,590,1413270000"; d="scan'208";a="655274062" Received: from pgsmsx107.gar.corp.intel.com ([10.221.44.105]) by orsmga002.jf.intel.com with ESMTP; 16 Dec 2014 16:52:02 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by PGSMSX107.gar.corp.intel.com (10.221.44.105) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 17 Dec 2014 08:52:01 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.216]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.182]) with mapi id 14.03.0195.001; Wed, 17 Dec 2014 08:52:00 +0800 From: "Ouyang, Changchun" To: Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH] examples/vhost: Fix vlan offload issue Thread-Index: AQHQFcJMn+JmfATJOE+Q2PhXbUDnDJyR62KAgAEMcXA= Date: Wed, 17 Dec 2014 00:51:59 +0000 Message-ID: References: <1418357726-25141-1-git-send-email-changchun.ouyang@intel.com> <1785187.jrxsoh9Kkn@xps13> In-Reply-To: <1785187.jrxsoh9Kkn@xps13> 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="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] examples/vhost: Fix vlan offload issue 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: Wed, 17 Dec 2014 00:52:07 -0000 Hi Thomas, > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Wednesday, December 17, 2014 12:37 AM > To: Ouyang, Changchun > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] examples/vhost: Fix vlan offload issue >=20 > 2014-12-12 12:15, Ouyang Changchun: > > The following commit break vm2vm hard mode test cases: > > commit db4014f2b65cb31bf209cadd5bcec778ca137fe2 > > Author: Huawei Xie > > Date: Thu Nov 13 06:34:07 2014 +0800 > > examples/vhost: use factorized default Rx/Tx configuration > > > > Investigation show that it needs enabling vlan offload since it is > > turn off by default, and Tx need it, especially when vm2vm is in hard m= ode. >=20 > I missed something here. Where VLAN offload is disabled by default? > Could you point the code, please? Inside the function ixgbe_dev_info_get() The txq_flags is assigned value of "ETH_TXQ_FLAGS_MULTISEGS|ETH_TXQ_FLAGS_N= OOFFLOADS", The ETH_TXQ_FLAGS_NOOFFLOADS contain ETH_TXQ_FLAGS_NOVLANOFFL. so VLAN offload is disabled. Do you think any incorrect in my original description? Thanks and regards, Changchun