net/ice: correct RSS types check error
PATCH 1/1 net/ice: correct RSS types check error
This patch corrects logic error for checking rss->types to match pattern in RSS action parser.
--- drivers/net/ice/ice_hash.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/net/ice/ice_hash.c +7 -7
@@ -315,13 +315,13 @@ struct ice_hash_match_type ice_hash_type_list[] = {/* Check if rss types match pattern. */ if (rss->func !=RTE_ETH_HASH_FUNCTION_SIMPLE_XOR ) { -if (((rss_hf Ð_RSS_IPV4 ) != m->eth_rss_hint) || - ((rss_hf Ð_RSS_NONFRAG_IPV4_UDP ) != m->eth_rss_hint) || - ((rss_hf Ð_RSS_NONFRAG_IPV4_TCP ) != m->eth_rss_hint) || - ((rss_hf Ð_RSS_NONFRAG_IPV4_SCTP ) != m->eth_rss_hint) || - ((rss_hf Ð_RSS_IPV6 ) != m->eth_rss_hint) || - ((rss_hf Ð_RSS_NONFRAG_IPV6_UDP ) != m->eth_rss_hint) || - ((rss_hf Ð_RSS_NONFRAG_IPV6_TCP ) != m->eth_rss_hint) || +if (((rss_hf Ð_RSS_IPV4 ) != m->eth_rss_hint) && + ((rss_hf Ð_RSS_NONFRAG_IPV4_UDP ) != m->eth_rss_hint) && + ((rss_hf Ð_RSS_NONFRAG_IPV4_TCP ) != m->eth_rss_hint) && + ((rss_hf Ð_RSS_NONFRAG_IPV4_SCTP ) != m->eth_rss_hint) && + ((rss_hf Ð_RSS_IPV6 ) != m->eth_rss_hint) && + ((rss_hf Ð_RSS_NONFRAG_IPV6_UDP ) != m->eth_rss_hint) && + ((rss_hf Ð_RSS_NONFRAG_IPV6_TCP ) != m->eth_rss_hint) && ((rss_hf Ð_RSS_NONFRAG_IPV6_SCTP ) != m->eth_rss_hint)) return rte_flow_error_set(error, ENOTSUP, RTE_FLOW_ERROR_TYPE_ACTION,
Signature · 1 line
1.8.3.1
Quoted 11 lines
-----Original Message-----
From: Su, Simei <[email protected]>
Sent: Wednesday, October 30, 2019 10:50 AM
To: Zhang, Qi Z <[email protected]>; Xing, Beilei <[email protected]>; Yang, Qiming <[email protected]>
Cc: [email protected]; Ye, Xiaolong <[email protected]>; Su, Simei <[email protected]>; [email protected]
Subject: [PATCH] net/ice: correct RSS types check error
Quoted 5 lines
This patch corrects logic error for checking
rss->typesto match pattern in RSS action parser.Fixes 5ad3db8d4bdd ("net/ice: enable advanced RSS")
No need to cc stable, if fix on the current release.
Quoted 2 lines
Signed-off-by Simei Su <[email protected]>
Quoted 39 lines · Simei Su
This patch corrects logic error for checking
rss->typesto match pattern in RSS action parser.Fixes 5ad3db8d4bdd ("net/ice: enable advanced RSS")Signed-off-by Simei Su <[email protected]>---
drivers/net/ice/ice_hash.c| 14 +++++++-------1 file changed, 7 insertions(+), 7 deletions(-)drivers/net/ice/ice_hash.c +7
-7@@ -315,13 +315,13 @@ struct ice_hash_match_type ice_hash_type_list[] = {/* Check if rss types match pattern. */ if (rss->func !=RTE_ETH_HASH_FUNCTION_SIMPLE_XOR ) { -if (((rss_hf Ð_RSS_IPV4 ) != m->eth_rss_hint) || - ((rss_hf Ð_RSS_NONFRAG_IPV4_UDP ) != m->eth_rss_hint) || - ((rss_hf Ð_RSS_NONFRAG_IPV4_TCP ) != m->eth_rss_hint) || - ((rss_hf Ð_RSS_NONFRAG_IPV4_SCTP ) != m->eth_rss_hint) || - ((rss_hf Ð_RSS_IPV6 ) != m->eth_rss_hint) || - ((rss_hf Ð_RSS_NONFRAG_IPV6_UDP ) != m->eth_rss_hint) || - ((rss_hf Ð_RSS_NONFRAG_IPV6_TCP ) != m->eth_rss_hint) || +if (((rss_hf Ð_RSS_IPV4 ) != m->eth_rss_hint) && + ((rss_hf Ð_RSS_NONFRAG_IPV4_UDP ) != m->eth_rss_hint) && + ((rss_hf Ð_RSS_NONFRAG_IPV4_TCP ) != m->eth_rss_hint) && + ((rss_hf Ð_RSS_NONFRAG_IPV4_SCTP ) != m->eth_rss_hint) && + ((rss_hf Ð_RSS_IPV6 ) != m->eth_rss_hint) && + ((rss_hf Ð_RSS_NONFRAG_IPV6_UDP ) != m->eth_rss_hint) && + ((rss_hf Ð_RSS_NONFRAG_IPV6_TCP ) != m->eth_rss_hint) && ((rss_hf Ð_RSS_NONFRAG_IPV6_SCTP ) != m->eth_rss_hint)) return rte_flow_error_set(error, ENOTSUP, RTE_FLOW_ERROR_TYPE_ACTION,Signature · 1 line
1.8.3.1
Applied to dpdk-next-net-intel. Thanks.