From: Jose Abreu Subject: Re: [PATCH v2 net] stmmac: strip vlan tag on reception only for 8021q tagged frames Date: Tue, 22 May 2018 09:56:19 +0100 Message-ID: <09c5b6b3-faa5-fd99-76bd-72a107122f2a@synopsys.com> References: <35b608aa-0e74-c375-b5e8-35ddc07e0f59@gmail.com> <20180517.124356.1373521143004050823.davem@davemloft.net> <20180521.114829.1456236827847875133.davem@davemloft.net> <0812781e-2660-914b-0e3b-4d84e58afebe@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: , , , To: Florian Fainelli , David Miller , , Return-path: Received: from smtprelay6.synopsys.com ([198.182.37.59]:48383 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751069AbeEVI42 (ORCPT ); Tue, 22 May 2018 04:56:28 -0400 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 7DAC41E0490 for ; Tue, 22 May 2018 10:56:27 +0200 (CEST) In-Reply-To: <0812781e-2660-914b-0e3b-4d84e58afebe@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On 21-05-2018 17:42, Florian Fainelli wrote: > On 05/21/2018 08:48 AM, David Miller wrote: >> From: David Miller >> Date: Thu, 17 May 2018 12:43:56 -0400 (EDT) >> >>> Giuseppe and Alexandre, please review this patch. >> If nobody thinks this patch is important enough to actually >> review, I'm tossing it. >> >> Sorry. >> > How about looping in Jose? Thanks for the cc Florian! Elad, Looking at this patch I have a couple of questions and suggestions: I see that most drivers use this pattern so, are they all broken? or is this a special case? You can also get the inner/outer vlan tag by reading desc0 of receive descriptor. Which can make this completely agnostic of VLAN tag. Thanks and Best Regards, Jose Miguel Abreu