net/ice: fix RSS type
authorSimei Su <simei.su@intel.com>
Thu, 16 Jul 2020 03:24:54 +0000 (11:24 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jul 2020 16:21:21 +0000 (18:21 +0200)
commit4eafe71ee9526c95dd6785bf37c3f5604c8d745c
treed33e1117b691b19e5d629913ad3b3e39c37e6d5f
parent69d5406d60597de16be0c941b160f405ebb022af
net/ice: fix RSS type

When a RSS rule with only SRC/DST_ONLY or IPV6 prefix RSS type,
it should return failure. Besides, when a RSS rule with symmetric
hash function, the RSS type shouldn't carry with SRC/DST_ONLY.
This patch adds invalid RSS type check for the two cases.

Fixes: 0b952714e9c1 ("net/ice: refactor PF hash flow")

Signed-off-by: Simei Su <simei.su@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_hash.c