From 90daa647e1926b1cd40ea96050674e87ff31a46d Mon Sep 17 00:00:00 2001 From: Junfeng Guo Date: Thu, 23 Jul 2020 11:10:25 +0000 Subject: [PATCH] net/iavf: disable simple XOR RSS hash function Function simple_xor for AVF RSS is not required currently, thus we just return rte_flow error when the command line has item simple_xor. Signed-off-by: Junfeng Guo Acked-by: Qi Zhang --- drivers/net/iavf/iavf_hash.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/iavf/iavf_hash.c b/drivers/net/iavf/iavf_hash.c index 40bb9dddce..dfc6822984 100644 --- a/drivers/net/iavf/iavf_hash.c +++ b/drivers/net/iavf/iavf_hash.c @@ -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 = -- 2.20.1