]> git.baikalelectronics.ru Git - kernel.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)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 8 Oct 2015 22:08:04 +0000 (15:08 -0700)
commit9c8757e8fbdd5d07d638367b8cc43cb45db99f4c
treebc0bff2dfdcdb335f6cc2ae172bbad21bf2638c7
parent90d598758ecc0529132a46a2e991ce06fd0b8f64
i40e: add more verbose error messages

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>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c