Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp104663pxa; Tue, 4 Aug 2020 00:24:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0aing9fqSeobKWueoz0z5ckLHD9VkQRzdGHjt26IbX/2Ys/JtT+9C0568FWDy+w5SGusO X-Received: by 2002:a05:6402:3096:: with SMTP id de22mr19705224edb.371.1596525883910; Tue, 04 Aug 2020 00:24:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1596525883; cv=pass; d=google.com; s=arc-20160816; b=wGvgh5jlIN6bvUy5RYQBnBE/FJddfGGzUvajM9pVL7VvmMLJu4rj9E9CB8hvYFYcfZ cFZcG850lGREWF5lBMbxXWoH/cEseNg+gAYxb/sOm3rUHONNHXjDrPnllvXviFcn32N0 DTorp8lZ2VcIIbTISK9kHEig88sJgcUMTnfnXppghZIMTO/+4uazOFH9z1n1U3DARjF0 IyntFPK1AvBV2jD37U8x18FvbuDXzyvjna3crXo2sti319uzByAmt1/snb6tnTbYy9Mj 3vhfkciG1xVPSKc9MzaejEbW1G6Zbn8Je3KF8RBYHVnw1oHM4MTR9h9fRFP4z1PJJsdx 8jPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:dkim-signature; bh=N6UNBEy2XSfvz0lrYoqJhsrNUYSgKGFHlfXO84QXToc=; b=vMtc7MZ/xDNoSLKmcXmHDzN8j90jmaKRZ+a0e5cA+qNQRUD9A7+OS8QLsRrHtekm0J Ol3lC/d+fYcHjXcnEJGr1+ZsiLaaA5fpLJqtGamDC4StF5Hfp6KBZDIK1g369oTqPGIw ShuVDjxG0dxHFzgYu2Gm+nPycY865B7Mu5PiBbf7/XKKXgkiSunE2kIa2PLg3uYwOaDe 1Uh+S/tZKN32KWKKUw+Dd6ThMddiAsR84l8kApJSdooVGz4WqRSLzt6OofbTGjn6Mqsk 7kYT0NRp2lciRGpY9byEhejEuk97NCPM80LtDKSw2qUAjT2tT8PhhGymEOAMNpyP2nRU DQ4Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=QVkWS5F+; 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 cz8si1305295edb.455.2020.08.04.00.24.20; Tue, 04 Aug 2020 00:24:43 -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=QVkWS5F+; 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 S1729587AbgHDHYM (ORCPT + 99 others); Tue, 4 Aug 2020 03:24:12 -0400 Received: from mail-eopbgr30050.outbound.protection.outlook.com ([40.107.3.50]:16981 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726974AbgHDHYM (ORCPT ); Tue, 4 Aug 2020 03:24:12 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FzWt1n+pJb0K2JSXCJ3vCmOpXM5tvj1SnQ7zisVwNRuFnr4Swt3J0EYAfn62YVWP8i6xJ+O5S59ODyenB61iTyUBopEniGsWKi1jYVrElvlApY/Ufbd6UQ/7UJcCb2WVRx581YH3rVKfKq2pJRVsMkHxJoFZeSJTb2LHP6jmJir4lhA/ygOVxeC1YFwJVR8UMPOpnQiM65NXYZQVpGkVpHy2lZTLvYtc6uoVmyVdQUaxpnRJY16/sQ6IDEnj4zqP7sLRuMFbOTONTIH2Q1jk3il/j56pkY8ucwaZYLGPd54iyH0jaNNsuC0yNRevp0H0T2sVgBCEPMfdlEXbeWgACg== 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=N6UNBEy2XSfvz0lrYoqJhsrNUYSgKGFHlfXO84QXToc=; b=AKSDCkyKSyvouSpQsf3z8yTP/R78OIMp3DUaD5MpXLzJ6zBPJyaabOhHfgJ96pgwAKhqzr7faxqoe8ALIDlOjJZKHs00eNKTPde1k6igKgxwueQfqy83CnQcD2Dmgp8xVeh+BnHgpZVH1aZB25tgdpf2sYn3ZWLutO/JJo0IRtxuGE2ECNed4OK6wuHgnJMgXoLU9sPAAj6jmXvm7mrmBPGz7DgoMjehnA3zmGBfMslIgioYuId2gIvzvO5+OHhGEBs6bvaoHjk67B4cJLOjTIZWYJgLBGkNhaWO/wBlG3CguMf+q5SDzGAE3XMhzazLa1J2qUjiItjxxWFcM5nmLw== 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=N6UNBEy2XSfvz0lrYoqJhsrNUYSgKGFHlfXO84QXToc=; b=QVkWS5F+jVCtI4F6NmdqwDRHPK4I7EEh/p2lH3XsP8Zbsi89oW8daUxMv2CjBnEYvmdxtF+NjlX7KI8Oq/aCsS0PpLzYKo+Xtthwn4LDGQMkJRtPZkP2li/4KzexASJ8hROOYbfbRon2S2ICakuKyZnU5oblklH4Ky+qL78jcWU= Received: from VI1PR04MB5103.eurprd04.prod.outlook.com (2603:10a6:803:51::19) by VI1PR04MB5408.eurprd04.prod.outlook.com (2603:10a6:803:cc::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.20; Tue, 4 Aug 2020 07:24:07 +0000 Received: from VI1PR04MB5103.eurprd04.prod.outlook.com ([fe80::2c2c:20a4:38cd:73c3]) by VI1PR04MB5103.eurprd04.prod.outlook.com ([fe80::2c2c:20a4:38cd:73c3%7]) with mapi id 15.20.3239.022; Tue, 4 Aug 2020 07:24:07 +0000 From: Hongbo Wang To: Florian Fainelli , Xiaoliang Yang , "allan.nielsen@microchip.com" , Po Liu , Claudiu Manoil , Alexandru Marginean , Vladimir Oltean , Leo Li , Mingkai Hu , "andrew@lunn.ch" , "vivien.didelot@gmail.com" , "davem@davemloft.net" , "jiri@resnulli.us" , "idosch@idosch.org" , "kuba@kernel.org" , "vinicius.gomes@intel.com" , "nikolay@cumulusnetworks.com" , "roopa@cumulusnetworks.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "horatiu.vultur@microchip.com" , "alexandre.belloni@bootlin.com" , "UNGLinuxDriver@microchip.com" , "ivecera@redhat.com" Subject: RE: [EXT] Re: [PATCH v4 1/2] net: dsa: Add protocol support for 802.1AD when adding or deleting vlan for dsa switch port Thread-Topic: [EXT] Re: [PATCH v4 1/2] net: dsa: Add protocol support for 802.1AD when adding or deleting vlan for dsa switch port Thread-Index: AQHWaebZKp4c4rtjzUeenZF+rgT5zaknf1sg Date: Tue, 4 Aug 2020 07:24:07 +0000 Message-ID: References: <20200730102505.27039-1-hongbo.wang@nxp.com> <20200730102505.27039-2-hongbo.wang@nxp.com> In-Reply-To: Accept-Language: zh-CN, 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: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 663482a6-a84a-4baa-5aa1-08d838475fb9 x-ms-traffictypediagnostic: VI1PR04MB5408: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WoeUkTWeidXUnsVG5ixed2EwOgnW9ylcC/nl1yQeem0i11hpzyT7CB3aowRKZwx5R8bz5kG5rBSvKn/94/G/UL+LezceuP949omzB1wFbJN524fKV7TM1JqrcxV6JTJWKoGbfui3i2eZfC3gNEL5Hdb0Phzf6rfHigEEHCet/EalNKsMKpNbRztyKDjBPHcikhjgq0sqiUJbksiLSFV3Bp82e5EGbeem6wwV5vAewYUYH2b5h4BZgFgAYVXNnAwWLBLR/2VIQsUKZSJS0fFeLCFx9Sp1FZp6HPzGZNIpZVOsLSyA/7C6C8B+5RX4Max7fQu0PA7eCbOq0gWq2oiGFA9MVbOk4O15EWMbCZAcsOrAw8pKe/IcG/c5oj1PkBLM x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5103.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(136003)(39860400002)(346002)(376002)(396003)(366004)(26005)(64756008)(66476007)(83380400001)(316002)(66946007)(7696005)(44832011)(76116006)(66446008)(8936002)(186003)(8676002)(66556008)(2906002)(6506007)(5660300002)(52536014)(7416002)(55016002)(86362001)(71200400001)(110136005)(9686003)(33656002)(478600001)(921003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: V9tFPGe+GoHIcXCPKx8+W/ehh9ib8uTbGpgyC+JG3kmWcJklDU1s7WRdiFIiAkN2DJbdNiMMmEGLK4uz4m/xcubPD+o1QfAq44PAhE9gxxQ1Wh0PYqstcs1VbEO6A9nqmowaLvuS2EoTinGg2/X1E1b02Mw22LXmKBlfwRaccDSXFfjMwjBRFzDdTqeGeSGCtjBwT3RjORtLtRbA3Ql3XxeGxmgZDo6J8AmBOYqafsQZV4pNlOFUZ/EmRbVDBmKA7So4NfilNVVTvHqFBwXWf72KflBo/D6mVctrrarFqA+Cxod2dPXWpFL/QDnlt7wfdtqQzwaCXzwCmRDcxVsusIpBWFyXb0LlXFnyDrCgr9vy24NALZrCnSp/kr5MO/UMvMW1KoF0+HHFDQeCuVWotr7gb/QtC45F0+dAdON4B2YXCNpgUTJACbrLEWTvt/o7E6iSa5BlFqsSewArsrW8nrE4hJIcaYJFHLyMbvJRzEx3Riq3OSme/V/0d4IWJvZk/ldS6edX5P+z1IuaIxWTEs0jZXsIZMncgWj4rzmc905A/EfjjqPnM7c4+ilov2/lH1l6BEbYLw+BfU+2LdNyuIU5CEQkD8Wej1xzh8Fpw8fr+aNLcfXEd3xN5QTMSuysdnSLC1edq+ULCYLA/9Pccw== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5103.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 663482a6-a84a-4baa-5aa1-08d838475fb9 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Aug 2020 07:24:07.0852 (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: KuF7UoqcUUI9Qc9dhzG/5wkZ8CSdptP5dtePUj77fFXPXNwpw1crpa1A6K8Z1KbOiFR5t8+FyW/Zeemrwxl0Pg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5408 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBZb3UgYXJlIGFkZGluZyBhIG5ldyBtZW1iZXIgdG8gdGhlIHN3aXRjaGRldiBWTEFOIG9iamVj dCwgc28geW91IHNob3VsZA0KPiBtYWtlIHN1cmUgdGhhdCBhbGwgY2FsbCBwYXRocyBjcmVhdGlu ZyBhbmQgcGFyc2luZyB0aGF0IG9iamVjdCBnZXQgdXBkYXRlZCBhcw0KPiB3ZWxsLCBmb3Igbm93 LCB5b3UgYXJlIGRvaW5nIHRoaXMgc29sZWx5IHdpdGhpbiBEU0Egd2hpY2ggaXMgcHJvYmFibHkN Cj4gcmVhc29uYWJsZSBpZiB3ZSBhc3N1bWUgcHJvdG8gaXMgdW5pbml0aWFsaXplZCBhbmQgdW51 c2VkIGVsc2V3aGVyZSwgdGhlcmUgaXMNCj4gbm8gY2hhbmdlIG9mIGZ1bmN0aW9uYWxpdHkuDQoN Ckkgd2lsbCByZXZpZXcgdGhlIHJlbGF0ZWQgY29kZSwgYW5kIGNvbmZpcm0gaXQuDQoNCj4gW3Nu aXBdDQo+ID4gKyAgICAgICAgICAgICByZXQgPSBicl92bGFuX2dldF9wcm90byhkcC0+YnJpZGdl X2RldiwgJmJyX3Byb3RvKTsNCj4gPiArICAgICAgICAgICAgIGlmIChyZXQgPT0gMCAmJiBicl9w cm90byAhPSB2bGFuX3Byb3RvKQ0KPiA+ICsgICAgICAgICAgICAgICAgICAgICBjaGFuZ2VfcHJv dG8gPSB0cnVlOw0KPiANCj4gDQo+IFRoaXMgZGVzZXJ2ZXMgYSBjb21tZW50LCBiZWNhdXNlIHRo ZSBjaGFuZ2VfcHJvdG8gd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