From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 0337D29D9 for ; Fri, 1 Dec 2017 10:48:03 +0100 (CET) Received: by mail-wm0-f50.google.com with SMTP id f9so2353908wmh.0 for ; Fri, 01 Dec 2017 01:48:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=3tgYgpgXgAAYj13HeDp/Uq2i3dP5Xi0SEi3SwUulPyk=; b=yjaE0Xbs+i2LxxEBarAUE9rF/wmgz7oowVxBD4F+brlom+UOAAeb44cyvOBpbNMZo3 vY7vcoqDdbqIjlsnZVMraCWoewM7c159Lnn5E/P7vbbf5zjRh9R7opdMkG7oishUxB8o fO7LlfgSuXRhYm9+14CTy5JOAid3Pn3flgNI4SZprW0C81bbZpD6YRzI8WQUnmvGVMYL CloS58aXm+PksnIYo6//xAaIBRduOEJrrI1jAwxWsejelUmqHaf5Bw5+PkUVFEziT2yD wCT9WGFayR/1T2z4krq1YI/dDNwPcIMwCYQMjJBz3F8isW/N5OfrjmERTNok9WaRbHEk 0jaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=3tgYgpgXgAAYj13HeDp/Uq2i3dP5Xi0SEi3SwUulPyk=; b=Y2uzPpmouUL9uKTBYYNPmwe0T8Ebkji3EdkiOGxf4HUq7ZplZHRcq8pnslu3peDPSA vvQ2MtEKoKbSQRXOOOfhBkaPFh5ULuT6aNKyHu6cBK0P7bSf/iHoqPscilG+CKFwYHeN RDyxy6ZXNXtutbvNijhfLoFIWeXnKHHWIrS9lt+wpGdj6LiVJdWtrrrdL0WNj3AqEjF/ EbnCH3XezEEMZmoyFKNtXqTM6cfWO+NY1DZ6+T9eMexE+kHZPRoZh+76ChORxrPCfadV lbOvE1XZ3u4yFXt6LOyZ8pYu85La5LLvt4KzkFQ7ztpupK+5+nn1XF9BUiHmL2QTwY9Y J7QQ== X-Gm-Message-State: AKGB3mK6BtirjHrB7mpre1yeZt7Pk0f7LyqHPQpgSws2nfGuXYf+jKdA miOT9dBBsvsy0lBfKBGztAAnng== X-Google-Smtp-Source: AGs4zMbwgTVo50oQlBJh180h5JTpgVAgkMeNCn4d/8ks+YX3siAYFRGJuWPoLHa+P2ApT51ezOV/3Q== X-Received: by 10.28.95.7 with SMTP id t7mr674080wmb.86.1512121683495; Fri, 01 Dec 2017 01:48:03 -0800 (PST) Received: from bidouze.vm.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id 43sm4568706wru.81.2017.12.01.01.48.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Dec 2017 01:48:02 -0800 (PST) Date: Fri, 1 Dec 2017 10:47:50 +0100 From: =?iso-8859-1?Q?Ga=EBtan?= Rivet To: Thomas Monjalon Cc: Stephen Hemminger , Yuanhan Liu , dev@dpdk.org, Adrien Mazarguil , Ciara Loftus , Kevin Traynor , hemant.agrawal@nxp.com Message-ID: <20171201094750.tpsbovk6julcyzrm@bidouze.vm.6wind.com> References: <1512027330-30030-1-git-send-email-yliu@fridaylinux.org> <6035648.0D6NuDDM7V@xps> <20171130132126.13761c50@xeon-e3> <1581666.Z35b0Iulko@xps> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1581666.Z35b0Iulko@xps> User-Agent: NeoMutt/20170113 (1.7.2) 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: Fri, 01 Dec 2017 09:48:04 -0000 On Thu, Nov 30, 2017 at 10:44:58PM +0100, Thomas Monjalon wrote: > 30/11/2017 22:21, Stephen Hemminger: > > On Thu, 30 Nov 2017 18:35:11 +0100 > > Thomas Monjalon wrote: > > > > > 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? > > > rte_devargs are easily accessible, user-readable. Only thing missing would be requiring a 1-1 mapping between an rte_devargs and a port, thus requiring PMDs to have at least one version of a device string that would probe a single port (as is done with port= in mlx4). Implementing an rte_devargs to rte_device in rte_bus is simple enough, and this would allow implementing an rte_devargs to port_id in rte_eth. What am I missing? > > > > 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? > > > > The MAC be known by the hardware, but the device would have to be > > created before using hardware to read it. > > Indeed, it is a problem if we want to use this syntax for blacklist. > > > > > > 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 > -- Gaëtan Rivet 6WIND