From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles (Chas) Williams" <3chas3@gmail.com> Subject: Re: [PATCH v2] devargs: add blacklisting by linux interface name Date: Thu, 05 Nov 2015 11:39:04 -0500 Message-ID: <1446741544.1777.3.camel@gmail.com> References: <1443798007-20122-1-git-send-email-3chas3@gmail.com> <561CFDDB.90601@6wind.com> <1444830094.3494.59.camel@gmail.com> <7145730.ihAL5VqqiH@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Thomas Monjalon Return-path: Received: from mail-qk0-f175.google.com (mail-qk0-f175.google.com [209.85.220.175]) by dpdk.org (Postfix) with ESMTP id 452598DAC for ; Thu, 5 Nov 2015 17:39:06 +0100 (CET) Received: by qkcn129 with SMTP id n129so35119842qkc.1 for ; Thu, 05 Nov 2015 08:39:05 -0800 (PST) In-Reply-To: <7145730.ihAL5VqqiH@xps13> 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 Wed, 2015-11-04 at 23:40 +0100, Thomas Monjalon wrote: > 2015-10-14 09:41, Charles Williams: > > On Tue, 2015-10-13 at 14:49 +0200, Olivier MATZ wrote: > > > For PCI devices that have several interfaces (I think it's the case for > > > some Mellanox boards), maybe we should not store the interface name? > > > > I am not sure what you mean here. If a device has multiple ethernet > > interfaces, then it should a have seperate PCI device address space for > > each interface (I dont know of any DPDK drivers that don't make this > > assumption as well). > > mlx4 and cxgbe? OK, I see now. I don't know of a way to tell if a device has multiple ports just from the pci vendor/device id without maintaining some sort of table. Do these devices have multiple interfaces listed in their /sys/devices/.../net diretory? If so, matching one of the listed interfaces can just blacklist the whole device similar to blacklisting by the device id.