net/i40e/base: add byte swaps in PHY register access
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 9 Jan 2018 20:30:04 +0000 (15:30 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit552ac471f14095f59f48435e618ca2eaf72b9c3e
tree2e9b6a3b082de2a350520f03685f84db83ac0618
parent466eec7d6b1a8f56897aea61e531b7cc1d089909
net/i40e/base: add byte swaps in PHY register access

Add byte swap commandwhen transferring data between memory and firmware
while using PHY register access functions. Endianness also need to be
handled correctly during these swaps.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/base/i40e_adminq_cmd.h
drivers/net/i40e/base/i40e_common.c