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 9C22FA0032 for ; Wed, 16 Mar 2022 14:31:35 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F5C940395; Wed, 16 Mar 2022 14:31:35 +0100 (CET) Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) by mails.dpdk.org (Postfix) with ESMTP id 4CFAD40395 for ; Wed, 16 Mar 2022 14:31:34 +0100 (CET) Received: by mail-ej1-f47.google.com with SMTP id bi12so4230838ejb.3 for ; Wed, 16 Mar 2022 06:31:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=4SobzW8bGeCdu5fzXA4E2AyLbixCBvqk2aJEyF6JtVw=; b=18GS/o4bqy1yk2qah8DqvhuPq8D3luzWn+Twul0ru5Wcs1VVHWWsuhF782EfwyLobD FbSM5iw+rAgXoW+gahkygeh967coMrGfOC167pEOqWA6Kvhz1V9GLIjtEBHjB+pTfIYm LlnhKZb1kxF0Y0ahkQqpu8YtYoaWRgKQO6wNqdFIBhLSHolj/KJnYOWH6iPIL2lVGlHG aVRCYlZHIHw5Zk4U3GFnyf304ppGmaSvIhR+NiAj/bYd1WU5xb4kZnxkGA/in4cQvMjs mEhPYQnEKBjNDipoj/9SNc3lIg5v2GJVxREhdpyhGN9xP/Et8V/kEvve5CxqeRmqMx5b HuUA== X-Gm-Message-State: AOAM5325SbSE14Q9OpCOdgww4raZIOgpmptAR448hsFipAeUONZ8YD36 cRu3BTPxljJfe0nj/q6xLOA= X-Google-Smtp-Source: ABdhPJwHn6uTpUr1DpshfOQ3jLJ0/4toArsCW5Z/H7Ng6kJ2xBk2PE2DnpYAfJV2l872bz0MIVZSRA== X-Received: by 2002:a17:906:7312:b0:6db:5729:f11 with SMTP id di18-20020a170906731200b006db57290f11mr26352849ejc.623.1647437493834; Wed, 16 Mar 2022 06:31:33 -0700 (PDT) Received: from localhost ([2a01:4b00:f41a:3600:360b:9754:2e3a:c344]) by smtp.gmail.com with ESMTPSA id d4-20020a1709067a0400b006d6e3ca9f71sm905051ejo.198.2022.03.16.06.31.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 06:31:33 -0700 (PDT) Message-ID: Subject: Re: [PATCH 20.11] net/octeontx2: fix flow MCAM priority management From: Luca Boccassi To: Kiran Kumar Kokkilagadda , Satheesh Paul , Jerin Jacob Kollanukkaran , Nithin Kumar Dabilpuram Cc: "stable@dpdk.org" Date: Wed, 16 Mar 2022 13:31:32 +0000 In-Reply-To: References: <20220315041620.2118828-1-psatheesh@marvell.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.38.3-1+plugin MIME-Version: 1.0 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, 2022-03-15 at 15:47 +0000, Kiran Kumar Kokkilagadda wrote: >=20 > > -----Original Message----- > > From: psatheesh@marvell.com > > Sent: Tuesday, March 15, 2022 9:46 AM > > To: Jerin Jacob Kollanukkaran ; Nithin Kumar Dabilp= uram > > ; Kiran Kumar Kokkilagadda > > > > Cc: stable@dpdk.org; Satheesh Paul > > Subject: [PATCH 20.11] net/octeontx2: fix flow MCAM priority management > >=20 > > From: Satheesh Paul > >=20 > > This patch fixes issues in rearranging the MCAM entries when user is cr= eating > > flows with priority levels. > > The MCAM preallocation scheme and the free entry cache are removed. For > > every flow created, an MCAM allocation request is made to the kernel. E= ach > > priority level has a list of MCAM entries. For every flow rule added, t= he MCAM > > entry obtained from kernel is checked if it is at the correct user spec= ified priority. > > If not, the existing rules are moved across MCAM entries so that the us= er > > specified priority is maintained. > >=20 > > Fixes: 29a2017c70 ("net/octeontx2: add flow mbox utility functions") > >=20 > > Signed-off-by: Satheesh Paul >=20 > Acked-by: Kiran Kumar Kokkilagadda Thanks, applied and pushed. --=20 Kind regards, Luca Boccassi