]> git.baikalelectronics.ru Git - kernel.git/commit
i40evf: make early init sequence even more robust
authorMitch Williams <mitch.a.williams@intel.com>
Thu, 13 Nov 2014 03:06:12 +0000 (03:06 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 6 Dec 2014 12:13:40 +0000 (04:13 -0800)
commit8e505cf18b2e2f6af77cdb3bf980688fc3aedc68
treeba27cdee995b3520b0ece0aaad3e87a63f7806fa
parentf1fa0c3a43a05f7cbc175f750642f8ad4d6989ca
i40evf: make early init sequence even more robust

When multiple VFs attempt to initialize simultaneously, the firmware may
delay or drop messages. Make the init code more adept at handling these
situations by a) reinitializing the admin queue if the firmware fails to
process a request, and b) resending a request if the PF doesn't answer.

Once the request has been sent again, the PF might end up getting both
requests and send the configuration information to the driver twice.
This will cause the VF to complain about receiving an unexpected message
from the PF. Since this is not fatal, reduce the warning level of the
log messages that are generated in response to this event.

Change-ID: I9370a1a2fde2ad3934fa25ccfd0545edfbbb4805
Signed-off-by: Mitch Williams <mitch.a.williams@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/i40evf/i40evf_main.c
drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c