From mboxrd@z Thu Jan 1 00:00:00 1970 From: Changli Gao Subject: Re: [PATCH 1/3] vlan: Do not support clearing VLAN_FLAG_REORDER_HDR Date: Mon, 23 May 2011 08:38:36 +0800 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> <4DD97A44.2020708@candelatech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Ben Greear , David Miller , Jiri Pirko , =?ISO-8859-1?Q?Nicolas_de_Peslo=FCan?= , netdev@vger.kernel.org, shemminger@linux-foundation.org, kaber@trash.net, fubar@us.ibm.com, eric.dumazet@gmail.com, andy@greyhouse.net, Jesse Gross To: "Eric W. Biederman" Return-path: Received: from mail-bw0-f46.google.com ([209.85.214.46]:49842 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755788Ab1EWAi7 convert rfc822-to-8bit (ORCPT ); Sun, 22 May 2011 20:38:59 -0400 Received: by bwz15 with SMTP id 15so4298244bwz.19 for ; Sun, 22 May 2011 17:38:57 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Mon, May 23, 2011 at 6:38 AM, Eric W. Biederman wrote: > >> Many years ago we supported the REORDER, but we suggested disabling >> it for most users because it was a performance drag. =A0Funny that n= ow >> it seems to be the opposite! > > Yes it is funny. =A0I looked in history a while back and what I saw w= as > that REORDER was always enabled by default and it took some serious > effort to figure out how to get vconfig to disable REORDER. ip doesn'= t > admit that REORDER can be disabled at all. > Really? Quoted from the manual page of vconfig set_flag [vlan-device] 0 | 1 When 1, ethernet header reorders are turned on. Dump= ing the device will appear as a common ethernet device without = vlans. When 0(default) however, ethernet headers are not reo= rdered, which results in vlan tagged packets when dumping the = device. Usually the default gives no problems, but some packet fi= ltering programs might have problems with it. reordered is disabled by default. I also concern the performance. Untag and then tag are expensive for the NICs which don't support hw-accel-vlan-rx/tx. --=20 Regards, Changli Gao(xiaosuo@gmail.com)