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 36F08A059F; Fri, 10 Apr 2020 14:08:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9B21A1C1B7; Fri, 10 Apr 2020 14:08:19 +0200 (CEST) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id EB8961C196 for ; Fri, 10 Apr 2020 14:08:17 +0200 (CEST) Received: from mx1-us1.ppe-hosted.com (unknown [10.7.65.64]) by dispatch1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 400F5600AD; Fri, 10 Apr 2020 12:08:17 +0000 (UTC) Received: from us4-mdac16-37.ut7.mdlocal (unknown [10.7.66.156]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 3F1A22009B; Fri, 10 Apr 2020 12:08:17 +0000 (UTC) X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (unknown [10.7.65.199]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 9E2A522004D; Fri, 10 Apr 2020 12:08:16 +0000 (UTC) Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 1D075180050; Fri, 10 Apr 2020 12:08:16 +0000 (UTC) Received: from [127.0.0.27] (10.17.10.39) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 10 Apr 2020 13:08:03 +0100 To: BillZhou , , , , , , , , , CC: References: <20200316125205.22169-1-dongz@mellanox.com> <20200410094631.31330-1-dongz@mellanox.com> From: Andrew Rybchenko Message-ID: <517a5845-b3b6-2471-a386-b27109ae16be@solarflare.com> Date: Fri, 10 Apr 2020 15:07:36 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200410094631.31330-1-dongz@mellanox.com> Content-Language: en-US X-Originating-IP: [10.17.10.39] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1020-25346.003 X-TM-AS-Result: No-5.764700-8.000000-10 X-TMASE-MatchedRID: VfovoVrt/obmLzc6AOD8DfHkpkyUphL9WYZREwIGtxlpsnGGIgWMma8O XIrEdNR9g1RJZjzOPPLwyYmEHRk+z7qnZLvYA+IROM7ns3UgBY2/drf0OkeC/35Isu006IGGJmV 7j1WQqodfMjbJWOZK4mJccPAPwFJqKgDmz5EUYuXlvSeYSYEULHzIY7d2+Tz9Vxt8iPZNr2w/zi v0u4cpYZfr3281qUXdtttS90mEZenoFAS0KSTy0i+PrAd8gbHJI/HS+JSZ167hbCsoFPacnXlED b1OO87oZipMsTQzH+K9TnZXLseR1k1+zyfzlN7ygxsfzkNRlfJq8/xv2Um1arVV9mtf2bFYMrPa 6W3WwXsB6yLusYR4oPSedcKUJMKjreiAx1eksEaJbym+UXTsPrIsgzcm2a4lyc8heoON/qfjE2s dku0LYr1Ke6chu16e X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.764700-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1020-25346.003 X-MDID: 1586520497-NDppFPIL2b5t Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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" On 4/10/20 12:46 PM, BillZhou wrote: > 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 Acked-by: Andrew Rybchenko