From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 604C07CB6 for ; Thu, 30 Nov 2017 18:35:13 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A905D20683; Thu, 30 Nov 2017 12:35:12 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 30 Nov 2017 12:35:12 -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=ysHm5W8j51yUdu3+CHD0CeRnQu 9A2dEt3FqSSGB58O0=; b=agxGcbdcp29nxAf+AqkOz8bJdzzEQtSgdFaBE0WlDo 733S7tO2hIqYyfISZGEUJYsFlKww2Dq3+fnv3XJXjy1OgM6xS51hJ5IZ+xn5vwX5 zB/U5qC8V4CwUrug1N7uG3Q3MXhJhiTGEPlqp2I7IX+4lKM3VE+f/OgeMfNgt9XD 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=ysHm5W 8j51yUdu3+CHD0CeRnQu9A2dEt3FqSSGB58O0=; b=CmGhLIoToOn3A1Iunm1BnV 0oESi3+g9jZ1QiEMFlGJp4JpUt+WXczmNtAEZyH5lmO6MoqzVqTKi6dyGPJhNXhK CDmrQX2+eSw0xA0UFWEuJYvjkesUqwf5n2waDESNuRLR/6iZyEz/OhHnqAGxQAYp 8sd9glBvIJqRBwHy4RQf8rXyZ9eg389lCW01Jq0+vZXdNDtUHjXow7vEirbkN565 OVlptS/yT6vUWhjeee03GESHW1x228ltRN8N8BzsET8oPJd5Ql5DFLX0D+ikHI6c DLNNda3ZPA8/cN3Mei+oAHzMa6bqhJ00cvQfRnSiAvQ2rmdo42Q9SVhuX6QJ0Iag == 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 513E524ED4; Thu, 30 Nov 2017 12:35:12 -0500 (EST) From: Thomas Monjalon To: Stephen Hemminger Cc: Yuanhan Liu , dev@dpdk.org, Adrien Mazarguil , Ciara Loftus , Kevin Traynor , hemant.agrawal@nxp.com Date: Thu, 30 Nov 2017 18:35:11 +0100 Message-ID: <6035648.0D6NuDDM7V@xps> In-Reply-To: <20171130091552.3aa6e46c@xeon-e3> References: <1512027330-30030-1-git-send-email-yliu@fridaylinux.org> <20171130091552.3aa6e46c@xeon-e3> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] [RFC] ether: standardize getting the port by name 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: Thu, 30 Nov 2017 17:35:13 -0000 30/11/2017 18:15, Stephen Hemminger: > Some thoughts. > 1) Not all devices are PCI; look at recent VMBUS Yes, we need a syntax which works for every devices. I suggest to use the prefix "pci:" before the PCI id. We need also a prefix and ids for NXP buses. We could use "vmbus:" before VMBUS ids. How VMBUS ids look like? > 2) The name may have to be set before MAC address is determined on boot. I don't understand this comment. Do you mean MAC may be unknown when starting DPDK? > 3) The names themselves are not persistent or human friendly. This is hard > see the effort udev goes to. Yes udev has a syntax to identify devices. It can be inspiring. Qemu may also be inspiring: https://github.com/qemu/qemu/blob/master/docs/qdev-device-use.txt