]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i40evf: return more useful error information
authorMitch Williams <mitch.a.williams@intel.com>
Thu, 5 Jun 2014 00:09:17 +0000 (00:09 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 26 Jun 2014 11:44:58 +0000 (04:44 -0700)
commit6a8e93db98e36b5b3b8c10b9adae073d6bd1062a
tree9d3765b1b4ca29e0740ad5ebc81ed3743e3d5deb
parente5d17c3ed2cf0485c6b85d783e1d20a8cfad93c1
i40evf: return more useful error information

When verifying the API version (which is the first time the driver
communicates with the firmware and thus the PF driver), there are many
ways in which a failure can occur. There may be an error from the
firmware, there may be unresponsive firmware, there may be an error from
the PF driver, etc, etc.

Make this function return more useful information, instead of just -EIO.
Propagate FW errors back to the caller, and log a message if the PF
sends an invalid reply.

Change-ID: I3e9135a2b80f7acdb855f62f12b2b2668c9a8951
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c