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 AE2ABA05A1; Sun, 12 Apr 2020 11:13:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EF53A2BE9; Sun, 12 Apr 2020 11:13:25 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10048.outbound.protection.outlook.com [40.107.1.48]) by dpdk.org (Postfix) with ESMTP id 650DC2B86 for ; Sun, 12 Apr 2020 11:13:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JSckC886TPV5xNKCysNTzBMCyvO2wNlQhtQrNfPEorIEqwR/S8zxqlmVM8PhAQOzB5ldqvMpTDMN3bupdL+Sv7aRbJ3rXWyJnq/xc21zS4ZikVRiWrsoL/r9gO0bG7taLxB1xNsaV+d8N4HdsoI3wrvcE0iTSMP5zC6wkBbAQLU0lzoSZFCpaaxmc6SrQnwA7pixepIZTWI4yezgKkecpGyezMqt7mylkjrW26GjQ7zbf18hNe9a4gxOfi7USPDJll3R5r+HPwTfQmQXKbMDsXNgfHHkBRpOoPf0lHPDmCnagY29fO6fn6kQBY8Lv1ggUXZDl9TpcxwyH/e5W5oTEg== 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=4pwSrMfSs/g8oc0yUYp2SB7nKpHmYPZPMdISDREzI1A=; b=TwLyzjDDhwg7r5m1olAJwDXQNMxx90HG9xdzpSQ8mStf9C2Qwu5CVNgh/v0XuEbsuvQn9pYKmu2AIelirAjrWlHBfX2TA1SFNxpvwPHpT68GiqNPsMgxqkOtBxdMumMryD8Q0suuFNs61IIKG7f8jGjW6lI8fFJD56ftGhdh3eOzDa4+mwAFTXaGWk8uP2F+bLI2RInGYPxeFScJEl7v5vUWHBnA0XF0yZJgAcNx+sIvzf41mQCHp9UK28xBH/lFhrRQXYHKztM53+/Z5X3q7Hrb7BTukGFgvthPVJagsIz4uZqQQcwIxhKjTKszdV+NAAD+cjVrYaDA6d2lupHCFA== 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=4pwSrMfSs/g8oc0yUYp2SB7nKpHmYPZPMdISDREzI1A=; b=YkM8zVrWf5YYd/wEj+otXfX+K95lQe+YelB5u9IH+khhSuY9c0E1YNeHXKwgTLp7GcZkvbQMpzMoMnsiANoHECYUIt8+UZB5+eqTOY6Lg3luYRISQjLUTSJU+gPmnu2/Qwu0Lf9tbeuC9Cb5lii96OwQqTeSjzjkWGqVQ/3M6l0= Received: from AM6PR05MB5176.eurprd05.prod.outlook.com (2603:10a6:20b:63::30) by AM6PR05MB5944.eurprd05.prod.outlook.com (2603:10a6:20b:a5::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.24; Sun, 12 Apr 2020 09:13:22 +0000 Received: from AM6PR05MB5176.eurprd05.prod.outlook.com ([fe80::f5cd:b10f:5f1b:4b22]) by AM6PR05MB5176.eurprd05.prod.outlook.com ([fe80::f5cd:b10f:5f1b:4b22%7]) with mapi id 15.20.2900.015; Sun, 12 Apr 2020 09:13:22 +0000 From: Ori Kam To: Bill Zhou , Matan Azrad , 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: AQHWDxzs5w6sr0cpRUi/KM21YmSjRah1NgRQ Date: Sun, 12 Apr 2020 09:13:22 +0000 Message-ID: References: <20200316125205.22169-1-dongz@mellanox.com> <20200410094631.31330-1-dongz@mellanox.com> In-Reply-To: <20200410094631.31330-1-dongz@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; x-originating-ip: [185.149.253.12] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: a30090da-d535-471f-b276-08d7dec1bfac x-ms-traffictypediagnostic: AM6PR05MB5944:|AM6PR05MB5944: 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:AM6PR05MB5176.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(39860400002)(346002)(366004)(396003)(136003)(376002)(8936002)(66476007)(76116006)(81156014)(8676002)(6506007)(66446008)(53546011)(71200400001)(2906002)(66946007)(5660300002)(64756008)(66556008)(26005)(86362001)(7696005)(52536014)(4326008)(110136005)(478600001)(316002)(33656002)(186003)(9686003)(55016002)(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: dMJ7jPjxmYwbiCuqJzlo4UP+umYZB4C1VY4sV7s/m2j3LxPXybq9E+DCxyQ2quTzOMPS+Ja8TMdQRF8ohRQa+AGQ6IAdxel7COS4rWdbvHw21s8vET+QhfuW6WJ4YsWHe3J/+Ak9xLwLZdUehESgO1OK3fRhwEJb9M3KSsCln4pzcCwZX/TZ8f7t2FbPcDoxaKp/n9kNMf/EuwsnLTtkxfaUOkfC2/JFenspAzimF0vDsX3lLPaDXzgg7/ZUf/0S5Xx1sZBgqFb3WZBLbFcmcR09rXDzBnN9YAzZmljokpH2Dvv4bqHlawctgwfN7HeDQL9Rs083Nol7t6rOgXAUKUar2nMFzQybKHkxWrcl8oOL8Pygx4KH+MDKop+QSU1WP2gK7SNSoQROwRKRyzeqdF3WbkqxzlZHV9Zt4s5AZSFfKPUH4RgySJ2VScHj9Eh01e8PyH9NNMkdjCuA/8Xp5ID8ihTr0JKEsF4EBtVVCKjmJfeRDS1U+jRkDWYXwC3l x-ms-exchange-antispam-messagedata: xY6/ciF8E7aTRKbmEwcy0HGDbxh4Uxn1mQY4Hi/rt7AftxHLYLxgFhY6SZcJMbMZIk5mmmSoRSCx5URK5OWd7Y6JRtd4gSpkhWecTPuCgva8zH7WcjOHzJYeF1tkAv8JzWgi/LMsw7I51UaEBbQrPQ== 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: a30090da-d535-471f-b276-08d7dec1bfac X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2020 09:13:22.0765 (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: RgdBa1tpgtJ01gDxv29LYDV6pW6X8j4iYtSO0psBBwvmohBkb77nBvKAxh1eaKphlyspIGu6Y7NY2/Cw9E73/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB5944 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: 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 >=20 > One of the reasons to destroy a flow is the fact that no packet matches t= he > flow for "timeout" time. > For example, when TCP\UDP sessions are suddenly closed. >=20 > Currently, there is no any DPDK mechanism for flow aging and the > applications use their own ways to detect and destroy aged-out flows. >=20 > 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. >=20 > Signed-off-by: BillZhou > --- Nice patch. Acked-by: Ori Kam Thanks, Ori