From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 91242A0563; Mon, 13 Apr 2020 06:03:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 472A62986; Mon, 13 Apr 2020 06:03:01 +0200 (CEST) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40064.outbound.protection.outlook.com [40.107.4.64]) by dpdk.org (Postfix) with ESMTP id B89293B5 for ; Mon, 13 Apr 2020 06:02:59 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CE4/BeWJGC1MGNHOki43V7IzfOd+lNWY/BZOWnKcmLBIIYRIUVumcfBoyug8oLKe8IgWvX+aCwS9I419rqAu/Nsz2FYweBnQI6gNCVIlq04dNb2u9mENa9rQqSB5Xr6LTrPIq4YZf1sbMkFfjc42NacTTxCROHGX+FliJSx3uDyXKahoXKUQRbv0UpoYym/HNaacLNtvdPiDr7b4rfynXzGUHy18eYkVzw14+bdGrRT8UYqyF0Jy1YMRMjKoyc49kOB7IEX0iR057BCz0IGSbxFPs4wywAim8XzW2Z50ggwesVB7c6XEjrPrvsf9aMk+mB+BS/1smQyQXUHAEBbbGw== 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=iewFrzcWYMJDHP1YuY3lkHslTkXboY1L+alehSgyKRg=; b=RvQqkvIeZF4odsQLNk5P7fdZo8ljPzSSaqQL1HlIm+DDaFdKH2zogn4FUvqnvf0HrLMXxfRhJFOdAuOTnbqcZZfKFKlkrlxCa5djqyJwi+vYGPCwl23xBBCTQy2y79PFfGOp0o3iiyHY1UBEUU3FPuE9mvR3la+fOcQMjC6gdQr4WwkZGRcg8dyLN+JqIvkT2NStqjtXIunKsEK1Zcr+w6L2gVxqXk+NVWyANhQLcJ6+f5Tj6MGdoRc51nFMGWeSTnNBMsaAz4REWIssgq9dm3XLC+Ji3mk3sUWfqnanHJiJ9JbwckSAxndFiWpJUFbp4K11JjLsMNKmJy/jK9pCfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iewFrzcWYMJDHP1YuY3lkHslTkXboY1L+alehSgyKRg=; b=dnMIqJ2Vms4sEWz6DPD3cjOfSUvFjDu88goqgWYgewjl6oGhJj6DNCCsLzeoNZJ1Z6a+ajDEE6sKXeDOUboWECUBSWPLRjp9LV93lVnUoeMLuMzehpsEXCpQhDUWo6g/xE4wd70dV9WzwChIj1zpXjx4Cau82qWGSIbapxVorTE= Received: from VI1PR0502MB2943.eurprd05.prod.outlook.com (2603:10a6:800:b8::15) by VI1PR0502MB2878.eurprd05.prod.outlook.com (2603:10a6:800:b8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.15; Mon, 13 Apr 2020 04:02:57 +0000 Received: from VI1PR0502MB2943.eurprd05.prod.outlook.com ([fe80::9da2:ce8a:6469:4f8c]) by VI1PR0502MB2943.eurprd05.prod.outlook.com ([fe80::9da2:ce8a:6469:4f8c%5]) with mapi id 15.20.2900.028; Mon, 13 Apr 2020 04:02:57 +0000 From: Bill Zhou To: Thomas Monjalon CC: Matan Azrad , Ori Kam , "wenzhuo.lu@intel.com" , "jingjing.wu@intel.com" , "bernard.iremonger@intel.com" , "john.mcnamara@intel.com" , "marko.kovacevic@intel.com" , "ferruh.yigit@intel.com" , "arybchenko@solarflare.com" , "dev@dpdk.org" Thread-Topic: [PATCH] ethdev: support flow aging Thread-Index: AQHWDxzsBP3N+hN8JUix55BUjWt3fahyI2YAgARLTFA= Date: Mon, 13 Apr 2020 04:02:57 +0000 Message-ID: References: <20200316125205.22169-1-dongz@mellanox.com> <20200410094631.31330-1-dongz@mellanox.com> <10038737.aFP6jjVeTY@thomas> In-Reply-To: <10038737.aFP6jjVeTY@thomas> 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=dongz@mellanox.com; x-originating-ip: [101.206.253.114] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 57543510-7a1d-4444-9d1a-08d7df5f8cb5 x-ms-traffictypediagnostic: VI1PR0502MB2878:|VI1PR0502MB2878: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 037291602B x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0502MB2943.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(39860400002)(366004)(376002)(396003)(136003)(346002)(66946007)(7696005)(2906002)(186003)(76116006)(53546011)(6916009)(6506007)(55016002)(26005)(8936002)(66476007)(52536014)(9686003)(33656002)(478600001)(86362001)(71200400001)(8676002)(66556008)(54906003)(4326008)(64756008)(5660300002)(81156014)(316002)(66446008); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tfTZL6rpvYC8msDX5Cx2pSPQqwj/OnccwWwdb+vLUE3uUpxK5bZLbqATyb6sLznFXX/V7TkVyiArCf3CxBgLhf5Hdl9k4k7gWWaoJwMXYAKVw5q2bEEPMlfIisd+KG0DTGnA9VMBo1UARsuwE2X/Ego4XPVIa42fYAn7r0yzrQ/JB1A8jXMSz+1ZWGEBgk8Y8CRuSKoHdGL3IvwvSNdyr9wdi9Hll1Z34+dmD4LRgOZXFMeaMxF/kRdgcluBjr0uO9g3cdnRqEyc/4d5ua9Qg4uToXwnx1LeJzr/CU3VUc3ZKVP4IyHgoWS5XDU2Y2l3ceH9BlyTseu4dOcHGb/fRbeqGaTZ5TFsO9+jCc1A9UOoOGHqKK+gX3R7+NsnV4gRJ8Ps/QAJ2h3btI/PQ5iA/uaaC9X2eZi363yAUqzYM3Z8iYCLxFSO4bVAAvDXiKaR x-ms-exchange-antispam-messagedata: uxv8K/BfHy27C+xwyHr6/hMOJexXzUyPa1q6m+Yd2vB6vuNLtqb9P+hXWFV1+Eqs4dQbx8luAlN/1RNxxI2sv9XvTKoG5KKzZ2M+z2t4lwDh9QDjSHLob1h6+21WpQRzo8NClpfVSq2ca2b1HDvPeQ== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 57543510-7a1d-4444-9d1a-08d7df5f8cb5 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Apr 2020 04:02:57.0464 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: A4OYmJcrMVBIdpDPJrUcerKSMQ4wOhDm+7/7xp+hKilHZ1N0bh5dEgUwLcBzNQz2bmmDy0z5FpSD5t+XLkhQXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB2878 Subject: Re: [dpdk-dev] [PATCH] ethdev: support flow aging X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Thomas Monjalon > Sent: Friday, April 10, 2020 6:14 PM > To: Bill Zhou > Cc: Matan Azrad ; Ori Kam ; > wenzhuo.lu@intel.com; jingjing.wu@intel.com; > bernard.iremonger@intel.com; john.mcnamara@intel.com; > marko.kovacevic@intel.com; ferruh.yigit@intel.com; > arybchenko@solarflare.com; dev@dpdk.org > Subject: Re: [PATCH] ethdev: support flow aging >=20 > 10/04/2020 11:46, BillZhou: > > One of the reasons to destroy a flow is the fact that no packet > > matches the flow for "timeout" time. > > For example, when TCP\UDP sessions are suddenly closed. > > > > Currently, there is no any DPDK mechanism for flow aging and the > > applications use their own ways to detect and destroy aged-out flows. > > > > The flow aging implementation need include: > > - A new rte_flow action: RTE_FLOW_ACTION_TYPE_AGE to set the > timeout and > > the application flow context for each flow. > > - A new ethdev event: RTE_ETH_EVENT_FLOW_AGED for the driver to > report > > that there are new aged-out flows. > > - A new rte_flow API: rte_flow_get_aged_flows to get the aged-out flows > > contexts from the port. > > - Support input flow aging command line in Testpmd. > > > > Signed-off-by: BillZhou >=20 > I think you should insert a space in your name: Bill Zhou. > I find strange to associate "Bill Zhou" with "dongz" in your email. > Are you sure you don't want to mention "Dong"? Thanks for your mention, it's will be updated in the latter patches. >=20 >=20 > > + * Added support for flow Aging mechanism base on counter. >=20 > Aging -> aging > base -> based > counter -> hardware counter? For Mellanox mlx5 driver, flow aging is based on hardware counter update. But for this patch, it's not include this support, so remove this line. >=20