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 D9B7BA059F; Fri, 10 Apr 2020 14:41:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 66C571D541; Fri, 10 Apr 2020 14:41:51 +0200 (CEST) Received: from mail-il1-f196.google.com (mail-il1-f196.google.com [209.85.166.196]) by dpdk.org (Postfix) with ESMTP id CAB0F1D532 for ; Fri, 10 Apr 2020 14:41:49 +0200 (CEST) Received: by mail-il1-f196.google.com with SMTP id d2so1317945ilc.0 for ; Fri, 10 Apr 2020 05:41:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tYVKrGA/YSwB/8y7vhM5Ex1y/UKymx9vNJ4MSn+FlU4=; b=J4L3NBElsACpdQcX6CBqfsb8xP+qDSZE2xg5MnFpMDsoUhfUubqUb7jn+KY+hoyyCE 1CWt0qrNduZCz4uswicBrlCyqb2u9vCq+lO2WV9DoXZXGzrBtAciEKUazolTC9dU2CX6 9b3xhM7PAVJ1W+wUUGSrbVK1HGKsirmn1qEeV/tQB0/GxbzDI14sb9D5F+A86IASvIQq QWEqj87rGZ9g0sT5cGdSem2iMG1ecU258jH5FZKBa+l8xpNgPH/ggzoosq4ovqzQaQcb Jnx8INaOtsGbBl6ykwSCdJ2eQ9iPZA1FuRP/dMRsMT2LIw3QyEb5A0J2Bb94xNVk8zh4 oRFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tYVKrGA/YSwB/8y7vhM5Ex1y/UKymx9vNJ4MSn+FlU4=; b=h783X8Et0l6A4dw7B/mX5CtiGCIXhoq/oLIiVABTgbxZDATHL9BE0J+/mnHqt2kXC3 HZJBaFrBZcSnYRN20TE/BqAZT3bWmD9DstGtXqv7q/pmUx3QvtoUDc3rX0DSe7UQefr2 xTxhal95FXlwfSFNxdwCWN+R1tA6DdLEaZvjJ3hgrL1HwNGlE+JVow36h+5WK4if4zBB qRyeDPhRl+Dd4UAK7bBxptYPL9lx+Ab2ShfjW1qrJDAwad0JfrizOu/Hd3eucKhDXcaL BU2s7x3tPLPSStB/Fl7BeYJRfekWu6XqYIHq0xWLYbeAJX4ghwSz58174mY1O3b7Tqbs XKVg== X-Gm-Message-State: AGi0PuYIgMwNPflnlXu9lPia6CYswMxuaFX7mroRbEuTSGQCNiCwVAr7 /6LXLVUCTu0BY6KrFpTlwaxxaPwCJZMHUVtFf6s= X-Google-Smtp-Source: APiQypIx+ngnpnscKmkYu0P2KX5kddckWSTK2kjWNHwF7Od7RMs0E8a/3nI7F6Oh+7T4fjU9QBacS/39MKSZJSbhihA= X-Received: by 2002:a92:9edb:: with SMTP id s88mr5179183ilk.294.1586522509206; Fri, 10 Apr 2020 05:41:49 -0700 (PDT) MIME-Version: 1.0 References: <20200316125205.22169-1-dongz@mellanox.com> <20200410094631.31330-1-dongz@mellanox.com> <517a5845-b3b6-2471-a386-b27109ae16be@solarflare.com> In-Reply-To: <517a5845-b3b6-2471-a386-b27109ae16be@solarflare.com> From: Jerin Jacob Date: Fri, 10 Apr 2020 18:11:33 +0530 Message-ID: To: Andrew Rybchenko Cc: BillZhou , Matan Azrad , Ori Kam , Wenzhuo Lu , Jingjing Wu , Bernard Iremonger , John McNamara , Marko Kovacevic , Thomas Monjalon , Ferruh Yigit , dpdk-dev Content-Type: text/plain; charset="UTF-8" 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 Fri, Apr 10, 2020 at 5:38 PM Andrew Rybchenko wrote: > > 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 Acked-by: Jerin Jacob >