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 5C8BC41D4F for ; Thu, 23 Feb 2023 10:40:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 56B9C43164; Thu, 23 Feb 2023 10:40:21 +0100 (CET) Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by mails.dpdk.org (Postfix) with ESMTP id 1EF524317D for ; Thu, 23 Feb 2023 10:40:18 +0100 (CET) Received: by mail-wr1-f49.google.com with SMTP id t13so10068398wrv.13 for ; Thu, 23 Feb 2023 01:40:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+FZ/3x8yvfbAkSOdKrc9JCzjmSijhEFTrePi4ztaWpU=; b=ZcFHOuE3nou5XSbFXmNmNEE4eX2BwgvHmlk3yFGoaPSWLENf05D1GXHK4eSWE4Xvzk 9Y3jtJGylJM94AdfSZiAD3Y+m43oZJBR7D5W+nztSRTdJAuR+ejI+nXXcewKbUu0LyGI wprGqOOGZ2KdHM3fsv7DYz/t8CtddgTf5Hgn9+EYdQFwhaqA+aLaZ/s2SMzcQMmiZen4 59BquQXXtG+YNX8MOZzt8RoQh7Q5T1yknGwRrAibniU4G44j1I1mDfVK0pUquFM7RD8i cK1xCikAsJKrnx6XT1U302ePtfe15Zhkz4TQpUcChNOcCaDmF5F1l0Q/yuv5Km0bpIAw HnYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+FZ/3x8yvfbAkSOdKrc9JCzjmSijhEFTrePi4ztaWpU=; b=gPV5baPEwl6Rt5VvhWhHjmcFvPNFPPXLCFHfOwvqF9rz7gTKolI8pV+tfLzsDKDThk PQfKlFW1swg87DLyAuK7xp2HJfTQkeU3FWxSsC282j30Io5pU6yjYn9zLRSRCrzgEx39 pKqi3LEUDAVpPFTnCV6Qx1p4roHBkuEGc3HT5yD7BQe8XLdrnyIIgVBdk50f4KZabpsq nI+YZ/nxEVx2dR4JKVQpRYwAPpLWRQJu5MoBNYVub1iaLLOOcUtj1PfJWLwAv6PT3Kmn Hr43G+pZf2D4DvKg6oIt6rfu+J4ODg+ubBqmWGtKHgJai3PtziWzzYtkNEsPOyc2PFr1 180w== X-Gm-Message-State: AO0yUKUcPhfPDfwcmes5aqtA1qpAxwmPnk8+ZhgT4gcZpSyMI30Iegwh 8wMKJ9G6lUgiiVM/m52k84I= X-Google-Smtp-Source: AK7set9Cdu8PdJT1vrHCk2Q8ys3yeeCtXjhiNxuvJco/B3wAUtemlfsPeVfjJaXJdh/BZCKfMR+9ew== X-Received: by 2002:a5d:4dcd:0:b0:2c3:e868:cf54 with SMTP id f13-20020a5d4dcd000000b002c3e868cf54mr9495158wru.13.1677145217739; Thu, 23 Feb 2023 01:40:17 -0800 (PST) Received: from localhost ([137.220.119.58]) by smtp.gmail.com with ESMTPSA id o4-20020a5d6844000000b002c70e60abd4sm2130917wrw.2.2023.02.23.01.40.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 01:40:17 -0800 (PST) From: luca.boccassi@gmail.com To: Steve Yang Cc: Qi Zhang , dpdk stable Subject: patch 'net/ice: fix validation of flow transfer attribute' has been queued to stable release 20.11.8 Date: Thu, 23 Feb 2023 09:37:02 +0000 Message-Id: <20230223093715.3926893-58-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230223093715.3926893-1-luca.boccassi@gmail.com> References: <20230223093715.3926893-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Hi, FYI, your patch has been queued to stable release 20.11.8 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/25/23. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/020d47beeb1fa34a15525d019176b0532cd978ab Thanks. Luca Boccassi --- >From 020d47beeb1fa34a15525d019176b0532cd978ab Mon Sep 17 00:00:00 2001 From: Steve Yang Date: Mon, 26 Dec 2022 00:37:15 +0000 Subject: [PATCH] net/ice: fix validation of flow transfer attribute [ upstream commit a6153cf2c3b98bfd4035dc3ad304b5d75a56940b ] ice doesn't support transfer attribute of flow rule, ignore it when validating rule attributes. Fixes: d76116a4678f ("net/ice: add generic flow API") Signed-off-by: Steve Yang Acked-by: Qi Zhang --- drivers/net/ice/ice_generic_flow.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/ice/ice_generic_flow.c b/drivers/net/ice/ice_generic_flow.c index 311fd7d162..4ed093bcae 100644 --- a/drivers/net/ice/ice_generic_flow.c +++ b/drivers/net/ice/ice_generic_flow.c @@ -1946,6 +1946,14 @@ ice_flow_valid_attr(struct ice_adapter *ad, return -rte_errno; } + /* Not supported */ + if (attr->transfer) { + rte_flow_error_set(error, EINVAL, + RTE_FLOW_ERROR_TYPE_ATTR_TRANSFER, + attr, "Not support transfer."); + return -rte_errno; + } + /* Check pipeline mode support to set classification stage */ if (ad->devargs.pipe_mode_support) { if (attr->priority == 0) -- 2.39.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-23 09:36:30.548946121 +0000 +++ 0058-net-ice-fix-validation-of-flow-transfer-attribute.patch 2023-02-23 09:36:28.334171928 +0000 @@ -1 +1 @@ -From a6153cf2c3b98bfd4035dc3ad304b5d75a56940b Mon Sep 17 00:00:00 2001 +From 020d47beeb1fa34a15525d019176b0532cd978ab Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit a6153cf2c3b98bfd4035dc3ad304b5d75a56940b ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index d496c28dec..86a32f8cb1 100644 +index 311fd7d162..4ed093bcae 100644 @@ -22 +23 @@ -@@ -2030,6 +2030,14 @@ ice_flow_valid_attr(struct ice_adapter *ad, +@@ -1946,6 +1946,14 @@ ice_flow_valid_attr(struct ice_adapter *ad,