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 <nelio.laranjeiro@6wind.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
This commit is contained in:
parent
8b94494d80
commit
a3783ebf7b
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user