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 4A45143196 for ; Wed, 18 Oct 2023 09:18:46 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4337640F16; Wed, 18 Oct 2023 09:18:46 +0200 (CEST) Received: from mail-vk1-f170.google.com (mail-vk1-f170.google.com [209.85.221.170]) by mails.dpdk.org (Postfix) with ESMTP id 82D274025F; Wed, 18 Oct 2023 09:18:43 +0200 (CEST) Received: by mail-vk1-f170.google.com with SMTP id 71dfb90a1353d-49d6bd360f8so2610468e0c.2; Wed, 18 Oct 2023 00:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697613523; x=1698218323; darn=dpdk.org; 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=TWKgju6XA7q5N9qgpLzn+xJcVhheJ+xI2d0KvjeHfw4=; b=F6XRFiE9sIF0tgXqPF/u95XH8ZdkzbqZy19wPgrBxHBQvsRoqcnFB/KEWrbJk1WpDL yls0iSNJyM+6sovnhO7nFZlNnzmfQKJL2EMv2GiQmclsgBVaw2UB+XHdRKls6mizAl+r 0FOvzEKKZdChDjSfhYm9xpS8MVp6KCIqHkyHdlMpLIyOzd72YsM/y3C+FNOo0yomgt1U vSUK6nu745vjJvOo0DlLsSABhYVT/XGlkEDn5AJClTXruBVWHQL7sbqypNahCCtm8i0B 5A9Bh+U3mEDLCrnr9kOQaK/ZxB26YKSFqyjOfS1JMBJbHkB+xWZbmnvtyEcf3+4Phbvf YCag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697613523; x=1698218323; 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=TWKgju6XA7q5N9qgpLzn+xJcVhheJ+xI2d0KvjeHfw4=; b=rBLoO1cH0EUi7bvbCx3HM0nvY/UFu5nUvPEwMogkZcevOSR4RkJKif8SQpIOiSh+Og tMG8boyyeWFxGtcS2GizqMjBNeVizKyTY5d4OxCfGYKjNKRvgsxs9Dmx3fmuGEnSrQhI 34oLRuCTRn3ToUJyUgZOSyp+++7gdtXQdxqFOl10b3MbfBiIE+oyDHRe+tSrXVzcsQgL 9KTLaiREZQZpDlCs1PTv1dcPvP9Hi+iLstCCcZOI0Gy2kaQio1XPgI9YyT+atADUGGuh 1dvJBavK9LwBHO2+IJDGgZ640Ruf+rEIV7w8Hn7A/H5ONlQAbcG17fx5DH+2PnqtFR+k eaDQ== X-Gm-Message-State: AOJu0YykEGqCu+vs+qRr1hCZq2PqQPnzVM08VfkFlkRVtB2GHu9hHsgx kG/qyYCpScjJgfUWaHfkQp5iIhCxObKjIC2OaWw= X-Google-Smtp-Source: AGHT+IHOlr4pwQAojjaa7bVW192ebmmGlKbNnGDUnFljsFt0ZzST+hXPZ+9zNk/0JGlapfJP+Mdp2Tu4qL1WL7dmmMg= X-Received: by 2002:a1f:a041:0:b0:495:c464:a2fe with SMTP id j62-20020a1fa041000000b00495c464a2femr4236182vke.2.1697613522812; Wed, 18 Oct 2023 00:18:42 -0700 (PDT) MIME-Version: 1.0 References: <20231017111837.1434411-1-adwivedi@marvell.com> In-Reply-To: <20231017111837.1434411-1-adwivedi@marvell.com> From: Jerin Jacob Date: Wed, 18 Oct 2023 12:48:16 +0530 Message-ID: Subject: Re: [PATCH v1] common/cnxk: fix flow add in age flow list To: Ankur Dwivedi Cc: dev@dpdk.org, jerinj@marvell.com, ndabilpuram@marvell.com, kirankumark@marvell.com, skori@marvell.com, skoteshwar@marvell.com, stable@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Tue, Oct 17, 2023 at 4:48=E2=80=AFPM Ankur Dwivedi wrote: > > While adding flow in npc_flow_list, the flow can be added before the > current flow iterator. The function returns after adding this flow. > This prevents flow to be added in age flow list correctly. This patch mov= es > the addition of age flow list before npc_flow_list add to prevent the > error. Also the flow is added or deleted to/from age flow list if the flo= w > has age action. > > Fixes: 357f5ebc8a24 ("common/cnxk: support flow aging") > Cc: stable@dpdk.org > > Signed-off-by: Ankur Dwivedi Updated the git commit as follows and applied to dpdk-next-net-mrvl/for-next-net. Thanks common/cnxk: fix age flow list update While adding flow in npc_flow_list, the flow can be added before the current flow iterator. The function returns after adding this flow. This prevents flow to be added in age flow list correctly. This patch m= oves the addition of age flow list before npc_flow_list add to prevent the error. Also the flow is added or deleted to/from age flow list if the f= low has age action. Fixes: 357f5ebc8a24 ("common/cnxk: support flow aging") Cc: stable@dpdk.org Signed-off-by: Ankur Dwivedi