[dpdk-stable] patch 'net/iavf: fix symmetric flow rule creation' has been queued to stable release 20.11.1

luca.boccassi at gmail.com luca.boccassi at gmail.com
Fri Feb 5 12:18:51 CET 2021


Hi,

FYI, your patch has been queued to stable release 20.11.1

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/07/21. 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/5edd02ac74a4103c429da1daccf7309fda11481e

Thanks.

Luca Boccassi

---
>From 5edd02ac74a4103c429da1daccf7309fda11481e Mon Sep 17 00:00:00 2001
From: Xuan Ding <xuan.ding at intel.com>
Date: Fri, 22 Jan 2021 03:19:22 +0000
Subject: [PATCH] net/iavf: fix symmetric flow rule creation

[ upstream commit 3e7ff9d5d80386b9f588f401c91b044ea08a68c5 ]

Only allow to create symmetric rule for L3/L4.

Fixes: 91f27b2e39ab ("net/iavf: refactor RSS")

Signed-off-by: Xuan Ding <xuan.ding at intel.com>
Acked-by: Beilei Xing <beilei.xing at intel.com>
---
 drivers/net/iavf/iavf_hash.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/net/iavf/iavf_hash.c b/drivers/net/iavf/iavf_hash.c
index 27cafdf2b4..72b0117230 100644
--- a/drivers/net/iavf/iavf_hash.c
+++ b/drivers/net/iavf/iavf_hash.c
@@ -869,6 +869,13 @@ iavf_any_invalid_rss_type(enum rte_eth_hash_function rss_func,
 		if (rss_type & (ETH_RSS_L3_SRC_ONLY | ETH_RSS_L3_DST_ONLY |
 		    ETH_RSS_L4_SRC_ONLY | ETH_RSS_L4_DST_ONLY))
 			return true;
+
+		if (!(rss_type &
+		   (ETH_RSS_IPV4 | ETH_RSS_IPV6 |
+		    ETH_RSS_NONFRAG_IPV4_UDP | ETH_RSS_NONFRAG_IPV6_UDP |
+		    ETH_RSS_NONFRAG_IPV4_TCP | ETH_RSS_NONFRAG_IPV6_TCP |
+		    ETH_RSS_NONFRAG_IPV4_SCTP | ETH_RSS_NONFRAG_IPV6_SCTP)))
+			return true;
 	}
 
 	/* check invalid combination */
-- 
2.29.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-02-05 11:18:39.973617016 +0000
+++ 0245-net-iavf-fix-symmetric-flow-rule-creation.patch	2021-02-05 11:18:29.254699641 +0000
@@ -1 +1 @@
-From 3e7ff9d5d80386b9f588f401c91b044ea08a68c5 Mon Sep 17 00:00:00 2001
+From 5edd02ac74a4103c429da1daccf7309fda11481e Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 3e7ff9d5d80386b9f588f401c91b044ea08a68c5 ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org
@@ -18 +19 @@
-index f437fc3170..d8d22f8009 100644
+index 27cafdf2b4..72b0117230 100644
@@ -21 +22 @@
-@@ -927,6 +927,13 @@ iavf_any_invalid_rss_type(enum rte_eth_hash_function rss_func,
+@@ -869,6 +869,13 @@ iavf_any_invalid_rss_type(enum rte_eth_hash_function rss_func,


More information about the stable mailing list