Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp130575pxa; Tue, 4 Aug 2020 01:14:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuab0D2ds3ymS6oLXyv1DaT7GhWZOO2q1OXDaswSD4j8RxRRZa7dv/JBfBYM7GflGbG13W X-Received: by 2002:aa7:c889:: with SMTP id p9mr7568087eds.105.1596528847640; Tue, 04 Aug 2020 01:14:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1596528847; cv=pass; d=google.com; s=arc-20160816; b=D+yAYaHbeUxeD6zf6/juZLIgi6jvrDaZjbXiYtj+4wWxx++mufRo84H1QTfpSB3tT8 Dsfjt3Rxv6GmP4lyd/2l7f5nNAdpmC0tkaibodQFcet6OXjXnnkYtxQnjd1yzSg65qnR gmRsemUo4KJCI3DSBZreIhSALDbL1clAQ9DqygIZ/RtzMMFzXgIlAD13xmG/dtAZ14dL 6ogumcbeDBJ4CIRfCA6HyPkXBeABgOwYgAo9qyGmiX7WhGh3R1QcT+OpLPF5gv2vLJs8 ksoxi9V+pfWuNG1E9ecR29rSGZqipYW30sYjP+VA+Ijt/8bJtZWxxIQlxjKGU9vrJlgR 7DQw== 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=7wdtvE2+QGqUIVXasuT/d+xSfpk/Rn/gHDx2UnCkY1k=; b=XjEdUQAOSbkjx/uVOVznLhQj93glBU1aAPiQ4HPwAZbRqNSoblYE+6wiBbioid5zZu 6b9nhOw34QkwUBALAbIhWVlfSO7JBda/CXHu5peFhTTiPC5k3Gdi8/m5Cv0RNB5ZS2of rWNsTrJoX4c4NzDDU4mlQ+E/1fEXMf0rMiB/9NhTIbyXJCwt0czpIHc8ptcwjYjRUVYn zrgcwgD3UsgtO+YoCh/HYxF7eXAUvCBnwfakPRZt/trS2vfnvyyzuEipVZDFua4bH3Tp lQ68ibiP/nhCw2l9Oy9aZlgIQpN2e8QFuSi30NZ+hAZhCp7r2Vz+oYfyaiB3Enn2RgEb HNmA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="bb/IsOGH"; 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 t14si11809367ejb.435.2020.08.04.01.13.45; Tue, 04 Aug 2020 01:14:07 -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="bb/IsOGH"; 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 S1729472AbgHDINZ (ORCPT + 99 others); Tue, 4 Aug 2020 04:13:25 -0400 Received: from mail-eopbgr00045.outbound.protection.outlook.com ([40.107.0.45]:25913 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726201AbgHDINY (ORCPT ); Tue, 4 Aug 2020 04:13:24 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i/FJvHGPKnWgC47Xu/9a22+eAGysE7bzPv7AJ0EB6Ss6jXuTUDj2Uocq8o3pLQhm434Jedip/s3SjF5BK4D0mu65vGT1MCCyHUcU06trO1g+J0HLGhlGM3WCMcu/yqMP1yqo+iGqtfMsrYkymAnK12Vjl039456PGb5IVPp4e5YxsMDdRkEuoSYsOyeBt4dPYcD4TBwtBDv7Qrx9O9nKPz+VFKQ1upP1Ljisd54rK2CfUwmkQcCv3WMr/GaHTZ0+CT3gCwcQcld6Y7+dC0eci8s8E6tgJw8Hi86ZmKFRLyOpu1gIWawcOz1VvUT1HqW+dI1BMevw6Fqmf2/bdyBO1w== 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=7wdtvE2+QGqUIVXasuT/d+xSfpk/Rn/gHDx2UnCkY1k=; b=A45u19Wt5ot5+2x3Xm+R79KgxAwhorwJQaWnI1yd8VtyIaQqMoGwBr/Edx/+SQ/h9yYcG7wsVex5Iirndl4NXmaiCgUmuJcJ0DvKvJbNLBWqbOxc2Q8DmTM0K0Uxr7nWPGZOYfLL+3yP5pL43HmerSxCPHS7qwB0aoZKvlEQpdDM7+4sqGGGho0Z8W6CyFmzuYP5eWgGCMkUoPlgFaqbY9LaKSl5meD7pj6kcm/uKi9QNkUBeonkQC+kCEp4jEOFqo1+Mjv5CftyzDTbB6+7RHR3VmEDulTMcX930OT0KhvEvwIzvWPcESyRNJUBgxhvbU6H66ZMLbenwWEvuVxYTA== 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=7wdtvE2+QGqUIVXasuT/d+xSfpk/Rn/gHDx2UnCkY1k=; b=bb/IsOGHS/SUONdCi+NIs7LTumNnYezxUYeS0YJ3bQMh0KAhpe3hKF0NIyRX6mRdknuThxpMze3M6OXJ5lO49B95BdhZfG87KQY5C52iq5ADpwY6ElzMq1Qt9X+THyD9+kX6SJdlrl/sQutkku6jS6Rdo+nQnPWrvn865pybnMk= Received: from VI1PR04MB5103.eurprd04.prod.outlook.com (2603:10a6:803:51::19) by VI1PR0402MB3471.eurprd04.prod.outlook.com (2603:10a6:803:7::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.17; Tue, 4 Aug 2020 08:13:19 +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 08:13:19 +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 2/2] net: dsa: ocelot: Add support for QinQ Operation Thread-Topic: [EXT] Re: [PATCH v4 2/2] net: dsa: ocelot: Add support for QinQ Operation Thread-Index: AQHWZltTjJoiQZyRB0ahxfHbav3IXaknA0gAgACSMEA= Date: Tue, 4 Aug 2020 08:13:18 +0000 Message-ID: References: <20200730102505.27039-1-hongbo.wang@nxp.com> <20200730102505.27039-3-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: 925791ba-6fc1-4fee-7bbd-08d8384e3f22 x-ms-traffictypediagnostic: VI1PR0402MB3471: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZhwXbfGv5brUp76FBf+B3OAowJZjT+cvxp1LYO1BX+PLAxYQS6O7qioDEuODfufsG/MGCyBAbfwa+yEp9I9cJKsQsdYVNqwJjaxGaWqP7A4OM9f9FeAAiq6mabPXV2Bfam7RozYOEzPeqUHrOYbc+DOHaof3zqtLN78V2AReYaQkU7lybjX2l6wk0xuHSu/tmDmm/uwqYYYVsl+Ed5k1aOT+l2Idp0u/MKwBMib2ZletJ3DWD9xgxqbQcFWEFVIw/AfaaC/qwt7HEoWywAyG6iFlJI3IVzLXmhfKeOPEyRjrx7vZ4ze+p74vtF6U9UuyP1UIzgBhAHr9Fo+yItNpRFnhFAeP/44OXUyjJ9kDxQgTvfSsqh1u5ni9QJ8NJ9iW 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)(366004)(346002)(396003)(39860400002)(376002)(136003)(86362001)(83380400001)(316002)(26005)(8936002)(7416002)(52536014)(5660300002)(186003)(110136005)(6506007)(2906002)(478600001)(8676002)(71200400001)(7696005)(66446008)(64756008)(66556008)(9686003)(44832011)(66946007)(33656002)(55016002)(66476007)(76116006)(921003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: UWE+tilt/MnxrBIwQC58lvWGIIYpwZr1zF0vBW/0Mk8yjXm6XF/CTEbNvAs61Ru3OW96Gdli2TmDpoHFRxWuQXkfUavnKwxRGM6ZhAWc/wFsyZxEordmaMFk/pvtEoL5gxqlRZPcLvzpBh17i6PWjw+/FSg8bXWlo3NYrZXkcNzjbMIaLXDoZzwLav15xUGWUKSk8yU7xRGY6wI1ipi70BU8oPpuzS2ASzblJI9P8MAo49Wbs5SpWtUXSnz6b9Awb9Nis/+aJ6/87KVJAfP6e41J0KGuTzCnu4DNFJqRfQtqyJm72HKUdYkxVwhDsqdh2GBsTur2Md/J3jWeVdYqckN3MM9YklsNYQ2SUa8LBCg8J+wYapdQrTRTeq8Pa0/jKjIqEJM9Vf3eNNGrjFM/rI3a5zl23k3M8GYITHuTz6cLThSbVtTKSIfk3s3nSooZqzM1NlDLp9wfMeQLic5ZXu6IvcoHJxqdOvK8T+PLXklujOhB/XaI7pBqT7g6UJUC6r+F2WdmzJmlpmaOLp9pOojep5+9Jgn1HJxqPmhDKYEiCiYbopKPHqSWqqKnoIlEO1hsdhr+x9C2xBBPTUVArm6xJIKHxSGb3ylw7f3mgJyVoNy6F7solhCatBJca7Ca9KI3DLg+cWIUjcpMdbfzyQ== 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: 925791ba-6fc1-4fee-7bbd-08d8384e3f22 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Aug 2020 08:13:18.9025 (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: kANQkLsAo2Qo3WaAwZHRykshyj790FgNt4RTyAzxatbChuwzANT1Zv6UfQLDsLgeZi0igX6s1/zG3uCKvjVfow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3471 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiA+IFRoaXMgZmVhdHVlIGNhbiBiZSB0ZXN0IHVzaW5nIG5ldHdvcmsgdGVzdCB0b29scw0KPiAN Cj4gbWlzcGVsbGVkOiBmZWF0dXJlLCBjYW4gYmUgdXNlZCB0byB0ZXN0IG5ldHdvcmsgdGVzdCB0 b29scz8gb3IgY2FuIGJlIHVzZWQgdG8NCj4gZXhlcmNpc2UgbmV0d29yayB0ZXN0IHRvb2w/DQoN CndoZW4gdGVzdGluZyB0aGlzIGZlYXR1cmUsIEkgbmVlZCBuZXR3b3JrIHRvb2wgdG8gc2VuZCBw YWNrZXQgd2l0aCBWTEFOIHRhZyhwY3AgcHJvdG8gYW5kIHZpZCksIEkgd2lsbCBjaGFuZ2UgaXQg dG8gYXZvaWQgYW1iaWd1aXR5Lg0KDQo+IA0KPiA+ICAgICAgIHN0cnVjdCBvY2Vsb3QgKm9jZWxv dCA9IGRzLT5wcml2Ow0KPiA+ICsgICAgIHN0cnVjdCBvY2Vsb3RfcG9ydCAqb2NlbG90X3BvcnQg PSBvY2Vsb3QtPnBvcnRzW3BvcnRdOw0KPiA+ICAgICAgIHUxNiB2aWQ7DQo+ID4gICAgICAgaW50 IGVycjsNCj4gPg0KPiA+ICsgICAgIGlmICh2bGFuLT5wcm90byA9PSBFVEhfUF84MDIxQUQpIHsN Cj4gPiArICAgICAgICAgICAgIG9jZWxvdC0+ZW5hYmxlX3FpbnEgPSBmYWxzZTsNCj4gPiArICAg ICAgICAgICAgIG9jZWxvdF9wb3J0LT5xaW5xX21vZGUgPSBmYWxzZTsNCj4gPi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9uJ3QgbmVlZCBzZXQgcWlucV9t b2RlLiB0aGVzZSB0d28gdHlwZXMgb2YgcG9ydCBoYXZlIGRpZmZlcmVudCBhY3Rpb24uDQoNCj4g PiAgICAgICAgICAgICAgIGVsc2UNCj4gPiAgICAgICAgICAgICAgICAgICAgICAgLyogVGFnIGFs bCBmcmFtZXMgKi8NCj4gPiAgICAgICAgICAgICAgICAgICAgICAgdmFsID0gUkVXX1RBR19DRkdf VEFHX0NGRygzKTsNCj4gPiArDQo+ID4gKyAgICAgICAgICAgICBpZiAob2NlbG90X3BvcnQtPnFp bnFfbW9kZSkNCj4gPiArICAgICAgICAgICAgICAgICAgICAgdGFnX3RwaWQgPSBSRVdfVEFHX0NG R19UQUdfVFBJRF9DRkcoMSk7DQo+ID4gKyAgICAgICAgICAgICBlbHNlDQo+ID4gKyAgICAgICAg ICAgICAgICAgICAgIHRhZ190cGlkID0gUkVXX1RBR19DRkdfVEFHX1RQSURfQ0ZHKDApOw0KPiA+ ICAgICAgIH0gZWxzZSB7DQo+ID4gLSAgICAgICAgICAgICAvKiBQb3J0IHRhZ2dpbmcgZGlzYWJs ZWQuICovDQo+ID4gLSAgICAgICAgICAgICB2YWwgPSBSRVdfVEFHX0NGR19UQUdfQ0ZHKDApOw0K PiA+ICsgICAgICAgICAgICAgaWYgKG9jZWxvdF9wb3J0LT5xaW5xX21vZGUpIHsNCj4gPiArICAg ICAgICAgICAgICAgICAgICAgaWYgKG9jZWxvdF9wb3J0LT52aWQpDQo+ID4gKyAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgdmFsID0gUkVXX1RBR19DRkdfVEFHX0NGRygxKTsNCj4gPiArICAg ICAgICAgICAgICAgICAgICAgZWxzZQ0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAg IHZhbCA9IFJFV19UQUdfQ0ZHX1RBR19DRkcoMyk7DQo+ID4gKz4gKyAgICAgICAgICAgICAgICAg IHRhZ190cGlkID0gUkVXX1RBR19DRkdfVEFHX1RQS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