From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by dpdk.org (Postfix) with ESMTP id B57025942 for ; Wed, 27 Aug 2014 07:38:11 +0200 (CEST) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 26 Aug 2014 22:42:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,408,1406617200"; d="scan'208";a="473041675" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by azsmga001.ch.intel.com with ESMTP; 26 Aug 2014 22:42:12 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 26 Aug 2014 22:42:12 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 26 Aug 2014 22:42:12 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.246]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.174]) with mapi id 14.03.0195.001; Wed, 27 Aug 2014 13:42:10 +0800 From: "Ouyang, Changchun" To: Stephen Hemminger Thread-Topic: [RFC 06/10] virtio: use software vlan stripping Thread-Index: AQHPwNLIkuBom6zzbkOfNnmLgUOrQ5vihQRAgAAHmgCAAV8KEA== Date: Wed, 27 Aug 2014 05:42:09 +0000 Message-ID: References: <20140826020746.062748014@networkplumber.org> <20140826020848.386074683@networkplumber.org> <20140826092420.57e95493@urahara> In-Reply-To: <20140826092420.57e95493@urahara> 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] [RFC 06/10] virtio: use software vlan stripping 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, 27 Aug 2014 05:38:12 -0000 > -----Original Message----- > From: Stephen Hemminger [mailto:stephen@networkplumber.org] > Sent: Wednesday, August 27, 2014 12:24 AM > To: Ouyang, Changchun > Cc: dev@dpdk.org > Subject: Re: [RFC 06/10] virtio: use software vlan stripping >=20 > On Tue, 26 Aug 2014 08:37:11 +0000 > "Ouyang, Changchun" wrote: >=20 > > Hi Stephen, > > > > Would you please describe the use scenario for the front end rx vlan st= rip > and tx vlan insertion? > > In our current implementation, backend will strip vlan tag for RX, and = insert > vlan tag for TX. > > > > Thanks > > Changchun >=20 > First, we don't have to do software VLAN strip on our backend if we do th= is. > And this way we can always use VLAN insert on transmit. Otherwise you > have to introduce special case because there is no DPDK API to determine = if > device does or does not do VLAN handling. >=20 How the virtio frontend tell backend whether it has software VLAN strip fea= ture or not? It seems no feature bit to negotiate it. Thanks Changchun