From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v2] devargs: add blacklisting by linux interface name Date: Tue, 6 Oct 2015 08:35:55 +0100 Message-ID: <20151006083555.72293697@uryu.home.lan> References: <1443798007-20122-1-git-send-email-3chas3@gmail.com> <1444058768-9208-1-git-send-email-3chas3@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Chas Williams <3chas3@gmail.com> Return-path: Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by dpdk.org (Postfix) with ESMTP id BE5A35A1F for ; Tue, 6 Oct 2015 09:36:02 +0200 (CEST) Received: by pacfv12 with SMTP id fv12so206417855pac.2 for ; Tue, 06 Oct 2015 00:36:02 -0700 (PDT) In-Reply-To: <1444058768-9208-1-git-send-email-3chas3@gmail.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, 5 Oct 2015 11:26:08 -0400 Chas Williams <3chas3@gmail.com> wrote: > diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h > index 83e3c28..852c149 100644 > --- a/lib/librte_eal/common/include/rte_pci.h > +++ b/lib/librte_eal/common/include/rte_pci.h > @@ -161,6 +161,7 @@ struct rte_pci_device { > struct rte_pci_resource mem_resource[PCI_MAX_RESOURCE]; /**< PCI Memory Resource */ > struct rte_intr_handle intr_handle; /**< Interrupt handle */ > struct rte_pci_driver *driver; /**< Associated driver */ > + char name[32]; Why not use IFNAMSIZ rather than magic constant here?