From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: Change ether_addr to avoid conflict Date: Wed, 24 Oct 2018 09:11:38 -0700 Message-ID: <20181024091138.132d78c5@xeon-e3> References: <905F0B17-2987-4847-A054-C94501ACBC2D@perftech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Lewis Donzis Return-path: Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id 75739683E for ; Wed, 24 Oct 2018 18:13:26 +0200 (CEST) Received: by mail-pg1-f196.google.com with SMTP id a5-v6so1647497pgt.13 for ; Wed, 24 Oct 2018 09:13:26 -0700 (PDT) In-Reply-To: <905F0B17-2987-4847-A054-C94501ACBC2D@perftech.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, 24 Oct 2018 07:35:28 -0500 Lewis Donzis 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.