net/i40e/base: fix PF reset
authorRobin Zhang <robinx.zhang@intel.com>
Sat, 9 Oct 2021 01:39:45 +0000 (01:39 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Sat, 9 Oct 2021 05:21:10 +0000 (07:21 +0200)
commit25829b55b463f7bb0b69af0e63b19121a16d2a63
treeb9e327cb86809d3daecb404be76ae958e779e15b
parentdafd6c6308d441af5a215dc25a7942973c3eda15
net/i40e/base: fix PF reset

PF has to delete all the filters during reset.
If it is fully loaded with filters then it is possible that it will take
more than 200 ms to finish the reset resulting in timeout during pf_reset
and PF reset failed, -15 error indication.

Increasing the timeout value for PF reset from 200 to 1000 to give PF
more time to finish reset if it is loaded with filters.

Fixes: 1e32378f0774 ("i40e/base: increase PF reset max loop limit")
Cc: stable@dpdk.org
Signed-off-by: Sylwester Dziedziuch <sylwesterx.dziedziuch@intel.com>
Signed-off-by: Robin Zhang <robinx.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/base/i40e_common.c