]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: eeprom integrity check on load and empr
authorShannon Nelson <shannon.nelson@intel.com>
Thu, 6 Mar 2014 08:59:58 +0000 (08:59 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 28 Mar 2014 13:53:59 +0000 (06:53 -0700)
commit45f10d6ff8d8134dca9d80b38a04f34f01f4efd9
treeda38f2af1dc5ab5059fcfe115d139d24eb99892c
parentc8ff78ba3e4d98371decba3c98d30fbc5c666602
i40e: eeprom integrity check on load and empr

The driver needs to verify the eeprom checksum and firmware crc status bits,
and shutdown the driver if they fail. This code stops the processing of traffic,
but doesn't kill the PF netdev so that the NVMUpdate process should still have a
chance at fixing the image. The eeprom is checked on driver load and after an
EMP reset, the latter of which should be generated after an NVMUpdate.

Change-ID: I34deef21d2e16bf5a43c603cf8af27e6a29dc9d2
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_main.c