[dpdk-dev] [RFC] resolve conflict between net/ethernet.h and rte_ethdev.h
Neil Horman
nhorman at tuxdriver.com
Sun Dec 28 04:48:52 CET 2014
On Sat, Dec 27, 2014 at 03:13:00PM -0800, Stephen Hemminger wrote:
> This is a patch to address the conflict between <net/ethernet.h>
> and the definitions in <rte_ethdev.h>. It has two side effects
> worth discussion:
> 1. It forces inclusion of net/ethernet.h
> 2. It has definition to deal with the differing structure elements
> in the two versions of struct ether_addr.
>
> By doing this ether_ntoa and related functions can be used without
> messing with prototypes.
>
> Alternative is more complex #ifdef magic like linux/libc-compat.h
>
>
This seems like a reasonable fix for the problem, and nasty compat-work
Acked-by: Neil Horman <nhorman at tuxdriver.com>
More information about the dev
mailing list