net/iavf: disable function simple xor for AVF RSS
PATCH 1/1 net/iavf: disable function simple xor for AVF RSS
Function simple_xor for AVF RSS is not required currently, thus we just return rte_flow error when the commandline has item simple_xor.
Signed-off-by Junfeng Guo <[email protected]>
--- drivers/net/iavf/iavf_hash.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/iavf/iavf_hash.c +3 -0
@@ -4160,6 +4160,9 @@ iavf_hash_parse_action(const struct rte_flow_action actions[], RTE_ETH_HASH_FUNCTION_SIMPLE_XOR){ rss_meta->rss_algorithm =VIRTCHNL_RSS_ALG_XOR_ASYMMETRIC ; +return rte_flow_error_set (error,ENOTSUP , +RTE_FLOW_ERROR_TYPE_ACTION , action, +"function simple_xor is not supported" ); } else if (rss->func ==RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ ) { rss_meta->rss_algorithm =
Signature · 1 line
2.25.1
Quoted 10 lines
-----Original Message-----
From: Guo, Junfeng <[email protected]>
Sent: Thursday, July 23, 2020 7:10 PM
To: Zhang, Qi Z <[email protected]>; Xing, Beilei <[email protected]>
Cc: [email protected]; Guo, Jia <[email protected]>; Guo, Junfeng <[email protected]>; Su, Simei <[email protected]>
Subject: [PATCH] net/iavf: disable function simple xor for AVF RSS
Quoted 4 lines
Function
simple_xorfor AVF RSS is not required currently, thus we just returnrte_flowerror when the commandline has itemsimple_xor.Signed-off-by Junfeng Guo <[email protected]>
Acked-by Qi Zhang <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi