patch 'net/ice: fix validation of flow transfer attribute' has been queued to stable release 20.11.8

luca.boccassi at gmail.com luca.boccassi at gmail.com
Thu Feb 23 10:37:02 CET 2023


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 <stevex.yang at intel.com>
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 <stevex.yang at intel.com>
Acked-by: Qi Zhang <qi.z.zhang at intel.com>
---
 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 at 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,


More information about the stable mailing list