ixgbe: fix data access on big endian cpu
authorXuelin Shi <xuelin.shi@freescale.com>
Wed, 29 Jul 2015 06:38:20 +0000 (14:38 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 30 Jul 2015 00:15:32 +0000 (02:15 +0200)
commit2e49ae79ebb9db4864cdb65bd0a2c021c1da872d
tree5e38d26c884f9e34302b389bdcf77e2ff076575b
parent8d2686c0e47d155c9ddaa7b8ca84214fca0cd65c
ixgbe: fix data access on big endian cpu

1. cpu use data owned by ixgbe must use rte_le_to_cpu_xx(...)
2. cpu fill data to ixgbe must use rte_cpu_to_le_xx(...)
3. checking pci status with converted constant

Signed-off-by: Xuelin Shi <xuelin.shi@freescale.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
drivers/net/ixgbe/ixgbe_rxtx.c