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 AD739A05A1; Sun, 12 Apr 2020 11:48:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 684092BE9; Sun, 12 Apr 2020 11:48:50 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80088.outbound.protection.outlook.com [40.107.8.88]) by dpdk.org (Postfix) with ESMTP id 59BBA2B86 for ; Sun, 12 Apr 2020 11:48:48 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XbVy7qXMrXoGI1R4WCBgfrbFfPiOzYXkfzEO9lcWnqj4Vd1TKMtQ8fcDTWMBppxpDb/uSWeT2mpcjcfAwo8xG9eA+papOQLcEvcEGIidk7ohnnOvD/O7HjS+4EfOKRnsd0cTXTA6TNRJmnNLwhiUNSO71WeRb9kxZVdXMKzNN1atzYk6y+5Nl6I5TEnZgxmkKWLAU6zJiMWZvSicex4LCoMfTZ2iwRZPBNJ7oHpDPzG+nHYZz4MuJCfEEF6L7tCOIvI9RCMC2hs4COeDK9raBROrCTqpNFuRhGBFzffGNZuP4P06Dh3zmUymI+psBtUzuZ3jylgcICUreqecmN/t9Q== 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=OwXVgAZr/KFcbk5ATZquCAosCpHU0kdZvw3mJr3cx5s=; b=MpbcOzEkVDnDLoBNrEv8xn25IfPnWMawMS62P2XIXOinzQAYqOAak4NhZpSyVataI443/YXxprX+h69r3rzFJtctmRJ4w052xv/ypF9akAQDV2ul2HHcCj1Tsnx6DKJ8bb3USiEUUDyWTF/uZ/R875fieAPpugf+d9MvdHrxOsjfZIcIkeLOI0CF9umgiid70V0xVn7p/ENo1A/VH7JzQueXiRVE5/4RFRGFBXMRXiJXvrFGfkUni9P+A7zL3T/t1HDjMax7FRbHrhnZdL8QQLjCc1UJ8rYXJoUr9jLRkta9Cusw/YUz6eQ2hXqtVsGr9yENTi+0rHmPgJq7ObV53Q== 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=OwXVgAZr/KFcbk5ATZquCAosCpHU0kdZvw3mJr3cx5s=; b=PRUCYUtojDjSivs43kNKH57fayeud6wwLeNsiaEU0Hm6mVaDglSVTSlD7jD5kdEhs0COLOpjjMNX+HQXwMUCWJhOFcOppyfaDuz+urfDH43hCV9ViCdm+E0h+ioVyvNq/XoKWhtsmHnVoq19/rwS9XFWrFjIeEl6khrf1dZ9gnI= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (2603:10a6:208:f::11) by AM0PR0502MB3780.eurprd05.prod.outlook.com (2603:10a6:208:1b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.15; Sun, 12 Apr 2020 09:48:46 +0000 Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::a564:a117:9022:1fee]) by AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::a564:a117:9022:1fee%7]) with mapi id 15.20.2900.026; Sun, 12 Apr 2020 09:48:46 +0000 From: Matan Azrad To: Ori Kam , Bill Zhou , Bill Zhou , "wenzhuo.lu@intel.com" , "jingjing.wu@intel.com" , "bernard.iremonger@intel.com" , "john.mcnamara@intel.com" , "marko.kovacevic@intel.com" , Thomas Monjalon , "ferruh.yigit@intel.com" , "arybchenko@solarflare.com" CC: "dev@dpdk.org" Thread-Topic: [PATCH] ethdev: support flow aging Thread-Index: AQHWDxzsYe+QUgO+OkKDMuBU/i3oHqh1NwAAgAAJs1A= Date: Sun, 12 Apr 2020 09:48:46 +0000 Message-ID: References: <20200316125205.22169-1-dongz@mellanox.com> <20200410094631.31330-1-dongz@mellanox.com> In-Reply-To: Accept-Language: en-US, he-IL Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; x-originating-ip: [77.126.88.104] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b820051f-2ea6-4bcf-d0d8-08d7dec6b1f6 x-ms-traffictypediagnostic: AM0PR0502MB3780:|AM0PR0502MB3780: 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:4502; x-forefront-prvs: 0371762FE7 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR0502MB4019.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(366004)(136003)(376002)(346002)(396003)(39860400002)(76116006)(186003)(52536014)(110136005)(316002)(26005)(478600001)(66946007)(2906002)(5660300002)(64756008)(71200400001)(66556008)(66476007)(4326008)(9686003)(8936002)(33656002)(8676002)(86362001)(6506007)(55016002)(53546011)(81156014)(66446008)(7696005)(921003)(1121003); 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: lK5SusPaqVhp4V4K+A3rD43/kx9wUTkshIj2benyfXD8u0+DIEJlx818nkMaZk8z/ce4VIioI+OntF3umBJ8N+rEU3Lt8xq0UQiHzWWqqCtH6BuFeOOkKk4pZj1+O55xA+qV8sQB+bY+Y3KqT3tAz44/Mp+fT0DxIaFjktxsFWb6aJd9kuzXWBmwQA+O0W58WNcAQePjPgyGx7Zh6XgwBYVeb6rZVxRjvDTK3lXkV/Pa8pLW7Ne8zWRZNeeVwQq/+X80iDxCU+qaB9PcBOGQ3YVhES0uuwInAYFHmuQmpiwA7IepLqlbsvpEXPtnjE3YB0h+f/8pTk55A5ZtvMFWVm8n74ubpYnefCTFYtRvSCxedJyQzcuvUHY3zBz7qGS+6bJ68hDMZe7zRK+js1ksQnGnahgKUuadCNWQe1GzQmvl37LmMr9H7QtQDX+fvntwC99IqmvM4BGntr74jc5mCiNPq0KvZBvjrT1EXl59QiivnXVIpyOFPx7d3huxa2NK x-ms-exchange-antispam-messagedata: 99FMS82eiQF40Ns7WpcvtCV0T9Y5GlcAuBwoR5x5snRptKCUijUVkibo/OFOOurfO84tXMmxG0vKbuEiqgous61XwzF0jxlBrpY6F2Nwvif23QqQQrZHq5ucPgRCUB8uIeqX+MpGKyAmik/5jux+sA== 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: b820051f-2ea6-4bcf-d0d8-08d7dec6b1f6 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2020 09:48:46.5068 (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: QenSK14WcOJnluI+KCQ6GtkRIloa3Uq1vTnrcCADvTTgAbqIr6s6aTiWcY3SJ/O75U7DeX3LIeQVpeub4IU9KQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3780 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" From: Ori Kam > > -----Original Message----- > > From: BillZhou > > Sent: Friday, April 10, 2020 12:47 PM > > To: Matan Azrad ; Bill Zhou > ; > > Ori Kam ; wenzhuo.lu@intel.com; > > jingjing.wu@intel.com; bernard.iremonger@intel.com; > > john.mcnamara@intel.com; marko.kovacevic@intel.com; Thomas > Monjalon > > ; ferruh.yigit@intel.com; > > arybchenko@solarflare.com > > Cc: dev@dpdk.org > > Subject: [PATCH] ethdev: support flow aging > > > > 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 > Nice patch. > Acked-by: Ori Kam > Thanks, > Ori Acked-by: Matan Azrad