Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp878831pxk; Thu, 1 Oct 2020 16:38:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmProbFDcoWmmSuqn0YQbzjiCO/1o0ThXkFs25LkDFvRY1go9sronnD6TundcbXMZTUNJU X-Received: by 2002:a50:d7d8:: with SMTP id m24mr1357024edj.388.1601595526002; Thu, 01 Oct 2020 16:38:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1601595525; cv=pass; d=google.com; s=arc-20160816; b=rAyBGMnsvAwAQRFN8O+Pynx0jFUjlr0lF89VSjZuzsnMMtWQkIGLH20NFwghUDMGAk Tr0UNa2zj2kpZboHtVEOz5t2wsj0erbCtF7gjSFeLH8vTzCXYNCXSFhOoChAaahqtweh eFxImgXA3yba+5VtKA3+njsvET6Yx3c22uKIDxS1FoWQwdA8VxnUw0JXZIQycYWdwjTM KDD9Dpe3DkeZ5sT9GxQ/yKsYd0ugDEpRIRJG9wGKljZHCcWksX7rb/+zuzPoYEtznr2m hZUo8LlTU4hP3L5ClcmNPMVJJcmVSJ3IVlxMXCJyoo3Yn1OgBx7tXjUTwa9XUxkluuPS qbOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=A7PcnNaZfexejOJ/CsBt9JlVrT80F94rT03OYSXoGoA=; b=Q6D+2i3ziIKoBUdZc+JCB4R+qfUdnXjqUv+rzVtpZ7czrEjmyTg+W6acQh5A5RrGZs M6XjRJPJ+aNNAxmCbnKqrx8n9SxxtJH0+uHhutzTrqW/WcikI2PqVB4V+ecmiFCYqpLu 6k6zcgmE9yg+oydO6BAwAkf0r62IVjkJIXMCW+oFvWlqosyDrPQyyEIX6oRU2cqQTSwn 25Ke9zC5edTx00a4INGcI1Ki613ramApHbDw6PFtGMqt2nb3dJCqOEvg3JHKqdp2mdV6 sU6bDJslM6af0ievtiiz3nxSjp2nvv8SHgc1/8XxaOwnuADcoR/mHLKsiyMkJRWzfue6 KWZw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=eanWqw9L; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si4534808edp.364.2020.10.01.16.38.22; Thu, 01 Oct 2020 16:38:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=eanWqw9L; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733225AbgJAXgd (ORCPT + 99 others); Thu, 1 Oct 2020 19:36:33 -0400 Received: from mail-eopbgr60049.outbound.protection.outlook.com ([40.107.6.49]:8609 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726855AbgJAXgd (ORCPT ); Thu, 1 Oct 2020 19:36:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C0Jx3oX8A7u9b2qBRg/TCtPo4R5pfSQFvPr8YmcCJSfubRBh4d98TeLASDvDV2EDXqydYRTXgxU8DYRrZ2tDbDCLf9ICHHgjMm6tZh5L7dIR373eTqdlDQ1xpHC//LexJ77rEMLOOYfOuOnlSk+dui4hng1446CxHlezFIm2iUccLAMnSYV5NrDVoNrNM0RWvI8W7RAw74Qs1sJr7jgFobh9LcfoRKGkfNq/1LFIzrgGNceG7TzjjkBZA0pGRamUP6QkWO/wN0yUAU1evFnuxGYqV5+d8hnY7AuOvof+KnArFg6Esx8Tr8KnVTL9U8cqjr3gXjabUNHK4z/xlRr0Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=A7PcnNaZfexejOJ/CsBt9JlVrT80F94rT03OYSXoGoA=; b=RPxsTnVF+HAOwnuSkzTSDEhLhdssaE/ZNtr1A16ojuS5DDgWcGzhuHIXt8kP6l9L+rNOlB4phUupA7c7p5OYGcajoRbm2P/wWaZQoIJ4l9VsPKw/2x5553g1kPLRLkXUF6uhX/HgAKoDQs6N3IS4bo0+/xDlc2cPkgR2/YeIMuM4YWQAteFYwqBYtlJgduDzKjE3kzEMrm9c338c0y0CeHrNdiWsY86fmqH0sW1jIkb+FCwodAA55bthYCqVmqeuFWNIq6b5LaFtfxyB/O3eubSyUuM35owqrmar5Uc+PQQPPFqa0MEoWmQHqKK1y5VR/C0E3ODNEgOJzbEwVliQig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=A7PcnNaZfexejOJ/CsBt9JlVrT80F94rT03OYSXoGoA=; b=eanWqw9LHEqVkiATiRdm4WAPgAqWSkdXJgNlXXL9WIOccSQND/GnuKbNCFgQOKS8Rtkd9QD1Dq6a8CLeqSY7ZW8FpZYnPiH6wT9yEe+bu/83rxwKvJpwr3eN1yuRq1DVdxPM0F5oqshR5gflYhy3wCBshNEac8C+LhBH8aJZJi0= Received: from VI1PR04MB5696.eurprd04.prod.outlook.com (2603:10a6:803:e7::13) by VE1PR04MB6639.eurprd04.prod.outlook.com (2603:10a6:803:129::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.38; Thu, 1 Oct 2020 23:36:28 +0000 Received: from VI1PR04MB5696.eurprd04.prod.outlook.com ([fe80::983b:73a7:cc93:e63d]) by VI1PR04MB5696.eurprd04.prod.outlook.com ([fe80::983b:73a7:cc93:e63d%3]) with mapi id 15.20.3433.032; Thu, 1 Oct 2020 23:36:28 +0000 From: Vladimir Oltean To: Florian Fainelli CC: "netdev@vger.kernel.org" , Andrew Lunn , Vivien Didelot , "David S. Miller" , Jakub Kicinski , open list Subject: Re: [PATCH net-next v2] net: dsa: Support bridge 802.1Q while untagging Thread-Topic: [PATCH net-next v2] net: dsa: Support bridge 802.1Q while untagging Thread-Index: AQHWl5/dhVmGK5kbOEm6gGxCRTuWC6mDZKQAgAADegA= Date: Thu, 1 Oct 2020 23:36:28 +0000 Message-ID: <20201001233628.amqctjli7wblq2rk@skbuf> References: <20201001030623.343535-1-f.fainelli@gmail.com> <20201001232402.77gglnqqfsq6l4fj@skbuf> In-Reply-To: <20201001232402.77gglnqqfsq6l4fj@skbuf> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [188.26.229.171] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 3c7220b5-9474-4d3a-0f76-08d86662d1f6 x-ms-traffictypediagnostic: VE1PR04MB6639: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4303; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Rg930F2omVdOyOOjBrvnzFOvAdGCkvFgKVLXq6cwQYe2JkO2J+Ldloe1lzkI4Hwa2lLQCNyuJCPmk6TwUTarsiD9ybYM1MFtA1T1nAlOo+txkBlAXs8lA01sk6wJem2Hk51OurvDVLdJdOOHaNjDFaeDhzmPrPykpsW6YSLBPVI4hwUZ6gYniDHTKKV3mJOIQwtuo6E8M6E0IFFFWWSqcJPCEnTBY1QbCuDo26gzfmrmbcR1M80CWnM6x6YMekltJ2atzs4wlU5MrxJXMHSb9yn6A84hDUijKGID+ULTvzoebRamHo0UIW/Gy7AR4ahjSrzfcDFfSkG9F36Vd2B/3Q== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5696.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(7916004)(376002)(346002)(136003)(366004)(396003)(39850400004)(2906002)(66476007)(66556008)(64756008)(66446008)(66946007)(91956017)(76116006)(4326008)(6486002)(6506007)(86362001)(6916009)(478600001)(44832011)(316002)(54906003)(5660300002)(186003)(8676002)(1076003)(71200400001)(4744005)(8936002)(9686003)(26005)(6512007)(33716001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: pwSgBoBEoKNhN0cybsZ1J8LBD96UZBFeKzHeCD5EZ0B0hH/Ii9CAEgoeAk2bAI5byWJtdg8nPtiY8prqsHTpFRzSFE/kiHufvb9Mlq9IeL9EABPttX95R1s+JXYztIiGhsSGv1ukluNg+4x9G8RW9GzzgWBbiL5gkIyS0RCUIYzzCmoDZzaXs2OyKWBPTwWa+TNB7HLLnjbzaPCxJHd8uBIdS9jhYfEh98V5o7vBcfKst1uy0AwJ/qYyziOY3MKfzHNFoXO9RcyVKZGJwjWRCI0YYgNJq2nEsihi6CdJrHwnz3eD+D10re7u2h5YxZeCJ4qjf+Z5Gyp4TtNLUdUDDR9eZhSYX/V4oUyoL3cN83FHaxTZGLk4gDa/WqA4ub53YgQI9wn4FUfHSvxqrcsuT4kHiq1phSVe4VDiLzxIrRGIfVPL0+eeT1ko9eRfL36ceK1oH9WctTBMpeDwe+rdwOfkLAdpbVnXsJ3zLYpHYL+LZxV7p1xYKGjQkNZA/DSDnOd/5O/k9cXKlufT5vmJ0NUwsdw6H36MeRTSbFPYQljSDQ6yhxmRsdWh9QIyIUJqdUnaWYtzwhnODihPT4Ub+4PPPH0xd/tx/VlBVWZm4bMrRd4L3oobRnSu5wZyPsqvEniGb1EEhWxl+qLRXfFaGw== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5696.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3c7220b5-9474-4d3a-0f76-08d86662d1f6 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Oct 2020 23:36:28.7217 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: t7Ba87WBYP9ivBR27wPQm1tQFlUQ/2YEZYpgiUtYMDQVRAE4cs7sNnp7QZ7RgXoHu3gMtwOnhDULI15SXYt8yQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6639 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 02, 2020 at 02:24:02AM +0300, Vladimir Oltean wrote: > The explanation is super confusing, although I think the placement of > the "skb->vlan_proto =3D vlan_dev_vlan_proto(upper_dev)" is correct. No, I think it _is_ wrong, after all, I think you're repairing skb->vlan_proto only for that particular 8021q upper, but not for the rest. I think the correct approach would be to say "skb->protocol =3D hdr->h_vlan_proto" right before calling skb_vlan_untag().=