Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp292955ybh; Fri, 6 Mar 2020 22:06:10 -0800 (PST) X-Google-Smtp-Source: ADFU+vuErucGKBXxtHRJ0DRf2jW2tdIKr+SblEJagLplepCwUvUL7bNhkBGA1bTRLfF/Lvk6l1SI X-Received: by 2002:a9d:64d4:: with SMTP id n20mr5119833otl.193.1583561170581; Fri, 06 Mar 2020 22:06:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1583561170; cv=pass; d=google.com; s=arc-20160816; b=Pr+ULxL9v1gicY8M5D1pmFZN3QNCK3e/crdk7ocIuXGs44vHktujt8jmfO/WoHebyX Xf37HVNrz3YGAYKTpjPINX8CmXPXGiRSZK/qPkK5LM8K8UtAo8qjzDaZC2farRXhuKH+ Y01uMzpb4Jj3nqyCWQvjlTu3vRG6exc+pJcMsY3nfxBpC888WeJlAUlh6frjF/MiS7j/ CMpx6l17cjIniOHX8qDRBPVYDOSofV7I54GGZwjSCTZAa8SEyP5Wa0O2AfYevEPLL9C+ RQaSPJNUUqSvbOGfGXL3FR++J1BvTTiaxUZJttpw3vxPThKKP6zu4zzhCHOXimEuBrxk Aw0A== 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=NqLfubg8g1+1Xvz4NmGWjwvRV0hWUeps/SdZy7V9qg0=; b=xennR1Q5YMMuBHjIIuGW6fC1dBPB1evT4fUPFxA0Md70L7MZoDraT1hqO4TW4KpcSH P6vL0w4ZX7bXvQ/THBdCKXXx63LCdrB20gOmh4v+OmdBA46U5/dpMutfF95r3Op28rQl wtnOE2Iy3PM6XnkzSPQWKQm6IF93BpzwlLlimUxswtD+18XJrtD81iT6pZAeH7Lzke50 NKAK1Y1gK/QW6jCKYyq7WB5vOFYA691Y8h6apKKiUtbA6bXuqhMtjfACVkyBnMgijy41 nsZ8x8QRhMNFC+IeX/J8qOaU3r7cNYXZsjvnD/f3/6MjM5PeTNoGK/wgyYJsM2VGI0nS zs3Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=dNOCenXh; 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 r7si858147oic.229.2020.03.06.22.05.56; Fri, 06 Mar 2020 22:06:10 -0800 (PST) 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=dNOCenXh; 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 S1726114AbgCGGFg (ORCPT + 99 others); Sat, 7 Mar 2020 01:05:36 -0500 Received: from mail-eopbgr70044.outbound.protection.outlook.com ([40.107.7.44]:63566 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725815AbgCGGFg (ORCPT ); Sat, 7 Mar 2020 01:05:36 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jkS6FxtMZHOswM7UP5bvsfsqC6RiIWQI9PR5pFGIlHldV1hzsWpETCbAcY4UmV/gCleFNFQsFm3hs72hmN8nOooDrsygOWUxu1Sm47zS5gN48++kqX9BCID54dH2G2YGK8c2TtEoSuLNlyESWrQlQLO1Cpa7EBHj2ACpLf5zQl4rhYp7BvchZH6MrjBm8UCMQIICz9VSWT5UVYd/TrKqtuYNjf3i+4u+JG3MgPR7nfJzkAy7g/3j4sGKPfFCRSN43nTOHFUfGgGnJkKvX8Kjt6m32D9TDhRRPCa5IVhUmz/uK4oztA3OobLDNptL4IMGgF8ZrF9ObjMscDmtV0/wJg== 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=NqLfubg8g1+1Xvz4NmGWjwvRV0hWUeps/SdZy7V9qg0=; b=LzGDlk2OT7S/AiO8ok1tsZ4Bjz3dbweXyQeq0WBIeoOaaAL5wUOGyZAxlGlq+jlTRmz8I32E8huPqp9s4kyGcSjXXBezEXNuJQZf1Rx76PRP/xgdnUQsYZpYumK97hyKTnEqnJYfvjgtgtTrtdXr1fx/aomZLLLR0dqn8IB5u6NKrUawaYuvQwKyl7eo2jRkYFwfFes2BIUc85QTJGJR2P16tUloRojQbUHok31nNTpZsw50dhoBDSQBIVDoCMLjZglxy5VXykAsr6TyMMHSSHzY7AhLTHFpzsMY1qVxqs4mQQDTNztO4wY8BirndrOmVWQ1RiOs2JC/6JQ1UXu7Wg== 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=NqLfubg8g1+1Xvz4NmGWjwvRV0hWUeps/SdZy7V9qg0=; b=dNOCenXhwAezrIDL9FK/Dfcy705zOWS74rNuxMw9oqrWoR3f3hRiJyYiVD8/HJpEKWjlkLGuzOxqkDftwWlm8dti2sl/+598Q+54na6x8sCmB0fVPhY550U7d8y34jttj0cA3sjWhcp0sH5RPj2GOvDTl/6fw2ma6XJhscUeOj0= Received: from VE1PR04MB6496.eurprd04.prod.outlook.com (20.179.232.221) by VE1PR04MB6558.eurprd04.prod.outlook.com (20.179.232.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.16; Sat, 7 Mar 2020 06:05:28 +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.2772.019; Sat, 7 Mar 2020 06:05:28 +0000 From: Po Liu To: Jakub Kicinski CC: "davem@davemloft.net" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "vinicius.gomes@intel.com" , Claudiu Manoil , Vladimir Oltean , Alexandru Marginean , Xiaoliang Yang , Roy Zang , Mingkai Hu , Jerry Huang , Leo Li , "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" , "jhs@mojatatu.com" , "xiyou.wangcong@gmail.com" , "john.hurley@netronome.com" , "simon.horman@netronome.com" , "pieter.jansenvanvuuren@netronome.com" , "pablo@netfilter.org" , "moshe@mellanox.com" , "ivan.khoronzhuk@linaro.org" , "m-karicheri2@ti.com" , "andre.guedes@linux.intel.com" , "jakub.kicinski@netronome.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: AQHV87k3gR0PIY1RlEuDZub3eMl0sKg77oYAgAC1s9A= Date: Sat, 7 Mar 2020 06:05:28 +0000 Message-ID: References: <20200306125608.11717-1-Po.Liu@nxp.com> <20200306125608.11717-3-Po.Liu@nxp.com> <20200306111106.09416f43@kicinski-fedora-PC1C0HJN> In-Reply-To: <20200306111106.09416f43@kicinski-fedora-PC1C0HJN> 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: 25b095e8-c0e4-43fa-be08-08d7c25d88f3 x-ms-traffictypediagnostic: VE1PR04MB6558:|VE1PR04MB6558: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 03355EE97E x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(346002)(396003)(376002)(366004)(39860400002)(136003)(199004)(189003)(53546011)(6506007)(8676002)(81166006)(81156014)(7416002)(8936002)(71200400001)(44832011)(316002)(33656002)(54906003)(55016002)(7696005)(9686003)(4326008)(5660300002)(2906002)(64756008)(66446008)(66556008)(76116006)(478600001)(66946007)(186003)(66476007)(52536014)(6916009)(26005)(86362001)(142933001);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR04MB6558;H:VE1PR04MB6496.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: 0AiuBhATZr4F9TpRUarZ1swVYM899VA6NmUsNVz7xl8p/VdcM0gcrTzTl3rOGd4xaFL2p2aTC4t9boq+yxM11LwNv2gqjQMcAEMlS2FdszrxJb9sIKxSuinEn+2o6SOoTNkDUnz6qWmWsYhtnRUi25lMnlduwnesomVWjzdP0lPxvF7H9dq9ETUnXGsAglieS92udj3m7LuuGJDmBjzh7kWcgoNSUcSd2NNDiC79i2f8s0XhG2sr42NmI7kmR2TWulgFLbOu+MCOxvqwg/iype3SR+K8KxalExXzhX6HAiYbHzteTu97O9ASlnDVWg/n/vg1qrWj32p8pLfWRWy4QXGCxW1kLdFu6F55o0/HfTf5EK3i48dULHuImok1oGHvgxgi6nDXJYXja/0INjX0I+FPJzieylWRqcB95RBRILR4Nqgz3zg6jj01IhdUJPgMs1rtEB0sBnvGsaG/zvjJvoo2L6nDU8Slb9ailUEUSpMT5xLIDCEY4LqhtBG7Ml9J x-ms-exchange-antispam-messagedata: UpMtQIMKdXTeiSUuxevFqo/y4i1d3zaTu43nmvrdBeKIKIf5VF7ysXLysR6bcdzqqbZrORJvZusdqFX9fB/GofouqVr8loGjmV0IOHofCtIua3kB8G7cwByvAx09TgdNJ5kUFIPGoJkCZ5RVXla4/w== Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 25b095e8-c0e4-43fa-be08-08d7c25d88f3 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Mar 2020 06:05:28.0807 (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: g6HSjvPQ17jn0KWvshIMProyvmrOBEzK4y6Ll89vQWFki4NhColdH+IzJe2vTHD2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6558 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgSmFrdWIsDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJ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2YWwgZm9yIHNjaGVkdWxlIGVudHJ5Iik7 DQo+ID4gKyAgICAgICAgICAgICByZXR1cm4gLUVJTlZBTDsNCj4gPiArICAgICB9DQo+IA0KPiA+ ICtzdGF0aWMgaW50IHBhcnNlX2dhdGVfbGlzdChzdHJ1Y3QgbmxhdHRyICpsaXN0LA0KPiA+ICsg ICAgICAgICAgICAgICAgICAgICAgICBzdHJ1Y3QgdGNmX2dhdGVfcGFyYW1zICpzY2hlZCwNCj4g PiArICAgICAgICAgICAgICAgICAgICAgICAgc3RydWN0IG5ldGxpbmtfZXh0X2FjayAqZXh0YWNr KSB7DQo+ID4gKyAgICAgc3RydWN0IG5sYXR0ciAqbjsNCj4gPiArICAgICBpbnQgZXJyLCByZW07 DQo+ID4gKyAgICAgaW50IGkgPSAwOw0KPiA+ICsNCj4gPiArICAgICBpZiAoIWxpc3QpDQo+ID4g KyAgICAgICAgICAgICByZXR1cm4gLUVJTlZBTDsNCj4gPiArDQo+ID4gKyAgICAgbmxhX2Zvcl9l YWNoX25lc3RlZChuLCBsaXN0LCByZW0pIHsNCj4gPiArICAgICAgICAgICAgIHN0cnVjdCB0Y2Zn X2dhdGVfZW50cnkgKmVudHJ5Ow0KPiA+ICsNCj4gPiArICAgICAgICAgICAgIGlmIChubGFfdHlw ZShuKSAhPSBUQ0FfR0FURV9PTkVfRU5UUlkpIHsNCj4gPiArICAgICAgICAgICAgICAgICAgICAg TkxfU0VUX0VSUl9NU0coZXh0YWNrLCAiQXR0cmlidXRlIGlzbid0IHR5cGUgJ2VudHJ5JyIpOw0K PiA+ICsgICAgICAgICAgICAgICAgICAgICBjb250aW51ZTsNCj4gPiArICAgICAgICAgICAgIH0N Cj4gPiArDQo+ID4gKyAgICAgICAgICAgICBlbnRyeSA9IGt6YWxsb2Moc2l6ZW9mKCplbnRyeSks IEdGUF9LRVJORUwpOw0KPiA+ICsgICAgICAgICAgICAgaWYgKCFlbnRyeSkgew0KPiA+ICsgICAg ICAgICAgICAgICAgICAgIC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