]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: add more verbose error messages
authorMitch Williams <mitch.a.williams@intel.com>
Thu, 27 Aug 2015 15:42:35 +0000 (11:42 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:32:23 +0000 (08:32 -0800)
commitde5ad3cbd9a98c832089787fe01c3b6cae755035
tree4fc1c60a2b283225025dee17653dd31ebd5d913e
parent4001a487ce1253330df87ead14592da8c5abac66
i40e: add more verbose error messages

Orabug: 22342532

Under certain circumstances, the device may not have enough resources to
enable all of the VFs that it advertises in config space. Although the
number of supported VFs is reported upon driver init, it is not obvious
when this is different from the number reported in config space. To
eliminate this confusion, add an error message explaining the problem.
Additionally, move the 'Allocating VFs' message down below the error
checks so as to prevent further confusion.

Change-ID: I45b7efca53a7aebf7777be33a8bc9d615ae48ea1
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 96c8d0738aff3ecf3e8b3253fb286685e35d93e6)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c