From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 965381B03D for ; Fri, 5 Jan 2018 16:34:25 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 2A70B219F3; Fri, 5 Jan 2018 10:34:25 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 05 Jan 2018 10:34:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=dPo/G8WdRfEdq2XhfmWgDUOd0q 40Ua1GDNg6tApzihs=; b=FqGX2JIYd3EpOWkx2LLaMNPBET0NWMbgUUfrpVK8zK Q1Q70a40qQGYggnwE5w+HTgv99k2HeeTKAXWJ17Hb4Xx+B4Yx2L64Gay+j98oj+p 7eId4XHrItXm25OaDS1YdDI5R261CD0nKJ+DKHShCj6yhEXZFd+6q7nfOurd4gFW A= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=dPo/G8 WdRfEdq2XhfmWgDUOd0q40Ua1GDNg6tApzihs=; b=YTKoWnaK8BpIIfVH7yC3hu Daou6Th2WWe0nExPW6myTue9wXCA9yMES10/aK6M46DkiW9Do8Q6FBh3xbw4CSgs slmcyx+4XfmfIjSjkHHQhHOdI7u0M7XFerRikKLLFb4t1URK56HnDSeFCOXqhlPt cVmrXXHuUSJj4ombnIcmfF6ewclgFi8HOpx7o2ea1BYzsUcE9YkcrAFYbLKeGcDX 2MuDKhcmetSLI15EY3CQtZ6nPAk5JERO6+OFoD/sitCutiPLwfHwupasc9MLCQ9W MSRp0wNexGdyppMGOXvO7WMslr1gfYnf5P1KM0dh3mVDfA6pfytvJFvTTh1o/wwA == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id D3E1F24599; Fri, 5 Jan 2018 10:34:24 -0500 (EST) From: Thomas Monjalon To: Finn Christensen Cc: "dev@dpdk.org" , Yuanhan Liu , Adrien Mazarguil , Ciara Loftus , Kevin Traynor , "stephen@networkplumber.org" , "ferruh.yigit@intel.com" Date: Fri, 05 Jan 2018 16:34:03 +0100 Message-ID: <40957417.C216t4nj8c@xps> In-Reply-To: References: <1512027330-30030-1-git-send-email-yliu@fridaylinux.org> <2746853.LkVxvJSmNi@xps> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] standardize device identification X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jan 2018 15:34:25 -0000 05/01/2018 15:14, Finn Christensen: > From: Thomas Monjalon [mailto:thomas@monjalon.net] > >05/01/2018 12:09, Finn Christensen: > >> From: Thomas Monjalon > >> Which property can help to distinguish Napatech ports? > >> Can you use class=eth,dev_port=X ? > >> The dev_port property will use /sys/class/net/DEV/dev_port on Linux. Is it > >> OK for you? > >> > >> Actually, what we were thinking of was using the mac property in the > >> class category to distinguish our ports. > >> For instance: > >> -w bus=pci,id=0000:01:00.0/class=eth,mac=00:11:22:33:44:55 > >> or simply: > >> -w class=eth,mac=00:11:22:33:44:55 > > > >The problem with the mac property is that it cannot be used for > >white/blacklisting in DPDK because the MAC is not known before port > >initialization. > > > > Sure, that makes sense. I just for a minute thought that we could use that > mechanism to enable individual ports at startup also. We will continue to > use proprietary devargs passed by whiterlist to the PMD probe function. > What we needed was a way to select the individual ports, by using > rte_eth_dev_get_port_by_name(). The whitelist will be replaced by this new syntax. And yes, you can have your own driver-specific property with this syntax. > >> We will not be able to support the dev_port property, that will not work for > >us. > >> At least not for now. It leads to a totally different question: Can we discuss again how to integrate your driver in DPDK upstream? Please explain again your situation in a new thread.