i40e/base: handle AQ timeout when releasing NVM
authorJingjing Wu <jingjing.wu@intel.com>
Sun, 6 Sep 2015 07:11:46 +0000 (15:11 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 1 Oct 2015 23:35:21 +0000 (01:35 +0200)
commit3ed6c3246f432993afcdbd8148b4c5d91303bc21
treed7551b48fbe176982bdd9e8084609a9b7981cd2f
parentf766d82b1e1fe4d68f7ac046fa011cc2782ffe04
i40e/base: handle AQ timeout when releasing NVM

There are some rare cases where the release resource call will return an
admin Q timeout. In these cases the code needs to try to release the
resource again until it succeeds or it times out.

Also add little endian conversion for checksum

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
Tested-by: Huilong Xu <huilongx.xu@intel.com>
drivers/net/i40e/base/i40e_nvm.c