net/i40e/base: add error state for NVM update state machine
authorJingjing Wu <jingjing.wu@intel.com>
Sat, 10 Dec 2016 11:24:48 +0000 (19:24 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:39:27 +0000 (19:39 +0100)
commitb0fe87e186674b1dd53842c478f5d2d65ae5a734
treea57aaacde3e0ddd98ea9cd6e7fcf7f11b218fc0c
parent482f96aed9b07105a9f50419090657ff86e53af4
net/i40e/base: add error state for NVM update state machine

This patch adds I40E_NVMUPD_STATE_ERROR state for NVM update.
Without this patch driver has no possibility to return NVM image write
failure.This state is being set when ARQ rises error.
arq_last_status is also updated every time when ARQ event comes,
not only on error cases.

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/base/i40e_adminq.c
drivers/net/i40e/base/i40e_nvm.c
drivers/net/i40e/base/i40e_type.h