app/testpmd: fix build on FreeBSD
authorMarvin Liu <yong.liu@intel.com>
Tue, 22 Mar 2016 06:50:13 +0000 (14:50 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 25 Mar 2016 18:52:59 +0000 (19:52 +0100)
commitedc845bd53ecd1eea30bb8dd878493f7496f7671
treee4d9ab839ac036984059d5c4d6a462fed856fcb5
parent34c41ec8033e6b0805b475b3a657ad199da9054d
app/testpmd: fix build on FreeBSD

Build log:
/root/dpdk/app/test-pmd/cmdline.c:6687:45: error: no member named
's6_addr32' in 'struct in6_addr'
    rte_be_to_cpu_32(res->ip_value.addr.ipv6.s6_addr32[i]);

This is caused by macro "s6_addr32" not defined on FreeBSD and testpmd
swap big endian parameter to host endian. Move the swap action to i40e
ethdev will fix this issue.

Fixes: 7b1312891b69 ("ethdev: add IP in GRE tunnel")

Signed-off-by: Marvin Liu <yong.liu@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
Tested-by: Bruce Richardson <bruce.richardson@intel.com>
app/test-pmd/cmdline.c
drivers/net/i40e/i40e_ethdev.c