From mboxrd@z Thu Jan 1 00:00:00 1970 From: ebiederm@xmission.com (Eric W. Biederman) Subject: Re: [patch net-next-2.6 v2] net: vlan: make non-hw-accel rx path similar to hw-accel Date: Sun, 22 May 2011 03:26:10 -0700 Message-ID: References: <1302241713-3637-1-git-send-email-jpirko@redhat.com> <20110412.141645.112604563.davem@davemloft.net> <20110521072925.GA2588@jirka.orion> <4DD7BB61.9050200@gmail.com> <4DD87C25.4030701@gmail.com> <20110522062915.GA2611@jirka.orion> <20110522093758.GC2611@jirka.orion> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jiri Pirko , Nicolas de =?utf-8?Q?Peslo=C3=BCan?= , Jesse Gross , David Miller , netdev@vger.kernel.org, shemminger@linux-foundation.org, kaber@trash.net, fubar@us.ibm.com, eric.dumazet@gmail.com, andy@greyhouse.net To: Changli Gao Return-path: Received: from out02.mta.xmission.com ([166.70.13.232]:51648 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751895Ab1EVK0S (ORCPT ); Sun, 22 May 2011 06:26:18 -0400 In-Reply-To: (Changli Gao's message of "Sun, 22 May 2011 18:17:52 +0800") Sender: netdev-owner@vger.kernel.org List-ID: Changli Gao writes: > On Sun, May 22, 2011 at 5:37 PM, Jiri Pirko wrote: >>> >>>For a transparent bridge with ports: eth0 and eth1, the vlan tags >>>need to be preserved. >> >> Yet they are - in skb->vlan_tci. I see no problem here. It's the same as >> if the NIC does hw-untagging itself. >> > > Although they are in skb->vlan_tci, but the xmit nic, which doesn't > support hw-accel-vlan-tx, doesn't use them to tag the outgoing > packets. Correct me if I am wrong. There is software emulation in dev_hard_start_xmit for the nics that don't support the feature. So we will properly add tags. Eric