i40e/base: fix error handling of NVM state update
authorHelin Zhang <helin.zhang@intel.com>
Thu, 30 Apr 2015 15:03:18 +0000 (23:03 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 15 May 2015 14:33:15 +0000 (16:33 +0200)
commit2d71e6334820deb82509458bcc52a33ef8b98083
treefdea2d035ae3884a47ccd89628884806147c1da1
parent6b5aaf47d571c4e25910b5a132f3cb7da0d800d0
i40e/base: fix error handling of NVM state update

The state transitions after an error were not managed well, so
these changes get us back to the INIT state or don't transit
out of the INIT state after most errors.

Test report: http://www.dpdk.org/ml/archives/dev/2015-May/017384.html

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Jijiang Liu <jijiang.liu@intel.com>
Tested-by: Min Cao <min.cao@intel.com>
lib/librte_pmd_i40e/i40e/i40e_nvm.c