]> 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)
commit7f1a5341ff5ea38bb727237913bd7d45f4882b0a
treeda38f2af1dc5ab5059fcfe115d139d24eb99892c
parentf96331156ab75fc2b7bc447e9b13f1d5b3f0889d
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