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 480C741D52 for ; Thu, 23 Feb 2023 16:08:27 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 43E97432AD; Thu, 23 Feb 2023 16:08:27 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id CFB4E432A7 for ; Thu, 23 Feb 2023 16:08:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677164905; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8zWJ+DuDlM9QcKRgGwplYvW/hJLl7UIF6CvHEKVtbvc=; b=WPiQLz0C0Q71NBZuZw+gkgFp6MqkolPYF/vOZVtNOFDmrKXVZltaG17IufwLwdafIJWHaW NiJZkXJQAo8+eZu4Ab3V/IlA26BUpfBvfsWT9KZFyffWT6U0n+LthsOTeLvrxczGunMkek dA1DurYfqZOU44lzbWU6PS5TL9MADKc= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-424-z8IoPqioOPucoynfawRzhA-1; Thu, 23 Feb 2023 10:08:23 -0500 X-MC-Unique: z8IoPqioOPucoynfawRzhA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 778233C0E463; Thu, 23 Feb 2023 15:08:23 +0000 (UTC) Received: from rh.redhat.com (unknown [10.39.192.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id 78DDA2166B2B; Thu, 23 Feb 2023 15:08:22 +0000 (UTC) From: Kevin Traynor To: Steve Yang Cc: Qi Zhang , dpdk stable Subject: patch 'net/ice: fix validation of flow transfer attribute' has been queued to stable release 21.11.4 Date: Thu, 23 Feb 2023 15:06:11 +0000 Message-Id: <20230223150631.723699-80-ktraynor@redhat.com> In-Reply-To: <20230223150631.723699-1-ktraynor@redhat.com> References: <20230223150631.723699-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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 21.11.4 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/28/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/kevintraynor/dpdk-stable This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable/commit/1ce8e1d4a819edda8a043f9b4f4c61259a77b9fe Thanks. Kevin --- >From 1ce8e1d4a819edda8a043f9b4f4c61259a77b9fe 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 f9be3a5c94..8293faa4e7 100644 --- a/drivers/net/ice/ice_generic_flow.c +++ b/drivers/net/ice/ice_generic_flow.c @@ -2014,4 +2014,12 @@ ice_flow_valid_attr(struct ice_adapter *ad, } + /* 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) { -- 2.39.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-23 14:46:25.740305412 +0000 +++ 0080-net-ice-fix-validation-of-flow-transfer-attribute.patch 2023-02-23 14:46:23.862236287 +0000 @@ -1 +1 @@ -From a6153cf2c3b98bfd4035dc3ad304b5d75a56940b Mon Sep 17 00:00:00 2001 +From 1ce8e1d4a819edda8a043f9b4f4c61259a77b9fe 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 f9be3a5c94..8293faa4e7 100644 @@ -22 +23 @@ -@@ -2031,4 +2031,12 @@ ice_flow_valid_attr(struct ice_adapter *ad, +@@ -2014,4 +2014,12 @@ ice_flow_valid_attr(struct ice_adapter *ad,