]> git.baikalelectronics.ru Git - kernel.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)
commit3b1474832978729ed139d26f2631f1358f5437c6
tree9d3765b1b4ca29e0740ad5ebc81ed3743e3d5deb
parent86fb07c8672cedfcb1db65e437b6c2d0921af847
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