net/i40e: fix flush of flow director filter
authorWei Zhao <wei.zhao1@intel.com>
Wed, 29 Apr 2020 02:03:53 +0000 (10:03 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 5 May 2020 13:54:25 +0000 (15:54 +0200)
commit1491f63c75596b01b95355e395dde6795fab3c8b
treeb88f2ef3e15266cc37d5af959236ed9110ce085f
parent5b728485d6bf5cfb1fb0dadb76b518df3575da07
net/i40e: fix flush of flow director filter

When we flush FDIR filter, we can not call i40e_fdir_teardown()
function as it will free vsi used for FDIR, then the vsi->base_queue
will be freed from pf->qp_pool, but vsi->base_queue can only get
once when do dev init in i40e_pf_setup(). If we free it, it will
never be alloc again.

Bugzilla ID: 404
Fixes: 2e67a7fbf3ff ("net/i40e: config flow director automatically")
Cc: stable@dpdk.org
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/i40e_flow.c