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)
commit6334f2432fdf5d5252850ff2eebbaa00232f6ab9
tree0eaa8a0ddefb40e562d312cdb50d232b74e0f406
parentf5254429e1756ad7fede0249c9b779e37b6c967f
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