From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <prvs=536ec0cd7=fc@napatech.com>
Received: from mail02.napatech.com (mail02.napatech.com [188.120.77.119])
 by dpdk.org (Postfix) with ESMTP id 090EE1B1A1
 for <dev@dpdk.org>; Fri,  5 Jan 2018 12:09:32 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=napatech.com; i=@napatech.com; q=dns/txt; s=mar2017;
 t=1515150573; x=1546686573;
 h=from:to:cc:subject:date:message-id:references:
 in-reply-to:content-transfer-encoding:mime-version;
 bh=jD77o4a5pM//O+HrHIPByqjCF2+ohL6fOWPg+QwtdBY=;
 b=pTtTxjHjJb2t5CD2qswajQfLZZRn5g3bHz5F4xR61ay+91I3/rm4lc3y
 qwpoN1xnEqVr4oyiAFwEv5KXn2zEYAgQUKgEn5jzAVUpW3QSeE8uyRn2W
 kZn/XNmrZRoV3IeaGJ+KHY5B3tkMoKXvU9MDhYZM+IBlmv8AKm+PjWHQ8
 XTALjxJo3Sgb90mpqd2XokVmNDeG8vPn5mJF5PM+4YGLlYWj9elTJM/HR
 ueUN3D+pWzz3wDJfAxrzCmbGXjGtjLEf0NiU5Cq5DRGF7F8rzR6YVUEDh
 i51rGyvB7oMYGBWmqbz6TT1Kgu920uDSEKufA0hsGMR/d+gcj8Q1VoxOw g==;
IronPort-PHdr: =?us-ascii?q?9a23=3AQUkp2B+J8gPG1v9uRHKM819IXTAuvvDOBiVQ1KB3?=
 =?us-ascii?q?0uwcTK2v8tzYMVDF4r011RmVBdydtK0P0bKempujcFRI2YyGvnEGfc4EfD4+ou?=
 =?us-ascii?q?JSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgpp?=
 =?us-ascii?q?POT1HZPZg9iq2+yo9JDffxhEiCC/bL5wIxm6sxndvdQKjIV/Lao81gHHqWZSde?=
 =?us-ascii?q?RMwmNoK1OTnxLi6cq14ZVu7Sdete8/+sBZSan1cLg2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=3D=3D?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2HpAgDBW09a/1QB8ApdHAEBAQQBAQoBA?=
 =?us-ascii?q?YU/B584mT8KhTsChHYVAQEBAQEBAQEBAQKBEII4JAGCRwEBAQEDOj8MBAIBCBE?=
 =?us-ascii?q?EAQEfCQcyFAkIAgQOBQi8eIo7AQEBAQEBAQEBAQEBAQEBAQEBAQEehBSDa4UXg?=
 =?us-ascii?q?zCHagWjXJUzlA+WZgICAgIJAhqBPDWBdG8VgmeEV3iIQ4EXAQEB?=
X-IPAS-Result: =?us-ascii?q?A2HpAgDBW09a/1QB8ApdHAEBAQQBAQoBAYU/B584mT8KhTs?=
 =?us-ascii?q?ChHYVAQEBAQEBAQEBAQKBEII4JAGCRwEBAQEDOj8MBAIBCBEEAQEfCQcyFAkIA?=
 =?us-ascii?q?gQOBQi8eIo7AQEBAQEBAQEBAQEBAQEBAQEBAQEehBSDa4UXgzCHagWjXJUzlA+?=
 =?us-ascii?q?WZgICAgIJAhqBPDWBdG8VgmeEV3iIQ4EXAQEB?=
Received: from cph-gen-exch02.napatech.com (10.240.1.84) by
 cph-gen-exch02.napatech.com (10.240.1.84) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id
 15.1.1034.26; Fri, 5 Jan 2018 12:09:31 +0100
Received: from cph-gen-exch02.napatech.com ([fe80::581:51a1:ac3f:84e]) by
 cph-gen-exch02.napatech.com ([fe80::581:51a1:ac3f:84e%12]) with mapi id
 15.01.1034.026; Fri, 5 Jan 2018 12:09:31 +0100
From: Finn Christensen <fc@napatech.com>
To: Thomas Monjalon <thomas@monjalon.net>
CC: "dev@dpdk.org" <dev@dpdk.org>, Yuanhan Liu <yliu@fridaylinux.org>, "Adrien
 Mazarguil" <adrien.mazarguil@6wind.com>, Ciara Loftus
 <ciara.loftus@intel.com>, Kevin Traynor <ktraynor@redhat.com>,
 "stephen@networkplumber.org" <stephen@networkplumber.org>,
 "ferruh.yigit@intel.com" <ferruh.yigit@intel.com>
Thread-Topic: [dpdk-dev] standardize device identification
Thread-Index: AQHTed5wRSh3eSywGUykeeHF0l5SaqNj3zuAgAEdtQCAAB7lgA==
Date: Fri, 5 Jan 2018 11:09:31 +0000
Message-ID: <c4e698540a754f6a830621ef0a859712@napatech.com>
References: <1512027330-30030-1-git-send-email-yliu@fridaylinux.org>
 <7044959.u7szEIarlR@xps> <cdaa0102074d4b15afe5be06ed577192@napatech.com>
 <3183370.0ufOrFygau@xps>
In-Reply-To: <3183370.0ufOrFygau@xps>
Accept-Language: da-DK, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.240.10.239]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
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 <dev.dpdk.org>
List-Unsubscribe: <https://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jan 2018 11:09:33 -0000


    -----Original Message-----
    From: Thomas Monjalon [mailto:thomas@monjalon.net]
    Sent: 5. januar 2018 09:40
    To: Finn Christensen <fc@napatech.com>
    Cc: dev@dpdk.org; Yuanhan Liu <yliu@fridaylinux.org>; Adrien Mazarguil
    <adrien.mazarguil@6wind.com>; Ciara Loftus <ciara.loftus@intel.com>;
    Kevin Traynor <ktraynor@redhat.com>; 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