[dpdk-dev] Change ether_addr to avoid conflict

Stephen Hemminger stephen at networkplumber.org
Wed Oct 24 18:11:38 CEST 2018


On Wed, 24 Oct 2018 07:35:28 -0500
Lewis Donzis <lew at perftech.com> wrote:

> Please consider changing "struct ether_addr" in rte_ether.h to "struct rte_ether_addr", in order to avoid conflicts with the same structure name /usr/include/net/ethernet.h.
> 
> Sometimes, there is need to include /usr/include/net/ethernet.h, but it conflicts with the same structure name in rte_ether.h.  Was there a reason this structure wasn't given the standard rte_ prefix?
> 
> Thanks,
> lew

Only history, remember EAL was first running on bare metal.

Changing to 'struct rte_ether_addr' breaks source of lots of applications.


More information about the dev mailing list