From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 11DA74305C; Mon, 14 Aug 2023 08:57:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A3F7440A7F; Mon, 14 Aug 2023 08:57:16 +0200 (CEST) Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com [209.85.217.42]) by mails.dpdk.org (Postfix) with ESMTP id 3B9A6406A2 for ; Mon, 14 Aug 2023 08:57:16 +0200 (CEST) Received: by mail-vs1-f42.google.com with SMTP id ada2fe7eead31-4475af775c7so1763780137.0 for ; Sun, 13 Aug 2023 23:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691996235; x=1692601035; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=UBgZsQk8hluj4N0rmd1q4SPE+gQp+iDa34oGMS8b3N4=; b=iz+cPoKqIOBGOeNapbcr8R81g0fp55/sJuP/SU8b3D7XsqSA8Iwe0vqt5lwp9QHr4G uUsF7KfNDSkGpVsUheKnvt3m+3JYJI9DG6a7oQ/FyBoTGkf9Mj2ZK/K436oEO0h982Q8 rBpjufDKpg1toL1of798tv2QT5+0YoeLLhBv1nLtKGxjf8l60wiIPmaohaQo1CXwOraH jJcNGsIBa3WX1q9Wj3e87D5PlUEIdwHAyWpHtG/5qAKGDwlbaUJLvvmKNAtbfswu3opQ ouslhdNljXrGd6C1E+gwxzCRWv/wE5UYRM7UWnc3CFDejM3i8lhZYh1hFFevNurO7Q2f AFww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691996235; x=1692601035; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UBgZsQk8hluj4N0rmd1q4SPE+gQp+iDa34oGMS8b3N4=; b=MJ038AQdmIz2nD4+SkT/hF0I0+59LLmhHCK0/PbblXzz0i5PkHBJ+iDCoRREZPg4Ey nXWonQGIkfeapKXBkE04C8SD2fTzogVFgoK5W6EmXapsSEWuNfMrqGWz+b45SCwBMj3l ICX+OElJTnpatqJMmQDY9iUd3uyqawBG/oo1cszVaZfBqsKKWVbOLLYOZNILN9WW5HE7 LszoXvNCOeB10Pq7rbXxdO7LIXKftgnt6Pdt9AIZJmpCV+/ZIVp418NlGPO1sNALxOAV CLM+3QxtMPS+PO0Dy814OOHdmE3NlvNsHyjktWGsK3jhducPb/Yzu9hTyksjCFmnfzrb mKrA== X-Gm-Message-State: AOJu0YyjlxA2eA/UZpmo8ttrsMQhfCGUQOK9p9p7i8e03J3VRGON4zV4 bJ2fMHm/fwFQfS7kQ4KqJZX//m6OVtME5Y0C+VHb5qw+KnY= X-Google-Smtp-Source: AGHT+IFBLTt43Td+Mi7HjSE92LozGZb4fyoEow19uvjiQ80CDp+q2/EI/VzY+jBG/YIi22g6L5Eb+x9rfj89CfOFg8w= X-Received: by 2002:a05:6102:45b:b0:449:6e24:be74 with SMTP id e27-20020a056102045b00b004496e24be74mr5037484vsq.0.1691996235350; Sun, 13 Aug 2023 23:57:15 -0700 (PDT) MIME-Version: 1.0 References: <20230727115926.2252988-1-adwivedi@marvell.com> <20230808084952.2460758-1-adwivedi@marvell.com> <20230808084952.2460758-2-adwivedi@marvell.com> In-Reply-To: <20230808084952.2460758-2-adwivedi@marvell.com> From: Jerin Jacob Date: Mon, 14 Aug 2023 12:26:49 +0530 Message-ID: Subject: Re: [PATCH v2 1/2] common/cnxk: add support to get aged flows To: Ankur Dwivedi Cc: dev@dpdk.org, jerinj@marvell.com, ndabilpuram@marvell.com, kirankumark@marvell.com, skori@marvell.com, skoteshwar@marvell.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Tue, Aug 8, 2023 at 2:20=E2=80=AFPM Ankur Dwivedi = wrote: > > Adds support to get aged flows in CNXK driver. > The control thread polls the status of flows having age action, every 10 > seconds and updates a bitmap array with the aged flows. The poll frequenc= y > of control thread can be set by devargs. > > Signed-off-by: Ankur Dwivedi > --- > drivers/common/cnxk/meson.build | 1 + > drivers/common/cnxk/roc_mbox.h | 27 +++ > drivers/common/cnxk/roc_npc.c | 22 ++ > drivers/common/cnxk/roc_npc.h | 28 +++ > drivers/common/cnxk/roc_npc_aging.c | 315 ++++++++++++++++++++++++++++ > drivers/common/cnxk/roc_npc_priv.h | 17 ++ > drivers/common/cnxk/roc_platform.h | 8 + > drivers/common/cnxk/version.map | 1 + > 8 files changed, 419 insertions(+) > create mode 100644 drivers/common/cnxk/roc_npc_aging.c Updated the release notes as diff --git a/doc/guides/rel_notes/release_23_11.rst b/doc/guides/rel_notes/release_23_11.rst index 5b01a52593..10d4484685 100644 --- a/doc/guides/rel_notes/release_23_11.rst +++ b/doc/guides/rel_notes/release_23_11.rst @@ -58,6 +58,7 @@ New Features * **Updated Marvell cnxk ethdev driver.** * Added support for ``RTE_FLOW_ITEM_TYPE_IPV6_ROUTING_EXT`` flow item. + * Added support for ``RTE_FLOW_ACTION_TYPE_AGE`` flow action. Updated the git commit as follows and applied to dpdk-next-net-mrvl/for-next-net. Thanks commit ebee383fbe9a0ca25e083d26d9b251cb0310a5d2 (HEAD -> for-next-net) Author: Ankur Dwivedi Date: Tue Aug 8 14:19:52 2023 +0530 net/cnxk: support flow aging Support get flow aged ops in cnxk ethdev driver. Also adds the devargs to get the poll frequency of control thread. Signed-off-by: Ankur Dwivedi commit d110c44d29e73b74834fb795ba18069635cdff6f Author: Ankur Dwivedi Date: Tue Aug 8 14:19:51 2023 +0530 common/cnxk: support flow aging Added support to get aged flows in base code. The control thread polls the status of flows having age action, every 10 seconds and updates a bitmap array with the aged flows. The poll frequency of control thread can be set by devargs. Signed-off-by: Ankur Dwivedi