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 695FC45C23 for ; Thu, 31 Oct 2024 15:35:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3FB654025A; Thu, 31 Oct 2024 15:35:09 +0100 (CET) Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) by mails.dpdk.org (Postfix) with ESMTP id 08B014025A for ; Thu, 31 Oct 2024 15:35:07 +0100 (CET) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-6e33c65d104so8068577b3.3 for ; Thu, 31 Oct 2024 07:35:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730385306; x=1730990106; h=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=dCc1z1+54pZplLtpzy2M1p4Xiu0zboCfotNM1wX0wQw=; b=UzsCIs4+AwxFaQbZGeV9orgAyjxH2A49GIu/znmZXI7jDi3EUlBRBf3vu0aJDX2CR7 u6IV9iCFCcScOA3XjnVxGZHGljKWVeeFfSqF2Ahb2cOCqFLXC0/RFN0HQpI0MpZvu2XC EEQuiHlcYMGPlPQHpnNEY1OyxPktL8piBWLYz2FtHOqXcVWszGhd/cptGcsD68kEkgdS K9ZAH1DX0ZijeV8aSrlsKQ9p9hc1gNFkmP2xypoC3+VzC19NsoVmt2m+MTyuUbODwlqg rmS8t5iKdCl0cvLpcdEvkd0CB7r1ObvCGBo1eCuq+wUXSUNaAI4KnB/G0/9hO3yzFih5 WR8w== X-Gm-Message-State: AOJu0YwO5GlekNwdsufyrNGhtdiBVLC2+nLuzwYdJsQIVyz1ZM1txWUC iEV/7V1q3UJI3IatYBdNLG0X8jpisP4vqYUrzwVAJDGurG4/321rm9R2GQ== X-Google-Smtp-Source: AGHT+IGweuFhGXZkjcbGOpSM1+3HbKqrVkmFGg/BoK3tq1LnSUAbm6Y7/mDGYivoOqDbI21f9UO0sA== X-Received: by 2002:a05:690c:9c0f:b0:6de:a3:a7ca with SMTP id 00721157ae682-6e9d8acb4a9mr244959487b3.32.1730385306174; Thu, 31 Oct 2024 07:35:06 -0700 (PDT) Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com. [209.85.219.169]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6ea55ac990bsm2635527b3.28.2024.10.31.07.35.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 31 Oct 2024 07:35:05 -0700 (PDT) Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-e2972abc807so980654276.3 for ; Thu, 31 Oct 2024 07:35:05 -0700 (PDT) X-Received: by 2002:a05:690c:23c2:b0:6e3:420f:a2d1 with SMTP id 00721157ae682-6e9d899d91dmr235528517b3.23.1730385305695; Thu, 31 Oct 2024 07:35:05 -0700 (PDT) MIME-Version: 1.0 References: <20241031124434.1751097-1-viacheslavo@nvidia.com> <20241031124434.1751097-3-viacheslavo@nvidia.com> In-Reply-To: <20241031124434.1751097-3-viacheslavo@nvidia.com> From: Luca Boccassi Date: Thu, 31 Oct 2024 14:34:55 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 22.11 3/3] net/mlx5: fix flex item header length field translation To: Viacheslav Ovsiienko Cc: stable@dpdk.org, Dariusz Sosnowski Content-Type: text/plain; charset="UTF-8" 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 Thu, 31 Oct 2024 at 12:45, Viacheslav Ovsiienko wrote: > > [ upstream commit net/mlx5: fix flex item header length field translation ] > > There are hardware imposed limitations on the header length > field description for the mask and shift combinations in the > FIELD_MODE_OFFSET mode. > > The patch updates: > - parameter check for FIELD_MODE_OFFSET for the header length > field > - check whether length field crosses dword boundaries in header > - correct mask extension to the hardware required width 6-bits > - correct adjusting the mask left margin offset, preventing > dword offset > > Fixes: b293e8e49d78 ("net/mlx5: translate flex item configuration") > Cc: stable@dpdk.org > > Signed-off-by: Viacheslav Ovsiienko > Acked-by: Dariusz Sosnowski > --- > drivers/net/mlx5/mlx5_flow_flex.c | 112 +++++++++++++++++++----------- > 1 file changed, 72 insertions(+), 40 deletions(-) Thanks, all applied