From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Nicolas_de_Peslo=FCan?= Subject: Re: [PATCH 1/3] vlan: Do not support clearing VLAN_FLAG_REORDER_HDR Date: Mon, 23 May 2011 21:48:12 +0200 Message-ID: <4DDAB9FC.8050207@gmail.com> References: <4DD97A44.2020708@candelatech.com> <20110523104339.GA2769@psychotron> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "Eric W. Biederman" , Changli Gao , Ben Greear , David Miller , 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: Jiri Pirko Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:55163 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932223Ab1EWTsU (ORCPT ); Mon, 23 May 2011 15:48:20 -0400 Received: by wwa36 with SMTP id 36so6562515wwa.1 for ; Mon, 23 May 2011 12:48:19 -0700 (PDT) In-Reply-To: <20110523104339.GA2769@psychotron> Sender: netdev-owner@vger.kernel.org List-ID: Le 23/05/2011 12:43, Jiri Pirko a =E9crit : > Mon, May 23, 2011 at 11:41:22AM CEST, ebiederm@xmission.com wrote: >> Changli Gao writes: >> >>> On Mon, May 23, 2011 at 9:45 AM, Eric W. Biederman >>> wrote: >>>>> In another side, is there a specification which defines the >>>>> hw-accel-vlan-rx? >>>> >>>> I don't know. >>>> >>>> I have just been trying to clean up the mess since some of the >>>> hw-accel-vlan code broke my use case, by delivering packets with >>>> priority but no vlan (aka vlan 0 packets) twice to my pf_packet so= ckets. >>>> >>> >>> OK. But if we have decided to simulate the hw-accel-vlan-rx, I thin= k >>> we'd better adjust the place where we put the emulation code. The v= ery >>> beginnings of netif_rx() and neif_receive_skb() are better. Then rp= s >>> can support vlan packets without any change. >> >> That sounds nice. Patches are welcome. >> >> In principle it should be doable with some code motion. I don't thi= nk >> moving vlan_untag earlier constitutes a bug fix. > > I do not think that is doable. Consider multi tagged packets. The pla= ce > just after "another_round" takes care about that. > > Btw what's the rationale to move untag to earlier position? Maybe simply because we try to mimic hw-accel, and hw-accel untagging d= efinitely happens before we=20 enter __netif_receive_skb and only happens once. So having software untagging inside the __netif_receive_skb loop looks = different. Nicolas.