net/i40e/base: fix reading LLDP configuration
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 9 Jan 2018 20:30:19 +0000 (15:30 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commitb692c7e0049b4834f57fe17d448eb095b9804512
tree2a31715a25fdd115d67801d32d3466ca62ece592
parentbc29754abacd0b2f61195736374d275552d3a518
net/i40e/base: 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.

Fixes: 8db9e2a1b232 ("i40e: base driver")
CC: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/base/i40e_dcb.c
drivers/net/i40e/base/i40e_type.h