]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: fix reading LLDP configuration
authorMariusz Stachura <mariusz.stachura@intel.com>
Fri, 20 Apr 2018 08:41:34 +0000 (01:41 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 30 Apr 2018 16:12:33 +0000 (09:12 -0700)
commit5da35c5f6ff4f64da94507380ae0ab67f8976aed
tree0eaa8a0ddefb40e562d312cdb50d232b74e0f406
parent8f98ec6d05ebc6004c7c81a47b429a77cc5cf349
i40e: fix reading LLDP configuration

Previous method for reading LLDP config was based on hard-coded
offsets. It happened to work, because of structured architecture of
the NVM memory. In the new approach, known as FLAT, we need to
calculate the absolute address, instead of using relative values.
Needed defines for memory location were added.

Signed-off-by: Mariusz Stachura <mariusz.stachura@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_dcb.c
drivers/net/ethernet/intel/i40e/i40e_type.h
drivers/net/ethernet/intel/i40evf/i40e_type.h