Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1254309ybz; Wed, 29 Apr 2020 18:11:57 -0700 (PDT) X-Google-Smtp-Source: APiQypJmMjTRPvuhNG8oiXmGu5SXGOf7HyJM6q6PNRDkYCxuOrAYYte8lOzEU+zoVMiUzs/2mfOO X-Received: by 2002:a05:6402:1bc8:: with SMTP id ch8mr585268edb.53.1588209117081; Wed, 29 Apr 2020 18:11:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1588209117; cv=pass; d=google.com; s=arc-20160816; b=Epw+BKjs3LIeTVY0c2WEwHnotYPiLj+jLHMBe6Ugk1fc2BTAbz7yeCgTr9Ctq9G/R+ M6bilRINbeJerqIvmMd3h5UmmBbaq1x4HvuttVwT5GdbPRvi4MoSnAiMTqujrn4grMnQ UyOPd5t7gEsBl9TvT4asNk6vUSIgpbBb86D4eeiqlRKuNBHyNgyiAEa0QbxdCxWTBTUU mBS7OyMfK62I2kxQ8d7hccB3C+9FAaz9jXjbA+i5ZNY1677wkBPcZqBywWkfWlLUHeR1 w06UFNtPLhkaxplJhOBz0Je9PBMc2Qc4RmwXgt3tr5g1ohSr18ecpHbLUwyeQfRveQup fcjQ== 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=44nsusk9rL7W6nFwKRDbm6SVKEbdt8XbqqowGidPt+M=; b=OjR5uN9AIIlrC/dUNFFNuLG5+bxNr3ZaCG7r5w/SEnvX1fm1LN3f9e//DErq/mUvmJ HLIQgAVBo+hlFj3ZS/uE2PUBkB1dBcI0Ejy16Btd8cdn+wKAAgqjDd5zeZbEPWNtF66Z JP0QFInZoRrJZly7DVFvkn+c81F2D26mcLC0gSeZsFbrEIkkxjd7ocOBx8Ek9lOWUN+a 0yWXbpYaY96wyLRcfsZwgGob/YMwD7lr/FLTypaWuWHQq1tJwjbHOT1+nPBJ6bWMFtcZ 2TOJSWVdn3BWVHV1pSTvRn7PyPnCA2ZR8VrwSmT5ktQK49t3YsEvL+2uJJKnTLIabUel yHzg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=fFtBvpyA; 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 gr21si4632351ejb.482.2020.04.29.18.11.32; Wed, 29 Apr 2020 18:11:57 -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=fFtBvpyA; 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 S1726669AbgD3BH5 (ORCPT + 99 others); Wed, 29 Apr 2020 21:07:57 -0400 Received: from mail-vi1eur05on2083.outbound.protection.outlook.com ([40.107.21.83]:13432 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726329AbgD3BH5 (ORCPT ); Wed, 29 Apr 2020 21:07:57 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ek3EPDFlM5jDiWt8enyKwXhRw6AdID2opL7XLHT2pGDILi/SWaOByfStlvaCB42EWRa8uklVynj7qU5xPWmpeoRdTm2SlMMXhefP6228WzdHETjqe5iG7zN3bnrpRiMkc+se3p7pUq+e0PRO7i9lJePvL9T0SJPj0upLYYab7alGyS6x43D1mBKVbHtv7P6SgGYvOA4mPuttLWRbI2ugZZlRwu3xcSuB3V7i8wgcThlL6eE7egzVyVKZoempVntU88vIFPEUORF3vT0hbfUJlMdMV6gjUQCAQ5vVpgsmBNqLIZ07EtG9HJvbq0e/fGOpCfahKfUIbKeYA1KdQ0R1kQ== 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=44nsusk9rL7W6nFwKRDbm6SVKEbdt8XbqqowGidPt+M=; b=fKPv8zOt1yJoANbHN0NNLZwPWSwJRuzB1Ykk/22rsd1tLt46o3Y0TzWAb6PutzGRbKfV/L0c9t4mpeYgzzKNMruJkpVgICuS+XqCgb/EyBKHpNz0OsAtf9JhihFJmkDTowsIlikvkx9RGP/UwVmgdIOJqPcWMsCeaK5o2SiEVwAw5iKkFR13hdP42hNRsfZq1+7uB6cx7dYDLkZEs7m6gim1W8qNE+0YCXqCzEmsvNPbUISYHcEUfoepOldr0fjnIIThyalcNGzmWpY0SC2HFliHKZitMhY85G7yYSaxoP4P/h7ds1jFe12bPVei4CJOSuXuLanqzROdfTiG1S5zNg== 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=44nsusk9rL7W6nFwKRDbm6SVKEbdt8XbqqowGidPt+M=; b=fFtBvpyA0oaoEmuchYVl3elRC7R5DOjxZGrT4cXA57jS1z/diDYJIKYHTo8ANfDUSiAH0TH4QpUdcf4T+JX4pRxy3jQALABChvqS1e13FsFXy8EUYpVxhXsr7KRcjNMESof09tigN/b4amkEucP9K7Xa32Ar8AcvYfRO086RP6g= Received: from VE1PR04MB6496.eurprd04.prod.outlook.com (2603:10a6:803:11c::29) by VE1PR04MB6494.eurprd04.prod.outlook.com (2603:10a6:803:127::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.22; Thu, 30 Apr 2020 00:52:40 +0000 Received: from VE1PR04MB6496.eurprd04.prod.outlook.com ([fe80::1479:38ea:d4f7:a173]) by VE1PR04MB6496.eurprd04.prod.outlook.com ([fe80::1479:38ea:d4f7:a173%7]) with mapi id 15.20.2937.023; Thu, 30 Apr 2020 00:52:40 +0000 From: Po Liu To: Vlad Buslov CC: "davem@davemloft.net" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "vinicius.gomes@intel.com" , Claudiu Manoil , Vladimir Oltean , Alexandru Marginean , "michael.chan@broadcom.com" , "vishal@chelsio.com" , "saeedm@mellanox.com" , "leon@kernel.org" , "jiri@mellanox.com" , "idosch@mellanox.com" , "alexandre.belloni@bootlin.com" , "UNGLinuxDriver@microchip.com" , "kuba@kernel.org" , "jhs@mojatatu.com" , "xiyou.wangcong@gmail.com" , "simon.horman@netronome.com" , "pablo@netfilter.org" , "moshe@mellanox.com" , "m-karicheri2@ti.com" , "andre.guedes@linux.intel.com" , "stephen@networkplumber.org" Subject: RE: [EXT] Re: [v4,net-next 1/4] net: qos: introduce a gate control flow action Thread-Topic: [EXT] Re: [v4,net-next 1/4] net: qos: introduce a gate control flow action Thread-Index: AQHWHRDmPOYgOdPns06jGOsGlatk4qiQVjgAgACBOzA= Date: Thu, 30 Apr 2020 00:52:39 +0000 Message-ID: References: <20200422024852.23224-5-Po.Liu@nxp.com> <20200428033453.28100-1-Po.Liu@nxp.com> <20200428033453.28100-2-Po.Liu@nxp.com> <87zhaugr5r.fsf@buslov.dev> In-Reply-To: <87zhaugr5r.fsf@buslov.dev> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: buslov.dev; dkim=none (message not signed) header.d=none;buslov.dev; dmarc=none action=none header.from=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: 8270f921-9424-4790-5e83-08d7eca0c896 x-ms-traffictypediagnostic: VE1PR04MB6494:|VE1PR04MB6494: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0389EDA07F x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6496.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(346002)(39860400002)(136003)(396003)(376002)(366004)(76116006)(53546011)(30864003)(4326008)(86362001)(9686003)(44832011)(55016002)(26005)(6916009)(6506007)(52536014)(7416002)(33656002)(8676002)(54906003)(7696005)(5660300002)(478600001)(186003)(66446008)(8936002)(316002)(71200400001)(2906002)(66476007)(64756008)(66946007)(66556008)(559001)(579004);DIR:OUT;SFP:1101; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iOaLDkz13Qu36FXuZLHiam82vW8l+vw8snVNo/iAnqNSvQT3spOyGCkMZh/64yT1KTOJISkdBaNjZUv9K3zoWItONedbjc/lVrhXRAwk3vwIoc6gD6pM7kIXY4raGOuJzIFwZ2QdZ8tASaerHbtDXLZ7jAVE8UBKNodiIu4PAyTGEFgli4kgI7ZzKEhX36RJdo6aRr09b+wHPIcZKu7wCA0ccvRp36doLVL3t3RlCyY9dRuaQLdk0LFguLO9EZL7+kZeU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IME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8270f921-9424-4790-5e83-08d7eca0c896 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Apr 2020 00:52:39.8376 (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: gBz75PJH470ay+D4tf94C8jOuW2gHxAegz5nI3qxqpRPub8io9Z77yqtusp9YN0A X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6494 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgVmxhZCwNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBWbGFkIEJ1 c2xvdiA8dmxhZEBidXNsb3YuZGV2Pg0KPiBTZW50OiAyMDIwxOo01MIzMMjVIDE6MDQNCj4gVG86 IFBvIExpdSA8cG8ubGl1QG54cC5jb20+DQo+IENjOiBkYXZlbUBkYXZlbWxvZnQubmV0OyBsaW51 eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnOw0KPiBuZXRkZXZAdmdlci5rZXJuZWwub3JnOyB2aW5p Y2l1cy5nb21lc0BpbnRlbC5jb207IENsYXVkaXUgTWFub2lsDQo+IDxjbGF1ZGl1Lm1hbm9pbEBu eHAuY29tPjsgVmxhZGltaXIgT2x0ZWFuIDx2bGFkaW1pci5vbHRlYW5AbnhwLmNvbT47DQo+IEFs ZXhhbmRydSBNYXJnaW5lYW4gPGFsZXhhbmRydS5tYXJnaW5lYW5AbnhwLmNvbT47DQo+IG1pY2hh ZWwuY2hhbkBicm9hZGNvbS5jb207IHZpc2hhbEBjaGVsc2lvLmNvbTsNCj4gc2FlZWRtQG1lbGxh bm94LmNvbTsgbGVvbkBrZ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y2ZfZ2F0ZV9wYXJhbXMgew0KPiA+ICsgICAgIHMz MiAgICAgICAgICAgICAgICAgICAgIHRjZmdfcHJpb3JpdHk7DQo+ID4gKyAgICAgdTY0ICAgICAg ICAgICAgICAgICAgICAgdGNmZ19iYXNldGltZTsNCj4gPiArICAgICB1NjQgICAgICAgICAgICAg ICAgICAgICB0Y2ZnX2N5Y2xldGltZTsNCj4gPiArICAgICB1NjQgICAgICAgICAgICAgICAgICAg ICB0Y2ZnX2N5Y2xldGltZV9leHQ7DQo+ID4gKyAgICAgdTMyICAgICAgICAgICAgICAgICAgICAg dGNmZ19mbGFnczsNCj4gPiArICAgICBzMzIgICAgICAgICAgICAgICAgICAgICB0Y2ZnX2Nsb2Nr aWQ7DQo+ID4gKyAgICAgc2l6ZV90ICAgICAgICAgICAgICAgICAgbnVtX2VudHJpZXM7DQo+ID4g KyAgICAgc3RydWN0IGxpc3RfaGVhZCAgICAgICAgZW50cmllczsNCj4gPiArfTsNCj4gPiArDQo+ ID4gKyNkZWZpbmUgR0FURV9BQ1RfR0FURV9PUEVOICAgQklUKDApDQo+ID4gKyNkZWZpbmUgR0FU RV9BQ1RfUEVORElORyAgICAgQklUKDEpDQo+ID4gKw0KPiA+ICtzdHJ1Y3QgdGNmX2dhdGUgew0K PiA+ICsgICAgIHN0cnVjdCB0Y19hY3Rpb24gICAgICAgIGNvbW1vbjsNCj4gPiArICAgICBzdHJ1 Y3QgdGNmX2dhdGVfcGFyYW1zICBwYXJhbTsNCj4gPiArICAgICB1OCAgICAgICAgICAgICAgICAg ICAgICBjdXJyZW50X2dhdGVfc3RhdHVzOw0KPiA+ICsgICAgIGt0aW1lX3QgICAgICAgICAgICAg ICAgIGN1cnJlbnRfY2xvc2VfdGltZTsNCj4gPiArICAgICB1MzIgICAgICAgICAgICAgICAgICAg ICBjdXJyZW50X2VudHJ5X29jdGV0czsNCj4gPiArICAgICBzMzIgICAgICAgICAgICAgICAgICAg ICBjdXJyZW50X21heF9vY3RldHM7DQ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X01BWCAr IDFdID0gew0KPiA+ICsgICAgIFtUQ0FfR0FURV9QQVJNU10gICAgICAgICAgICAgICAgPSB7IC5s ZW4gPSBzaXplb2Yoc3RydWN0IHRjX2dhdGUpLA0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIC50eXBlID0gTkxBX0VYQUNUX0xFTiB9LA0KPiA+ICsgICAgIFtU Q0FfR0FURV9QUklPUklUWV0gICAgICAgICAgICAgPSB7IC50eXBlID0gTkxBX1MzMiB9LA0KPiA+ ICsgICAgIFtUQ0FfR0FURV9FTlRSWV9MSVNUXSAgICAgICAgICAgPSB7IC50eXBlID0gTkxBX05F U1RFRCB9LA0KPiA+ICsgICAgIFtUQ0FfR0FURV9CQVNFX1RJTUVdICAgICAgICAgICAgPSB7IC50 eXBlID0gTkxBX1U2NCB9LA0KPiA+ICsgICAgIFtUQ0FfR0FURV9DWUNMRV9USU1FXSAgICAgICAg ICAgPSB7IC50eXBlID0gTkxBX1U2NCB9LA0KPiA+ICsgICAgIFtUQ0FfR0FURV9DWUNMRV9USU1F X0VYVF0gICAgICAgPSB7IC50eXBlID0gTkxBX1U2NCB9LA0KPiA+ICsgICAgIFtUQ0FfR0FURV9G TEFHU10gICAgICAgICAgICAgICAgPSB7IC50eXBlID0gTkxBX1UzMiB9LA0KPiA+ICsgICAgIFtU Q0FfR0FURV9DTE9DS0lEXSAgICAgICAgICAgICAgPSB7IC50eXBlID0gTkxBX1MzMiB9LA0KPiA+ ICt9Ow0KPiA+ICsNCj4gPiArc3RhdGljIGludCBmaWxsX2dhdGVfZW50cnkoc3RydWN0IG5sYXR0 ciAqKnRiLCBzdHJ1Y3QgdGNmZ19nYXRlX2VudHJ5ICplbnRyeSwNCj4gPiArICAgICAgICAgICAg ICAgICAgICAgICAgc3RydWN0IG5ldGxpbmtfZXh0X2FjayAqZXh0YWNrKSB7DQo+ID4gKyAgICAg dTMyIGludGVydmFsID0gMDsNCj4gPiArDQo+ID4gKyA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SX01TRyhleHRhY2ssICJO b3QgZW5vdWdoIG1lbW9yeSBmb3IgZW50cnkiKTsNCj4gPiArICAgICAgICAgICAgICAgICAgICAg ZXJyID0gLUVOT01FTTsNCj4gPiArICAgICAgICAgICAgICAgICAgICAgZ290byByZWxlYXNlX2xp c3Q7DQo+ID4gKyAgICAgICAgICAgICB9DQo+ID4gKw0KPiA+ICsgICAgICAgICAgICAgZXJyID0g cGFyc2VfZ2F0ZV9lbnRyeShuLCBlbnRyeSwgaSwgZXh0YWNrKTsNCj4gPiArICAgICAgICAgICAg IGlmIChlcnIgPCAwKSB7DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgIGtmcmVlKGVudHJ5KTsN Cj4gPiArICAgICAgICAgICAgICAgICAgICAgZ290byByZWxlYXNlX2xpc3Q7DQo+ID4gKyAgICAg ICAgICAgICB9DQo+ID4gKw0KPiA+ICsgICAgICAgICAgICAgbGlzdF9hZGRfdGFpbCgmZW50cnkt Pmxpc3QsICZzY2hlZC0+ZW50cmllcyk7DQo+ID4gKyAgICAgICAgICAgICBpKys7DQo+ID4gKyAg ICAgfQ0KPiA+ICsNCj4gPiArICAgICBzY2hlZC0+bnVtX2VudHJpZXMgPSBpOw0KPiA+ICsNCj4g PiArICAgICByZXR1cm4gaTsNCj4gPiArDQo+ID4gK3JlbGVhc2VfbGlzdDoNCj4gPiArICAgICBy ZWxlYXNlX2VudHJ5X2xpc3QoJnNjaGVkLT5lbnRyaWVzKTsNCj4gPiArDQo+ID4gKyAgICAgcmV0 dXJuIGVycjsNCj4gPiArfQ0KPiA+ICsNCj4gPiArc3RhdGljIGludCB0Y2ZfZ2F0ZV9pbml0KHN0 cnVjdCBuZXQgKm5ldCwgc3RydWN0IG5sYXR0ciAqbmxhLA0KPiA+ICsgICAgICAgICAgICAgICAg ICAgICAgc3RydWN0IG5sYXR0ciAqZXN0LCBzdHJ1Y3QgdGNfYWN0aW9uICoqYSwNCj4gPiArICAg ICAgICAgICAgICAgICAgICAgIGludCBvd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KTsNCj4gPiArICAgICBpZiAo ZXJyIDwgMCkNCj4gPiArICAgICAgICAgICAgIHJldHVybiBlcnI7DQo+ID4gKw0KPiA+ICsgICAg IGlmICghdGJbVENBX0dBVEVfUEFSTVNdKQ0KPiA+ICsgICAgICAgICAgICAgcmV0dXJuIC1FSU5W QUw7DQo+ID4gKw0KPiA+ICsgICAgIHBhcm0gPSBubGFfZGF0YSh0YltUQ0FfR0FURV9QQVJNU10p Ow0KPiA+ICsgICAgIGluZGV4ID0gcGFybS0+aW5kZXg7DQo+ID4gKw0KPiA+ICsgICAgIGVyciA9 IHRjZl9pZHJfY2hlY2tfYWxsb2ModG4sICZpbmRleCwgYSwgYmluZCk7DQo+ID4gKyAgICAgaWYg KGVyciA8IDApDQo+ID4gKyAgICAgICAgICAgICByZXR1cm4gZXJyOw0KPiA+ICsNCj4gPiArICAg ICBpZiAoZXJyICYmIGJpbmQpDQo+ID4gKyAgICAgICAgICAgICByZXR1cm4gMDsNCj4gPiArDQo+ ID4gKyAgICAgaWYgKCFlcnIpIHsNCj4gPiArICAgICAgICAgICAgIHJldCA9IHRjZl9pZHJfY3Jl YXRlKHRuLCBpbmRleCwgZXN0LCBhLA0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgJmFjdF9nYXRlX29wcywgYmluZCwgZmFsc2UsIDApOw0KPiA+ICsgICAgICAgICAgICAg aWYgKHJldCkgew0KPiA+ICsgICAgICAgICAgICAgICAgICAgICB0Y2ZfaWRyX2NsZWFudXAodG4s IGluZGV4KTsNCj4gPiArICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJldDsNCj4gPiArICAg ICAgICAgICAgIH0NCj4gPiArDQo+ID4gKyAgICAgICAgICAgICByZXQgPSBBQ1RfUF9DUkVBVEVE Ow0KPiA+ICsgICAgIH0gZWxzZSBpZiAoIW92cikgew0KPiA+ICsgICAgICAgICAgICAgdGNmX2lk cl9yZWxlYXNlKCphLCBiaW5kKTsNCj4gPiArICAgICAgICAgICAgIHJldHVybiAtRUVYSVNUOw0K PiA+ICsgICAgIH0NCj4gPiArDQo+ID4gKyAgICAgaWYgKHRiW1RDQV9HQVRFX1BSSU9SSVRZXSkN Cj4gPiArICAgICAgICAgICAgIHByaW8gPSBubGFfZ2V0X3MzMih0YltUQ0FfR0FURV9QUklPUklU WV0pOw0KPiA+ICsNCj4gPiArICAgICBpZiAodGJbVENBX0dBVEVfQkFTRV9USU1FXSkNCj4gPiAr ICAgICAgICAgICAgIGJhc2V0aW1lID0gbmxhX2dldF91NjQodGJbVENBX0dBVEVfQkFTRV9USU1F XSk7DQo+ID4gKw0KPiA+ICsgICAgIGlmICh0YltUQ0FfR0FURV9GTEFHU10pDQo+ID4gKyAgICAg ICAgICAgICBnZmxhZ3MgPSBubGFfZ2V0X3UzMih0YltUQ0FfR0FURV9GTEFHU10pOw0KPiA+ICsN Cj4gPiArICAgICBpZiAodGJbVENBX0dBVEVfQ0xPQ0tJRF0pIHsNCj4gPiArICAgICAgICAgICAg IGNsb2NraWQgPSBubGFfZ2V0X3MzMih0YltUQ0FfR0FURV9DTE9DS0lEXSk7DQo+ID4gKyAgICAg ICAgICAgICBzd2l0Y2ggKGNsb2NraWQpIHsNCj4gPiArICAgICAgICAgICAgIGNhc2UgQ0xPQ0tf UkVBTFRJTUU6DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgIHRrX29mZnNldCA9IFRLX09GRlNf UkVBTDsNCj4gPiArICAgICAgICAgICAgICAgICAgICAgYnJlYWs7DQo+ID4gKyAgICAgICAgICAg ICBjYXNlIENMT0NLX01PTk9UT05JQzoNCj4gPiArICAgICAgICAgICAgICAgICAgICAgdGtfb2Zm c2V0ID0gVEtfT0ZGU19NQVg7DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgIGJyZWFrOw0KPiA+ ICsgICAgICAgICAgICAgY2FzZSBDTE9DS19CT09UVElNRToNCj4gPiArICAgICAgICAgICAgICAg ICAgICAgdGtfb2Zmc2V0ID0gVEtfT0ZGU19CT09UOw0KPiA+ICsgICAgICAgICAgICAgICAgICAg ICBicmVhazsNCj4gPiArICAgICAgICAgICAgIGNhc2UgQ0xPQ0tfVEFJOg0KPiA+ICsgICAgICAg ICAgICAgICAgICAgICB0a19vZmZzZXQgPSBUS19PRkZTX1RBSTsNCj4gPiArICAgICAgICAgICAg ICAgICAgICAgYnJlYWs7DQo+ID4gKyAgICAgICAgICAgICBkZWZhdWx0Og0KPiA+ICsgICAgICAg ICAgICAgICAgICAgICBOTF9TRVRfRVJSX01TRyhleHRhY2ssICJJbnZhbGlkICdjbG9ja2lkJyIp Ow0KPiA+ICsgICAgICAgICAgICAgICAgICAgICBnb3RvIHJlbGVhc2VfaWRyOw0KPiA+ICsgICAg ICAgICAgICAgfQ0KPiA+ICsgICAgIH0NCj4gPiArDQo+ID4gKyAgICAgZXJyID0gdGNmX2FjdGlv bl9jaGVja19jdHJsYWN0KHBhcm0tPmFjdGlvbiwgdHAsICZnb3RvX2NoLCBleHRhY2spOw0KPiA+ ICsgICAgIGlmIChlcnIgPCAwKQ0KPiA+ICsgICAgICAgICAgICAgZ290byByZWxlYXNlX2lkcjsN Cj4gPiArDQo+ID4gKyAgICAgZ2FjdCA9IHRvX2dhdGUoKmEpOw0KPiA+ICsNCj4gPiArICAgICBz cGluX2xvY2tfYmgoJmdhY3QtPnRjZl9sb2NrKTsNCj4gPiArICAgICBwID0gJmdhY3QtPnBhcmFt Ow0KPiA+ICsNCj4gPiArICAgICBpZiAodGJbVENBX0dBVEVfQ1lDTEVfVElNRV0pIHsNCj4gPiAr ICAgICAgICAgICAgIHAtPnRjZmdfY3ljbGV0aW1lID0gbmxhX2dldF91NjQodGJbVENBX0dBVEVf Q1lDTEVfVElNRV0pOw0KPiA+ICsgICAgICAgICAgICAgaWYgKCFwLT50Y2ZnX2N5Y2xldGltZV9l eHQpDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgIGdvdG8gY2hhaW5fcHV0Ow0KPiA+ICsgICAg IH0NCj4gPiAr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