Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1121846ybh; Sat, 14 Mar 2020 18:38:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuKOTtoG7J0DHG/NLASRx8U05mf7snTGBa5hWQdw4krBDymMZRq60V3I2kSZq9rtnHnIUyf X-Received: by 2002:a9d:282:: with SMTP id 2mr17104160otl.178.1584236304751; Sat, 14 Mar 2020 18:38:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1584236304; cv=pass; d=google.com; s=arc-20160816; b=bZEZhJNJdcM2mldnFHK0b6KdfYQjKxuT4vhuWZ1F683b7ymykc3mUVqqchEZrmsWor oRg/zUhjPYzcFDR0bHz+9URfonihNoSao+xnsyXbufvG1l5FAvmd3BEIN1oTJTn+loqj 0r62E5F5XHsin3nq9pv5uQF6nV3jSnwZXDir0P6ErY6WFVGnPCsdHlPx0/Rjy7sXkZlZ Z9TD9+6/yBpF7mxdGnVlT4Lj3PRMgftX6Zo0RCGVZzfTt695okLgq417RNvZvTHmn2qp i4JOXyFdkwKAxzjji6A8fL1pJTBfckf++OzoRXl69IYnot/VzkfjD+gvWSEIeOi6Y+i9 eSfA== 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:cc:to:from:dkim-signature; bh=K2guii6wfL7JyzfXPJwp57TC5fB+PHoeYgukaKsmAHI=; b=a3gnsX6UriW5y59jmzZTvyaajJqncUJOrJg3sBNSRzF0Gg5gDXslqileSkL5YZPm8J p5KPezusk/wPRMMA7V1vwddvwDLBQwcR5cB3IriMmC8F8vdEvY6HsaG4tG77sUjZrZHC A4k++rWoTvFfDMt3kb0BFB3FUJLigq3/ByB73B2lftEFcIKvshtREQ/zncmpwiGv5Vf4 ka/pZaPjdX0y0YEFacBZhYMLopb26hXI5mE6/J4kcrcWR8gJHjSlEiIE5h4JJKtygVdU HUAfZtJBkBhHBj2WthQIPJvJVWss/8AEg5tcFaUwlnvXPmYuooZZI7U/VXwyD5cDChHY yQFw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=OuR7mUGb; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id w33si7015371otb.48.2020.03.14.18.38.12; Sat, 14 Mar 2020 18:38:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=OuR7mUGb; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727389AbgCOBh6 (ORCPT + 99 others); Sat, 14 Mar 2020 21:37:58 -0400 Received: from mail-eopbgr10076.outbound.protection.outlook.com ([40.107.1.76]:47683 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726956AbgCOBh5 (ORCPT ); Sat, 14 Mar 2020 21:37:57 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MhplCqfbSo1VQtE+9h+RbXc4Kf7JU+25y87pDP4AsR5JNddXxZW/9o0ninu4+YD3d5txTlprQqktE9J7WsXRgSv9ERoNvpMQjQnjHDdNVjMVnZdZf3KjXetzG00dQXl6kTPLCmt2UUOqQCFj35RJURTZCFDf6TMed0w5VNRtRBxaZfJOUZKVzz0sZGUhSLJK9gFRtMW1rIoeRJNdLMZh3xLlMR+gsOP6v9Hk3DjbpK10+O+hn1zwocsJ3Af1DqsTeA7EXjjj7YJB17X+dObL92pbGMRgc4Z2mrDIolrImN7ITbhtUa50ZvvvxC4jHzG3htCW+ngE20OyrgcO+iU98w== 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=K2guii6wfL7JyzfXPJwp57TC5fB+PHoeYgukaKsmAHI=; b=GQypeaI5h8cpajTKtZh/8Ko/Hfwn0cgSFQ5pLwYShHfjQPRL7eMC5mSmtja8+dHLO8X/li8Zdlh+bVSbVYVykYeb0hy0c4WB0QE76CTQ9GAk4ehzAJDYFko1Q+Psq6El/r8lfhIXmaQjTcMnAsXrOagjDowIlTxEaqh7VR/Qg+994ckimuGi3wvgktjqD58a4m4to8Y75TCtJBSRsvECme6TlPkqVel056JIlL3TxgbzIykH8qzfZCYBOmdToH4bD+YNjPYod/x2/lN28QbDtnD6Lw4mGCvz+Mcer4cXbBxTvPXEpA2ltIDLP1C1Y7DZxZKs3fNH70aD923JIVr/pA== 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=K2guii6wfL7JyzfXPJwp57TC5fB+PHoeYgukaKsmAHI=; b=OuR7mUGbgOQI5vwjLWE0OExBhrJBzdsyjXnHg31pwi8O58oVOm4LfqdFHlW6fhAa0vuZWx96nKlUAwFa7qYR+SGv3jF2OToRFUE2ZVEmOInpNJGby9ypQSbbjH6qMuHJZe4Idg5FFLYfn33fPDOkdyifX4wr4VxzeeHWOpx40qE= Received: from VE1PR04MB6496.eurprd04.prod.outlook.com (20.179.232.221) by VE1PR04MB6478.eurprd04.prod.outlook.com (10.255.118.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.17; Sat, 14 Mar 2020 04:09:04 +0000 Received: from VE1PR04MB6496.eurprd04.prod.outlook.com ([fe80::8cb8:5c41:d843:b66d]) by VE1PR04MB6496.eurprd04.prod.outlook.com ([fe80::8cb8:5c41:d843:b66d%5]) with mapi id 15.20.2814.018; Sat, 14 Mar 2020 04:09:04 +0000 From: Po Liu To: Cong Wang CC: David Miller , LKML , Linux Kernel Network Developers , Vinicius Costa Gomes , Claudiu Manoil , Vladimir Oltean , Alexandru Marginean , Xiaoliang Yang , Roy Zang , Mingkai Hu , Jerry Huang , Leo Li , "michael.chan@broadcom.com" , "vishal@chelsio.com" , Saeed Mahameed , Leon Romanovsky , Jiri Pirko , Ido Schimmel , "alexandre.belloni@bootlin.com" , "UNGLinuxDriver@microchip.com" , Jakub Kicinski , Jamal Hadi Salim , Simon Horman , Pablo Neira Ayuso , "moshe@mellanox.com" , Murali Karicheri , "andre.guedes@linux.intel.com" Subject: RE: [EXT] Re: [RFC,net-next 2/9] net: qos: introduce a gate control flow action Thread-Topic: [EXT] Re: [RFC,net-next 2/9] net: qos: introduce a gate control flow action Thread-Index: AQHV+WZnEsmQqRF1NUeZpys3AuMSkqhHd/tg Date: Sat, 14 Mar 2020 04:09:04 +0000 Message-ID: References: <20200306125608.11717-1-Po.Liu@nxp.com> <20200306125608.11717-3-Po.Liu@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: spf=none (sender IP is ) smtp.mailfrom=po.liu@nxp.com; x-originating-ip: [119.31.174.68] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b7a4ce77-5830-4281-0575-08d7c7cd6f66 x-ms-traffictypediagnostic: VE1PR04MB6478:|VE1PR04MB6478:|VE1PR04MB6478:|VE1PR04MB6478:|VE1PR04MB6478: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3513; x-forefront-prvs: 034215E98F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(396003)(376002)(366004)(136003)(346002)(199004)(33656002)(4326008)(86362001)(9686003)(81156014)(55016002)(81166006)(8676002)(6916009)(478600001)(71200400001)(5660300002)(53546011)(7696005)(52536014)(44832011)(7416002)(6506007)(76116006)(2906002)(316002)(54906003)(186003)(26005)(66946007)(8936002)(66476007)(64756008)(66556008)(66446008)(142933001);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR04MB6478;H:VE1PR04MB6496.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: dvNcw25BMk7WvkBuJ8rgfOPLuj93Md8yaZKb/RFFLc2iOYFVtHrJfKe1sED1Wds26yFQ/rjebgiFqf3RKDPg0cOgwBqcUN40p776Dic9HAfL7wBSWKAlWc9uITYJ/BYMSHuja7vAa2r+X5h31IoS6yiDsVg6M3QndQKcFH5fbDJ2R9SasoFudNlkJMwWG/IK4NOerjH4xeAPPqzDXjguaOMycltDEbL6ABAgB+jPpJDDNCnKLcnejY1d04WEyC24xi+C0E+ZCUEUmzB9B9CZwnUWRGXOSaSB2hV6sw1Hap9pPUgkcdI4EhpBla1+cPImXxiPmaWFAicVFc4xHJvL3WEFeVF+Pgyz3mS4EQHoXcImdTuKCFLN87nqiE9al4osw57B/s71qFn5Y/dMu6ulWBtcNoxFOBump+KEmSv4kQB5j7K/sgP8TQ2NyyjzXDy/S+UXfPNvSXib5xtnEoWAMjLXQoHcAiGFxTuWELV4gJRkRjJrJioQTYZZR9KGIuTD x-ms-exchange-antispam-messagedata: swa2xDL5L6lpJCOBVYCs5+O3pDh1G73jfU9bxA7YBus6vUxSR8IjmnQDiUMefGmz7DFJmOshLmq08Wr0hi7L6/JTfNskIcC69LhZ6UPkabBCfGPzozZP1CeM+/QGmxvKGhcBfkBcRwqk/CHhh48Zvg== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: b7a4ce77-5830-4281-0575-08d7c7cd6f66 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Mar 2020 04:09:04.5026 (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: T1yJhsEEyoy7Xl/NSDZinxSFCeZnRb5qk54kQOZwVg5nc+QDB2nJ/UbPBD/PiUIs X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6478 X-OriginatorOrg: nxp.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQ29uZywNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBDb25nIFdh bmcgPHhpeW91Lndhbmdjb25nQGdtYWlsLmNvbT4NCj4gU2VudDogMjAyMOW5tDPmnIgxNOaXpSAy OjM3DQo+IFRvOiBQbyBMaXUgPHBvLmxpdUBueHAuY29tPg0KPiBDYzogRGF2aWQgTWlsbGVyIDxk YXZlbUBkYXZlbWxvZnQubm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V4dCB2ZXJzaW9uLg0KDQo+IA0KPiANCj4gPiArDQo+ID4gKyAgICAgICAg ICAgICAgIGVyciA9IHBhcnNlX2dhdGVfZW50cnkobiwgZW50cnksIGksIGV4dGFjayk7DQo+ID4g KyAgICAgICAgICAgICAgIGlmIChlcnIgPCAwKSB7DQo+ID4gKyAgICAgICAgICAgICAgICAgICAg ICAga2ZyZWUoZW50cnkpOw0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBlcnI7 DQo+ID4gKyAgICAgICAgICAgICAgIH0NCj4gPiArDQo+ID4gKyAgICAgICAgICAgICAgIGxpc3Rf YWRkX3RhaWwoJmVudHJ5LT5saXN0LCAmc2NoZWQtPmVudHJpZXMpOw0KPiA+ICsgICAgICAgICAg ICAgICBpKys7DQo+ID4gKyAgICAgICB9DQo+ID4gKw0KPiA+ICsgICAgICAgc2NoZWQtPm51bV9l bnRyaWVzID0gaTsNCj4gPiArDQo+ID4gKyAgICAgICByZXR1cm4gaTsNCj4gPiArfQ0KPiA+ICsN Cj4gPiArc3RhdGljIGludCB0Y2ZfZ2F0ZV9pbml0KHN0cnVjdCBuZXQgKm5ldCwgc3RydWN0IG5s YXR0ciAqbmxhLA0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgICBzdHJ1Y3QgbmxhdHRyICpl c3QsIHN0cnVjdCB0Y19hY3Rpb24gKiphLA0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgICBp bnQgb3ZyLCBpbnQgYmluZCwgYm9vbCBydG5sX2hlbGQsDQo+ID4gKyAgICAgICAgICAgICAgICAg ICAgICAgIHN0cnVjdCB0Y2ZfcHJvdG8gKnRwLCB1MzIgZmxhZ3MsDQo+ID4gKyAgICAgICAgICAg ICAgICAgICAgICAgIHN0cnVjdCBuZXRsaW5rX2V4dF9hY2sgKmV4dGFjaykgew0KPiA+ICsgICAg ICAgc3RydWN0IHRjX2FjdGlvbl9uZXQgKnRuID0gbmV0X2dlbmVyaWMobmV0LCBnYXR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ICAgICAgICByZXR1cm4gZXJyOw0KPiA+ICsNCj4gPiArICAgICAgIGlmICghdGJbVENB X0dBVEVfUEFSTVNdKQ0KPiA+ICsgICAgICAgICAgICAgICByZXR1cm4gLUVJTlZBTDsNCj4gPiAr ICAgICAgIHBhcm0gPSBubGFfZGF0YSh0YltUQ0FfR0FURV9QQVJNU10pOw0KPiA+ICsgICAgICAg aW5kZXggPSBwYXJtLT5pbmRleDsNCj4gPiArICAgICAgIGVyciA9IHRjZl9pZHJfY2hlY2tfYWxs b2ModG4sICZpbmRleCwgYSwgYmluZCk7DQo+ID4gKyAgICAgICBpZiAoZXJyIDwgMCkNCj4gPiAr ICAgICAgICAgICAgICAgcmV0dXJuIGVycjsNCj4gPiArDQo+ID4gKyAgICAgICBpZiAoZXJyICYm IGJpbmQpDQo+ID4gKyAgICAgICAgICAgICAgIHJldHVybiAwOw0KPiA+ICsNCj4gPiArICAgICAg IGlmICghZXJyKSB7DQo+ID4gKyAgICAgICAgICAgICAgIHJldCA9IHRjZl9pZHJfY3JlYXRlX2Zy b21fZmxhZ3ModG4sIGluZGV4LCBlc3QsIGEsDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgJmFjdF9nYXRlX29wcywgYmluZCwgZmxhZ3MpOw0KPiA+ ICsgICAgICAgICAgICAgICBpZiAocmV0KSB7DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAg dGNmX2lkcl9jbGVhbnVwKHRuLCBpbmRleCk7DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAg cmV0dXJuIHJldDsNCj4gPiArICAgICAgICAgICAgICAgfQ0KPiA+ICsNCj4gPiArICAgICAgICAg ICAgICAgcmV0ID0gQUNUX1BfQ1JFQVRFRDsNCj4gPiArICAgICAgIH0gZWxzZSBpZiAoIW92cikg ew0KPiA+ICsgICAgICAgICAgICAgICB0Y2ZfaWRyX3JlbGVhc2UoKmEsIGJpbmQpOw0KPiA+ICsg ICAgICAgICAgICAgICByZXR1cm4gLUVFWElTVDsNCj4gPiArICAgICAgIH0NCj4gPiArDQo+ID4g KyAgICAgICBpZiAodGJbVENBX0dBVEVfUFJJT1JJVFldKQ0KPiA+ICsgICAgICAgICAgICAgICBw cmlvID0gbmxhX2dldF9zMzIodGJbVENBX0dBVEVfUFJJT1JJVFldKTsNCj4gPiArDQo+ID4gKyAg ICAgICBpZiAodGJbVENBX0dBVEVfQkFTRV9USU1FXSkNCj4gPiArICAgICAgICAgICAgICAgYmFz ZXRpbWUgPSBubGFfZ2V0X3U2NCh0YltUQ0FfR0FURV9CQVNFX1RJTUVdKTsNCj4gPiArDQo+ID4g KyAgICAgICBpZiAodGJbVENBX0dBVEVfRkxBR1NdKQ0KPiA+ICsgICAgICAgICAgICAgICBnZmxh Z3MgPSBubGFfZ2V0X3UzMih0YltUQ0FfR0FURV9GTEFHU10pOw0KPiA+ICsNCj4gPiArICAgICAg IGlmICh0YltUQ0FfR0FURV9DTE9DS0lEXSkgew0KPiA+ICsgICAgICAgICAgICAgICBjbG9ja2lk ID0gbmxhX2dldF9zMzIodGJbVENBX0dBVEVfQ0xPQ0tJRF0pOw0KPiA+ICsgICAgICAgICAgICAg ICBzd2l0Y2ggKGNsb2NraWQpIHsNCj4gPiArICAgICAgICAgICAgICAgY2FzZSBDTE9DS19SRUFM VElNRToNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICB0a19vZmZzZXQgPSBUS19PRkZTX1JF QUw7DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7DQo+ID4gKyAgICAgICAgICAg ICAgIGNhc2UgQ0xPQ0tfTU9OT1RPTklDOg0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIHRr X29mZnNldCA9IFRLX09GRlNfTUFYOw0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIGJyZWFr Ow0KPiA+ICsgICAgICAgICAgICAgICBjYXNlIENMT0NLX0JPT1RUSU1FOg0KPiA+ICsgICAgICAg ICAgICAgICAgICAgICAgIHRrX29mZnNldCA9IFRLX09GRlNfQk9PVDsNCj4gPiArICAgICAgICAg ICAgICAgICAgICAgICBicmVhazsNCj4gPiArICAgICAgICAgICAgICAgY2FzZSBDTE9DS19UQUk6 DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgdGtfb2Zmc2V0ID0gVEtfT0ZGU19UQUk7DQo+ ID4gKyAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7DQo+ID4gKyAgICAgICAgICAgICAgIGRl ZmF1bHQ6DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgTkxfU0VUX0VSUl9NU0coZXh0YWNr LCAiSW52YWxpZCAnY2xvY2tpZCciKTsNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICBnb3Rv IHJlbGVhc2VfaWRyOw0KPiA+ICsgICAgICAgICAgICAgICB9DQo+ID4gKyAgICAgICB9DQo+ID4g Kw0KPiA+ICsgICAgICAgZXJyID0gdGNmX2FjdGlvbl9jaGVja19jdHJsYWN0KHBhcm0tPmFjdGlv biwgdHAsICZnb3RvX2NoLCBleHRhY2spOw0KPiA+ICsgICAgICAgaWYgKGVyciA8IDApDQo+ID4g KyAgICAgICAgICAgICAgIGdvdG8gcmVsZWFzZV9pZHI7DQo+ID4gKw0KPiA+ICsgICAgICAgZyA9 IHRvX2dhdGUoKmEpOw0KPiA+ICsNCj4gPiArICAgICAgIGdhY3QgPSBremFsbG9jKHNpemVvZigq Z2FjdCksIEdGUF9LRVJORUwpOw0KPiA+ICsgICAgICAgaWYgKCFnYWN0KSB7DQo+ID4gKyAgICAg ICAgICAgICAgIGVyciA9IC1FTk9NRU07DQo+ID4gKyAgICAgICAgICAgICAgIGdvdG8gcHV0X2No YWluOw0KPiA+ICsgICAgICAgfQ0KPiA+ICsNCj4gPiArICAgICAgIHAgPSBnZXRfZ2F0ZV9wYXJh bShnYWN0KTsNCj4gPiArDQo+ID4gKyAgICAgICBJTklUX0xJU1RfSEVBRCgmcC0+ZW50cmll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