From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by dpdk.org (Postfix) with ESMTP id D4BB6B3D5 for ; Tue, 26 Aug 2014 18:20:23 +0200 (CEST) Received: by mail-pa0-f41.google.com with SMTP id rd3so23724552pab.28 for ; Tue, 26 Aug 2014 09:24:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=M6I4BTikdabLIFDnxCsw2KJSEe4598O5IASMdLdNgZY=; b=MVewt5jxej0DPzCAhutZnqg8RgMY6GLDzS/Zz74fYWRXMhHxP4IwM2runpbi0AwBRb 3gprLaAGgDJmT7dVyKYWRtmpcAvvM05z9FoykdCBDIED9/Ul3ob0EF9FfY3UVVm+f+Bc 1sh9SjTuSJvw647Hxmo8EIyFzlfkJYu5JvgOrecgMdtR6xg9rt3+2cK98j1i2bnJ1E8p GBA0uOYyotUwDq/CT53Xn3cb4rrAOmVC1YWVtQpz+7tn3huZLDn9g7dxlXB8mQpEpYNs lgnTcnTREifEf9y6R+ICrr86hLDgAq4h7KwbACaz1QiX4tiKfJhQlt7HTKTPkiLSOHWl 4Eug== X-Gm-Message-State: ALoCoQnbHeuX1nI1Du0DCTf7iK5ix3VcnGB1+OJR8Teh+073e2/z1yAEUaOgBOY8Sq2oJOeg3fLX X-Received: by 10.68.194.66 with SMTP id hu2mr11755583pbc.19.1409070263565; Tue, 26 Aug 2014 09:24:23 -0700 (PDT) Received: from urahara (static-50-53-65-80.bvtn.or.frontiernet.net. [50.53.65.80]) by mx.google.com with ESMTPSA id f17sm5561825pdm.0.2014.08.26.09.24.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Aug 2014 09:24:23 -0700 (PDT) Date: Tue, 26 Aug 2014 09:24:20 -0700 From: Stephen Hemminger To: "Ouyang, Changchun" Message-ID: <20140826092420.57e95493@urahara> In-Reply-To: References: <20140826020746.062748014@networkplumber.org> <20140826020848.386074683@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Tue, 26 Aug 2014 16:20:24 -0000 On Tue, 26 Aug 2014 08:37:11 +0000 "Ouyang, Changchun" wrote: > Hi Stephen, > > Would you please describe the use scenario for the front end rx vlan strip and tx vlan insertion? > In our current implementation, backend will strip vlan tag for RX, and insert vlan tag for TX. > > Thanks > Changchun First, we don't have to do software VLAN strip on our backend if we do this. 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.