From a3783ebf7bc35cf13622e09abf12195ec34f7631 Mon Sep 17 00:00:00 2001 From: Nelio Laranjeiro Date: Wed, 11 Jul 2018 08:49:35 +0200 Subject: [PATCH] ethdev: fix flow expansion matching types Node RSS types are generally covering more RSS kind than the user is requesting, it should accept to expand even if only a single bit is remains after masking. Setting the correct RSS kind for the rule remains the driver job. Fixes: 4ed05fcd441b ("ethdev: add flow API to expand RSS flows") Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- lib/librte_ethdev/rte_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ethdev/rte_flow.c b/lib/librte_ethdev/rte_flow.c index 2b13efca73..e06cc21939 100644 --- a/lib/librte_ethdev/rte_flow.c +++ b/lib/librte_ethdev/rte_flow.c @@ -585,7 +585,7 @@ rte_flow_expand_rss(struct rte_flow_expand_rss *buf, size_t size, node = next_node ? &graph[*next_node] : NULL; while (node) { flow_items[stack_pos].type = node->type; - if ((node->rss_types & types) == node->rss_types) { + if (node->rss_types & types) { /* * compute the number of items to copy from the * expansion and copy it. -- 2.20.1