net/i40e/base: refactor NVM update command processing
authorHelin Zhang <helin.zhang@intel.com>
Tue, 24 May 2016 06:22:57 +0000 (14:22 +0800)
committerBruce Richardson <bruce.richardson@intel.com>
Mon, 20 Jun 2016 15:21:49 +0000 (17:21 +0200)
commit5a2e46a3e4054edc630fcd108fb845756a5e6971
tree207c34deaea250ac030efb4025ddddc3b53f8ea7
parentc906def2694236cdea69188974a552bd0124584c
net/i40e/base: refactor NVM update command processing

This patch refactors the NVM update command processing, with adding
a new element of nvm_wait_opcode in struct i40e_hw to indicate
the opcode it waits on, and putting the wait event check into
a function. In addition, that element needs to be initialized
or updated properly.

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/i40e/base/i40e_adminq.c
drivers/net/i40e/base/i40e_nvm.c
drivers/net/i40e/base/i40e_prototype.h
drivers/net/i40e/base/i40e_type.h