i40e/base: check for AQ timeout
authorHelin Zhang <helin.zhang@intel.com>
Thu, 30 Apr 2015 15:03:17 +0000 (23:03 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 15 May 2015 14:33:15 +0000 (16:33 +0200)
commit5fdf813223e440d87f4ed627107003b4b09323e1
tree4d442eb2d73e5580086272dfa49a831a863b1e7f
parent3b7271f3958a75210c190bd9776034ab477d719f
i40e/base: check for AQ timeout

Decoding the AQ return code is great except when the AQ send timed
out and there's no return code set. This changes the handy decoder
interface to help catch and properly report the condition as an
useful error number rather than returning a misleading '0'.

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_adminq.h
lib/librte_pmd_i40e/i40e/i40e_nvm.c