ethdev: fix build with libc ip6 header
authorMark Kavanagh <mark.b.kavanagh@intel.com>
Tue, 9 Dec 2014 17:32:08 +0000 (17:32 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 11 Dec 2014 00:42:02 +0000 (01:42 +0100)
commit18f59001982558896303e59bcd721014f02fbd71
tree061dab6b4c1aa0a52b7506345016867377b9f54b
parent2b039d5f20a34016ecaf9b26f8f8b6c4a81bf4b6
ethdev: fix build with libc ip6 header

The name of the rte_eth_fdir_flow's rte_eth_ipv6_flow attribute,
'ip6_flow', clashes with a macro defined in
/usr/include/netinet/ip6.h, such that when DPDK is linked with an
application that uses the afforementioned header, the macro is
expanded within the DPDK struct, causing a compilation error.

Rename the relevant attribute in DPDK to resolve this.

Signed-off-by: Mark Kavanagh <mark.b.kavanagh@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
app/test-pmd/cmdline.c
lib/librte_ether/rte_eth_ctrl.h
lib/librte_pmd_i40e/i40e_fdir.c