net/iavf: fix VF reset for flow director rule
authorSimei Su <simei.su@intel.com>
Tue, 28 Apr 2020 05:49:19 +0000 (13:49 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 5 May 2020 13:54:25 +0000 (15:54 +0200)
commitada64daa1a5b5745263b4f265f5b927194219e74
treeed7a790ff39776d64631baa94b5f48a4d7320287
parent1491f63c75596b01b95355e395dde6795fab3c8b
net/iavf: fix VF reset for flow director rule

After VF reset, FDIR rule still takes effect. To solve the issue,
this patch adds to flush all flows before flow uninit. VIRTCHNL
sends message to PF by Admin Queue, so flow flush should be implemented
before Admin Queue shut down.

Fixes: ff2d0c345c3b ("net/iavf: support generic flow API")

Signed-off-by: Simei Su <simei.su@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/iavf/iavf_ethdev.c
drivers/net/iavf/iavf_generic_flow.c
drivers/net/iavf/iavf_generic_flow.h