net/iavf: fix RSS when VF port closed
authorSteve Yang <stevex.yang@intel.com>
Fri, 13 Nov 2020 00:46:42 +0000 (00:46 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Nov 2020 18:43:26 +0000 (19:43 +0100)
commit7dd0d9f29f426c7355427a6f1ce439ff84e433e2
tree4eeb66f58748115a74730dffc752b47369213b87
parent84f5a69bba6232feab38ef1ba60981c87c92566d
net/iavf: fix RSS when VF port closed

Check the VF RSS offload flag and ignore relative operation when
iavf hash uninit to avoid reset/close error.

Fixes: 7be10c3004be ("net/iavf: add RSS configuration for VF")
Cc: stable@dpdk.org
Signed-off-by: Steve Yang <stevex.yang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_hash.c