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 B1E9DA059F; Fri, 10 Apr 2020 12:14:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5C7AF1C1C4; Fri, 10 Apr 2020 12:14:30 +0200 (CEST) Received: from new4-smtp.messagingengine.com (new4-smtp.messagingengine.com [66.111.4.230]) by dpdk.org (Postfix) with ESMTP id 8F68F1C1C1 for ; Fri, 10 Apr 2020 12:14:29 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailnew.nyi.internal (Postfix) with ESMTP id E6DAE5805D1; Fri, 10 Apr 2020 06:14:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Fri, 10 Apr 2020 06:14:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=/kri36qR82Ax4hU5MjAJ+TAO660+hjgwT9TnkIkCaWg=; b=oZek6yo0i+Yg K0xO2FJT1SiFFWaErZyyItMHKBCc/OkH8r2F1ZyMvxCaOZLB+qJJblEGaU0d059e dKsg8OFDpX3mQu2XHm2Ara/fBOu4jJhPR6gHzLNq1I9glElbmwaPjNiy9clg3RMa 8fAE7JLRjipia3OQiveUpNz6HgUi1o0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=/kri36qR82Ax4hU5MjAJ+TAO660+hjgwT9TnkIkCa Wg=; b=4NTMXR223E5QMEYriNF/HwiCj6dbOcAxtxtegF9pnLA3MzwkMu167AW1G LqLaBjeMSfJ2vGZcWkZ7DwMspDHT9JZYFejgD4q9Jje6IpMrwlit57gSAaaqIVhB Bi4SZoX3hFaA/6o7AcAHxKBRbJ50DBWxjfbc7KJ5Kul7e3E9/QrP8S+eJ3jPQNsf Xz4evH7ypxpOPErliv+xOiNG/jkYEg38XSUO4ok6typj7H3DHzSqse2tRX//Ug7o FSMZIs9y7MeR5tDH/BakSHJZ77zSSYVUjachFiRiDRXmoMZOfdd9/D+5VH6fJuVk 3S0RFDchD72ISx9M6lr0H/d88Hghw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrvddvgddviecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfgjfhgggfgtsehtufertd dttddvnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehm ohhnjhgrlhhonhdrnhgvtheqnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshes mhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 690FD306006D; Fri, 10 Apr 2020 06:14:27 -0400 (EDT) From: Thomas Monjalon To: BillZhou Cc: matan@mellanox.com, orika@mellanox.com, 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 Date: Fri, 10 Apr 2020 12:14:26 +0200 Message-ID: <10038737.aFP6jjVeTY@thomas> In-Reply-To: <20200410094631.31330-1-dongz@mellanox.com> References: <20200316125205.22169-1-dongz@mellanox.com> <20200410094631.31330-1-dongz@mellanox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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" 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 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"? > + * Added support for flow Aging mechanism base on counter. Aging -> aging base -> based counter -> hardware counter?