net/iavf: fix flow access
authorJeff Guo <jia.guo@intel.com>
Fri, 22 May 2020 02:11:51 +0000 (22:11 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 22 May 2020 15:10:15 +0000 (17:10 +0200)
commit9e03acd726cface8a969b47df181443d99954ef9
tree1322e5d0e24328ed670f82711b00a28228b883eb
parentc9047db4afa8b95bb9ade3ef58c348afcca29cb5
net/iavf: fix flow access

Add invalid flow checking func in iavf generic flow to avoid the error
of "Cannot access memory at address 0xXXXXXX" occur.

When hash init, the default RSS rules would be added, while hash uninit,
the default RSS rules should be deleted. Add the missing part in the
hash uninit process.

Fixes: 5ea614254332 ("net/iavf: fix VF reset for RSS")
Fixes: ff2d0c345c3b ("net/iavf: support generic flow API")

Signed-off-by: Jeff Guo <jia.guo@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
Tested-by: Yuan Peng <yuan.peng@intel.com>
drivers/net/iavf/iavf_generic_flow.c
drivers/net/iavf/iavf_hash.c