net/i40e: fix check of flow director programming status
authorWei Zhao <wei.zhao1@intel.com>
Fri, 13 Jul 2018 03:16:33 +0000 (11:16 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 23 Jul 2018 21:55:26 +0000 (23:55 +0200)
commit7546dc4a1331340ecb665af9af0a005bb8b657c8
treec6d6ac8e65884f5db6f8f8740c41b34dd05e64a0
parent9214ee18eef97709eca481998cf7dca50520896c
net/i40e: fix check of flow director programming status

In i40e FDIR PMD code for checking programming status
function i40e_check_fdir_programming_status(), the initial value
of return value ret should be set to -1 not 0, because if DD bit of
I40E_RX_DESC_STATUS_DD is not write back, this function will return
0 to upper function, this give an error info to upper function, the
fact for this is it is time out for DD write back and it should return
-1.

Fixes: 05999aab4ca6 ("i40e: add or delete flow director")
Cc: stable@dpdk.org
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_fdir.c