net/i40e: fix flow director rule destroy
authorXiaolong Ye <xiaolong.ye@intel.com>
Mon, 22 Jul 2019 12:06:38 +0000 (20:06 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:36 +0000 (14:31 +0200)
commit4fe1af80dd50bc44ac8ff2f395e8584f305b879c
tree8cd6450ea0b1719084832040b7928bb743a908f9
parent3106ca84dc2de241382461d93d49d5a643145c70
net/i40e: fix flow director rule destroy

We should tear down the fdir when the last flow is destroyed, current
logic is opposite to expected behavior, this patch fixes this issue.

Fixes: 2e67a7fbf3ff ("net/i40e: config flow director automatically")
Cc: stable@dpdk.org
Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/i40e_flow.c