public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
* [PATCH] net/ice: fix rss simple_xor hash function
@ 2026-03-09  2:32 Anurag Mandal
  2026-03-09 10:19 ` Burakov, Anatoly
  2026-03-17 10:32 ` [PATCH v2] net/ice: fix RSS hash function implementation Anurag Mandal
  0 siblings, 2 replies; 9+ messages in thread
From: Anurag Mandal @ 2026-03-09  2:32 UTC (permalink / raw)
  To: dev; +Cc: bruce.richardson, anatoly.burakov, alex.chapman, Anurag Mandal,
	stable

RSS Simple XOR hash function is supported by the NIC
as per datasheet & also in ICE Linux Ethernet kernel
driver but the same is not enabled in ICE PMD even
though code support is already present.

This patch fixes the issue by removing the simple_xor
check & adding proper error log for empty argument.

Bugzilla ID: 1518
Fixes: 0b952714e9c1 ("net/ice: refactor PF hash flow")
Cc: stable@dpdk.org

Signed-off-by: Anurag Mandal <anurag.mandal@intel.com>
---
 drivers/net/intel/ice/ice_hash.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/drivers/net/intel/ice/ice_hash.c b/drivers/net/intel/ice/ice_hash.c
index 77829e607b..d57b5ee0e4 100644
--- a/drivers/net/intel/ice/ice_hash.c
+++ b/drivers/net/intel/ice/ice_hash.c
@@ -1109,12 +1109,11 @@ ice_hash_parse_action(struct ice_pattern_match_item *pattern_match_item,
 			rss_type = rss->types;
 
 			/* Check hash function and save it to rss_meta. */
-			if (pattern_match_item->pattern_list !=
-			    pattern_empty && rss->func ==
-			    RTE_ETH_HASH_FUNCTION_SIMPLE_XOR) {
-				return rte_flow_error_set(error, ENOTSUP,
+			if (pattern_match_item->pattern_list ==
+			    pattern_empty) {
+				return rte_flow_error_set(error, EINVAL,
 					RTE_FLOW_ERROR_TYPE_ACTION, action,
-					"Not supported flow");
+					"Invalid empty argument");
 			} else if (rss->func ==
 				   RTE_ETH_HASH_FUNCTION_SIMPLE_XOR){
 				rss_meta->hash_function =
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-03-23 17:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-09  2:32 [PATCH] net/ice: fix rss simple_xor hash function Anurag Mandal
2026-03-09 10:19 ` Burakov, Anatoly
2026-03-09 11:17   ` Mandal, Anurag
2026-03-09 11:48     ` Burakov, Anatoly
2026-03-09 13:26       ` Medvedkin, Vladimir
2026-03-16 11:10         ` Mandal, Anurag
2026-03-17 10:32 ` [PATCH v2] net/ice: fix RSS hash function implementation Anurag Mandal
2026-03-23 10:13   ` Mandal, Anurag
2026-03-23 17:55   ` Medvedkin, Vladimir

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox