net/i40e/base: improve the polling mechanism
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 25 Sep 2018 02:34:29 +0000 (10:34 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 11 Oct 2018 16:53:47 +0000 (18:53 +0200)
commit54f4a22dc1731ef32760eb3a13f7d5a2e889650b
tree4b74e3dcfd880437408b000341dbfa7cd85cf679
parent2f4f2af37defd1eb32d453d78a2c4cfcc3baba04
net/i40e/base: improve the polling mechanism

This patch fixes the polling mechanism of GLGEN_RSTAT.DEVSTATE
in the PF Reset path when Global Reset is in progress.
While the driver is polling for the end of the PF Reset and
the Global Reset is triggered, abandon the PF Reset path and
prepare for the upcoming Global Reset.

Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/base/i40e_common.c