From mboxrd@z Thu Jan 1 00:00:00 1970 From: Finn Christensen Subject: Re: standardize device identification Date: Fri, 5 Jan 2018 11:09:31 +0000 Message-ID: References: <1512027330-30030-1-git-send-email-yliu@fridaylinux.org> <7044959.u7szEIarlR@xps> <3183370.0ufOrFygau@xps> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" , Yuanhan Liu , "Adrien Mazarguil" , Ciara Loftus , Kevin Traynor , "stephen@networkplumber.org" , "ferruh.yigit@intel.com" To: Thomas Monjalon Return-path: Received: from mail02.napatech.com (mail02.napatech.com [188.120.77.119]) by dpdk.org (Postfix) with ESMTP id 090EE1B1A1 for ; Fri, 5 Jan 2018 12:09:32 +0100 (CET) In-Reply-To: <3183370.0ufOrFygau@xps> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" -----Original Message----- From: Thomas Monjalon [mailto:thomas@monjalon.net] Sent: 5. januar 2018 09:40 To: Finn Christensen Cc: dev@dpdk.org; Yuanhan Liu ; Adrien Mazarguil ; Ciara Loftus ; Kevin Traynor ; stephen@networkplumber.org; ferruh.yigit@intel.com Subject: Re: [dpdk-dev] standardize device identification =20 05/01/2018 08:52, Finn Christensen: > From: Thomas > > It may look like this: > > > > bus=3DBUS_NAME,id=3DBUS_ID/class=3DCLASS_NAME,dev_port=3DPORT_NUM, > > mac=3DMAC_ADDRESS/driver=3DDRIVER_NAME,driverspecificproperty=3DVALUE [...] > We also need to distinguish between multiple ports sitting on same PC= I bus ID. > and from our point of view, this will fully cover our needs. =20 Which property can help to distinguish Napatech ports? Can you use class=3Deth,dev_port=3DX ? 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= =20 category to distinguish our ports. For instance:=20 -w bus=3Dpci,id=3D0000:01:00.0/class=3Deth,mac=3D00:11:22:33:44:55 or simply: -w class=3Deth,mac=3D00:11:22:33:44:55 We will not be able to support the dev_port property, that will not work fo= r us. At least not for now. Regards, Finn