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

Kevin Traynor ktraynor at redhat.com
Thu Feb 23 16:06:10 CET 2023


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/cb8f428cfee8f726f1f71a32b00b8c92b0e5ee46

Thanks.

Kevin

---
>From cb8f428cfee8f726f1f71a32b00b8c92b0e5ee46 Mon Sep 17 00:00:00 2001
From: Steve Yang <stevex.yang at intel.com>
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 <stevex.yang at intel.com>
Acked-by: Qi Zhang <qi.z.zhang at intel.com>
---
 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 4f3808cb5f..b4cdefafa5 100644
--- a/drivers/net/i40e/i40e_flow.c
+++ b/drivers/net/i40e/i40e_flow.c
@@ -1992,4 +1992,12 @@ i40e_flow_parse_attr(const struct rte_flow_attr *attr,
 	}
 
+	/* 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) {
-- 
2.39.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-02-23 14:46:25.716484872 +0000
+++ 0079-net-i40e-fix-validation-of-flow-transfer-attribute.patch	2023-02-23 14:46:23.861236283 +0000
@@ -1 +1 @@
-From 74d20de6101f60d3d2b345abcd4ab5bfd2b6076a Mon Sep 17 00:00:00 2001
+From cb8f428cfee8f726f1f71a32b00b8c92b0e5ee46 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 74d20de6101f60d3d2b345abcd4ab5bfd2b6076a ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 3c550733f2..877e49151e 100644
+index 4f3808cb5f..b4cdefafa5 100644
@@ -22 +23 @@
-@@ -1237,4 +1237,12 @@ i40e_flow_parse_attr(const struct rte_flow_attr *attr,
+@@ -1992,4 +1992,12 @@ i40e_flow_parse_attr(const struct rte_flow_attr *attr,



More information about the stable mailing list