net/atlantic: consider EEPROM get/set offset
authorPavel Belous <pavel.belous@aquantia.com>
Mon, 29 Apr 2019 08:20:15 +0000 (08:20 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:23 +0000 (18:45 +0200)
commit05d5b1d6314caf851dee2a44f6a360e47f7d7a5b
tree50ad4d37b7bfcb695f6d990f8c5edc72a1bac85b
parent185b80738f0507b55b7eaaf351558a941dfab58b
net/atlantic: consider EEPROM get/set offset

EEPROM get/set offset logic should take offset into account.
Data transfers to/from FW should also correctly use
dword based transfer interface, taking into account the
remainder.
We also check error code returned from FW.

Fixes: ce4e8d418097 ("net/atlantic: implement EEPROM get/set")
Cc: stable@dpdk.org
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
drivers/net/atlantic/atl_ethdev.c
drivers/net/atlantic/atl_types.h
drivers/net/atlantic/hw_atl/hw_atl_utils.h
drivers/net/atlantic/hw_atl/hw_atl_utils_fw2x.c