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 1E03241D4F for ; Thu, 23 Feb 2023 10:40:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1782643164; Thu, 23 Feb 2023 10:40:18 +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 E91AB4317D for ; Thu, 23 Feb 2023 10:40:16 +0100 (CET) Received: by mail-wr1-f49.google.com with SMTP id c12so10141365wrw.1 for ; Thu, 23 Feb 2023 01:40:16 -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=SvX+xLOKqK2T1/GkTj2rh4lF4RHKnzl6hZUscyZbL2A=; b=CVGiRl6Qa3bjvTaQismjyahOqaCG7yXcmDZUG4jxlE7kB6Fm8OOpnOTiU+n3E60mQr xqfO7Fg177YtVNRv31qjKIZvuLoqJCfuVVUdH6gSMTcUopmtF+FlkOSp2Fkcx8sbWeHr 8HDo/SaUKbuNOjM2Fr+n2ue5eMjNkM1wgMqKBovAI+QgCOnrFx81lHoQS0YFnv2WwW6+ bwmn9PDt3tqf43SvAumRahSFVo7ms1gOkkYIUTyoIyaNKsdLSKmCSzkfbVHRzTeIGmdY 3aGxLXR5IrciRol2Bc8p34hn+/3M5rvsbEytEDSyzRccZ/1A0nUQH8HP7bVTWDqUNBrv fhcw== 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=SvX+xLOKqK2T1/GkTj2rh4lF4RHKnzl6hZUscyZbL2A=; b=0dVkX7Ch/wxMB1EzfQ2H++A0hgg1pJ/aBnVrUnBAmIxZZRC1Vc7NZLcqbGoTyu2mqO 7wQqh+rSPp+dNdjz6vxhnN1Y0U2DnKP3ERJWzAbL8oG2qq0skTmfDFCIqxbe/ZFM7xCh kHlrzDSGc5IFeHaPOC/7fLiuLzzXnawOZLBvO8XsozQBP8R7iPGMS7I0zwIWHLU8L0w2 K2tGxbubwUYCiCB8gXC9hsbmvrYpro7tyEO2B/vLTQdn42j8nRfkNhvCslhBrDava04l tIjyO4WbQ2HRRNnKqyUgqebTC39ZxMRJ8bBaBXii6x1u+mwf8TRbt8kyvf15l9EY1ibu 7dvg== X-Gm-Message-State: AO0yUKVnnSWXoc0Gx2zmpHlBAIOqvZHefmAtmAq2pKloYvbm7NITNqbz yj/Bo+dkoscZVyXx7ntsWoplLPvgtjAFqQ== X-Google-Smtp-Source: AK7set+9xaJmppNQGKVkZ3QWe9k0OAHUOTtAXzjAcmwuI0Ew94TOvYoAdZ6f2OqB6yOAUFuhRjIUyg== X-Received: by 2002:a5d:6548:0:b0:2c5:54fd:265e with SMTP id z8-20020a5d6548000000b002c554fd265emr9706025wrv.70.1677145216643; Thu, 23 Feb 2023 01:40:16 -0800 (PST) Received: from localhost ([2a01:4b00:d307:1000:f1d3:eb5e:11f4:a7d9]) by smtp.gmail.com with ESMTPSA id k2-20020adff282000000b002c6e8cb612fsm8473845wro.92.2023.02.23.01.40.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 01:40:16 -0800 (PST) From: luca.boccassi@gmail.com To: Steve Yang Cc: Qi Zhang , dpdk stable Subject: patch 'net/i40e: fix validation of flow transfer attribute' has been queued to stable release 20.11.8 Date: Thu, 23 Feb 2023 09:37:01 +0000 Message-Id: <20230223093715.3926893-57-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/ce654f6ae188f0e0133002040aad61f1eb66c155 Thanks. Luca Boccassi --- >From ce654f6ae188f0e0133002040aad61f1eb66c155 Mon Sep 17 00:00:00 2001 From: Steve Yang Date: Mon, 26 Dec 2022 00:37:14 +0000 Subject: [PATCH] net/i40e: fix validation of flow transfer attribute [ upstream commit 74d20de6101f60d3d2b345abcd4ab5bfd2b6076a ] i40e doesn't support transfer attribute of flow rule, ignore it when validating rule attributes. Fixes: 86eb05d6350b ("net/i40e: add flow validate function") Signed-off-by: Steve Yang Acked-by: Qi Zhang --- drivers/net/i40e/i40e_flow.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index b41a1fd3ca..5f519d7403 100644 --- a/drivers/net/i40e/i40e_flow.c +++ b/drivers/net/i40e/i40e_flow.c @@ -1991,6 +1991,14 @@ i40e_flow_parse_attr(const struct rte_flow_attr *attr, 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; + } + /* Not supported */ if (attr->priority) { rte_flow_error_set(error, EINVAL, -- 2.39.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-23 09:36:30.508800761 +0000 +++ 0057-net-i40e-fix-validation-of-flow-transfer-attribute.patch 2023-02-23 09:36:28.334171928 +0000 @@ -1 +1 @@ -From 74d20de6101f60d3d2b345abcd4ab5bfd2b6076a Mon Sep 17 00:00:00 2001 +From ce654f6ae188f0e0133002040aad61f1eb66c155 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 74d20de6101f60d3d2b345abcd4ab5bfd2b6076a ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index 3c550733f2..877e49151e 100644 +index b41a1fd3ca..5f519d7403 100644 @@ -22 +23 @@ -@@ -1236,6 +1236,14 @@ i40e_flow_parse_attr(const struct rte_flow_attr *attr, +@@ -1991,6 +1991,14 @@ i40e_flow_parse_attr(const struct rte_flow_attr *attr,