net/iavf: fix conflicting RSS combination rules
authorMurphy Yang <murphyx.yang@intel.com>
Thu, 7 Jan 2021 09:17:10 +0000 (09:17 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 13 Jan 2021 17:51:58 +0000 (18:51 +0100)
commit653b88893b75cc5d1cd5edcc8eb7813e8dfbb21d
treef90933a8c3ac1fa2940a2c9d0d55f43375d8fd94
parent7d1a4d2fb6bbf6600c61520c0f5a843cb1357e29
net/iavf: fix conflicting RSS combination rules

Currently, when use 'flow' command to create a rule with following
invalid RSS type combination, it can be created successfully.

Invalid RSS combinations list:
 - ETH_RSS_IPV4 | ETH_RSS_NONFRAG_IPV4_TCP
 - ETH_RSS_IPV6 | ETH_RSS_NONFRAG_IPV6_TCP

This patch adds these combinations in 'invalid_rss_comb' array to do
valid check, if the combination check failed, the rule will be created
unsuccessful.

Fixes: 91f27b2e39ab ("net/iavf: refactor RSS")
Cc: stable@dpdk.org
Signed-off-by: Murphy Yang <murphyx.yang@intel.com>
Acked-by: Jeff Guo <jia.guo@intel.com>
drivers/net/iavf/iavf_hash.c