app/testpmd: fix endianness detection
authorThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 3 Dec 2014 20:12:00 +0000 (21:12 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 5 Dec 2014 15:55:00 +0000 (16:55 +0100)
commit44eb94569634c63d789b8a8125e16ed1b92c365c
tree426e1ab161d9d6e1ef5b3492f5cc7b6f75aa78f5
parent72c605807ae855ac64b64a388fe81005336db7c1
app/testpmd: fix endianness detection

Use endianness detection factorized in EAL.

The comment about arpa/inet.h is not valid anymore since
commit d07180f211c08 ("net: fix conflict with libc").

The macro _htons could also be moved in rte_byteorder.h
by providing some constant byte swapping.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>
app/test-pmd/config.c
app/test-pmd/csumonly.c
app/test-pmd/testpmd.h