e1000: fix big endian access
authorXuelin Shi <xuelin.shi@freescale.com>
Thu, 12 Feb 2015 01:26:52 +0000 (09:26 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 20 Feb 2015 10:44:52 +0000 (11:44 +0100)
commit89626cb570bcd43fc4da9f5cb0949aaef25bd6ce
treecb4ac9966e7b38fe2ad06098a491b8642cec2700
parenta8c50a37b3ffd78138702325a2e04ca5cc386c4d
e1000: fix big endian access

e1000 is little endian, but cpu maybe not.
add necessary conversions.

rte_cpu_to_le_32(...) for PCI write
rte_le_to_cpu_32(...) for PCI read.

Signed-off-by: Xuelin Shi <xuelin.shi@freescale.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_pmd_e1000/e1000/e1000_osdep.h