From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f42.google.com (mail-pg0-f42.google.com [74.125.83.42]) by dpdk.org (Postfix) with ESMTP id 99E561AEF4 for ; Thu, 30 Nov 2017 22:21:34 +0100 (CET) Received: by mail-pg0-f42.google.com with SMTP id b18so3525982pgv.10 for ; Thu, 30 Nov 2017 13:21:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iyTy0dADqpNGUiVlGex5bkduFxbzFIUpBQELa7iqd6c=; b=ESl3mHHuWom/xIDozkEgw30bafv/l9s2ndSumQjhC/fIZ4V2NZSgzKaYwzSdl6+N2o B6gCGi+il89H1qcQY3s01uCqpdvWaI4wSACy/qb1EA0PiDaRezQanhgkHt2elBW36tjW fiIzljYJHeKmaE3CsIaDcj20CcpwmEeHWfE2ECDL//Eo+rH/CCceJeDCL9Uw5RE7OLUn yjJZ6cyc2EDhA/HtPUd6kim4OP7S9bAHIPWAEsq2yqxtInu+iq5HhQW5d1zqg/KQdd3+ hZN6IUqVAFmy8NrBZh3Au1dJ2CSpXhRimkAB3q7TrLSvhVFJs792ywjfLTB5FOI1z0YW CphA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=iyTy0dADqpNGUiVlGex5bkduFxbzFIUpBQELa7iqd6c=; b=qYlzMZSnHOnMXJB6aFD4GYUqYvPIWdzRkeEMprQb3/CCKXGVDRJ7x94QTPNAQps2kO YpGN8CawdcHGjTgyUFXaEswrVJtOb0aMDmRkPscm6xmeyhpTBc5fptuRFXacie9b/F3l VIn6nvPsTJjy36PORu5bHUllbKo6D2twERRYOmGLjzoV4JHek3z6WVXkJ/u7iSNs36v4 wN24469R/ZnxfqV8TR4E8ZFKNjGJHDSEzW9Pacm0w/Jhb+qExXCZpsshXVhA8hjIkxOo 5k10ZomTWX72joBVNs0Zd4cmxWXViw6ZmHD3blF4sPOLmMtGQEsNgP74UrtzSAOruGar 4W/g== X-Gm-Message-State: AJaThX7ctbADxVVIexAp5GHUlKjiK5gpMz2xxdmLtQz6G0ts3OdrEy8P Vd4gZiV6fFeURazlJL70dUmLqi6DRUo= X-Google-Smtp-Source: AGs4zMbkoTzvlTPQAmJ/9O8EitwCLxwBl5AqfpIFoREE8bxcNHxy9eXZOtfyilOvRnpEKXrrWV9Thg== X-Received: by 10.99.125.16 with SMTP id y16mr3671452pgc.417.1512076893754; Thu, 30 Nov 2017 13:21:33 -0800 (PST) Received: from xeon-e3 (76-14-207-240.or.wavecable.com. [76.14.207.240]) by smtp.gmail.com with ESMTPSA id y7sm9171616pfy.144.2017.11.30.13.21.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Nov 2017 13:21:33 -0800 (PST) Date: Thu, 30 Nov 2017 13:21:26 -0800 From: Stephen Hemminger To: Thomas Monjalon Cc: Yuanhan Liu , dev@dpdk.org, Adrien Mazarguil , Ciara Loftus , Kevin Traynor , hemant.agrawal@nxp.com Message-ID: <20171130132126.13761c50@xeon-e3> In-Reply-To: <6035648.0D6NuDDM7V@xps> References: <1512027330-30030-1-git-send-email-yliu@fridaylinux.org> <20171130091552.3aa6e46c@xeon-e3> <6035648.0D6NuDDM7V@xps> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 21:21:34 -0000 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? > > > 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. > > > 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