]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: check for AQ timeout in aq_rc decode
authorShannon Nelson <shannon.nelson@intel.com>
Thu, 13 Nov 2014 08:23:22 +0000 (08:23 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 9 Dec 2014 20:57:04 +0000 (12:57 -0800)
commit668409e0b05e24d61deb1a04cc7c70c37335bdf0
tree1c705f13b07dec9c4834b990c80c5e29805dd1f8
parent521c27a670ad4b212a4aa99084ae8432ef9497c3
i40e: check for AQ timeout in aq_rc decode

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 a useful
errno rather than returning a misleading '0'.

Change-ID: I07a1f94f921606da49ffac7837bcdc37cd8222eb
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Acked-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_adminq.h
drivers/net/ethernet/intel/i40e/i40e_nvm.c
drivers/net/ethernet/intel/i40evf/i40e_adminq.h