From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.napatech.com (mail02.napatech.com [188.120.77.119]) by dpdk.org (Postfix) with ESMTP id E404C1B16F for ; Fri, 5 Jan 2018 15:14:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=napatech.com; i=@napatech.com; q=dns/txt; s=mar2017; t=1515161671; x=1546697671; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=I9TBBY5KE/E+ZSmL5I71s6gM/KuQetmvj8M2SMOEz5o=; b=I6tx1m4zF7RrXbhXH//cBb/Vcwhgnb2KQ5YTfHGYGk9nDXfQ6E9ycl1i iirMDDwIUnNA9Jx9Q10FxcEswaElB4MW32JmCdfe7Zq1MJ/bOr96TPKUB FUVhtuMDO9OT7IWa/1K/4T7EohWtZnheC78CgsiEFr8iWRacgkDEBqmmM GICC+m6tbM7nPPPtbbCcQElgeE/IetXri/xzpaIrUsAG9f7ivsE6/8x/J ccuEdM3co/jhHCp/dg33UGjnLv01slXAOgAFbLdZRAveEnlznzFQTWS0y 0xv9luNA0f3xw/9reZ/8oBaeyCvrznS0/e7Gas3Db6ZvAokW2Av8yG957 g==; IronPort-PHdr: =?us-ascii?q?9a23=3AFhfOHRGhVlesn3X0Z57B851GYnF86YWxBRYc798d?= =?us-ascii?q?s5kLTJ7zpsqwAkXT6L1XgUPTWs2DsrQY07OQ7P+rBDNIyK3CmUhKSIZLWR4BhJ?= =?us-ascii?q?detC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+?= =?us-ascii?q?KPjrFY7OlcS30P2594HObwlSizexfa5+IA+0oAjTucUbgYlvIbstxxXUpXdFZ/?= =?us-ascii?q?5Yzn5yK1KJmBb86Maw/Jp9/ClVpvks6c1OX7jkcqohVbBXAygoPG4z5M3wqBnM?= =?us-ascii?q?VhCP6WcGUmUXiRVHHQ7I5wznU5jrsyv6su192DSGPcDzULs5Vyiu47ttRRT1ky?= =?us-ascii?q?oMKSI3/3/LhcxxlKJboQyupxpjw47PfYqZMONycr7Bcd8GQGZMWNtaWS5cDYOm?= =?us-ascii?q?d4YBD/QPM/tEr4fzpFUOoxmxBQiwC+3gxTBFnWP23bQ40+g9DQ3KwBIsEtQTu3?= =?us-ascii?q?rUttX1M6ISXPi1wqnJyzXDae5d1Cn96IjScxAhuu2MUqx2ccrK10YvER7Og1Ke?= =?us-ascii?q?qYP5JD6V0P4Cs3CB4Op8S+2gl24npxttrTiow8chk4/EjZ8WxFDc7Sh13Zo5Kc?= =?us-ascii?q?emREN0fdKoCoZcuzuZOoZ5Ws8uXn1ktDwkxrAJpZK3ZjUGxIg9yxLBZfGKd5CE?= =?us-ascii?q?4hz9W+uSPTt1gXdodbK8ihqv9EWtyvDwWdOp3FtPtCVKjtfBtn4I2hHQ5cWIVP?= =?us-ascii?q?1w9Vq71zmVzQDc8ORELFgxlarcNpEu3KY9loEWsUTfBi/2n1j2jLOOekUk5Oeo?= =?us-ascii?q?7+Pnb63jppCGNo90jhvyMqI0lcynG+s4LhYBUHSb+eimyLLj+kj5TK1Ljv0wjK?= =?us-ascii?q?bZrIjXKdkHqqKjHQNY3Zov5wyiAzu809kVkmELLFdfdxKGi4jpNUvOIPf9Dfqn?= =?us-ascii?q?jVSjjCxmx/bcMb35GJrNMmbMn6vhfbpn90Fczw8zwchF551IErEBPO7zWkjpud?= =?us-ascii?q?PFEBA5LRe5zPv/CNpg1YMSQ2WPArWWMPCajVjd2uIoJuCXLKoSvjT0L/8jr6ry?= =?us-ascii?q?jXg8kEQ1eK6v35ITb3b+GPl6dRa3e33p1/kAF2FClQokTff2hVuZXDgbM3i5d6?= =?us-ascii?q?Q1/jgnBYmmS4zEQ9b+0/S6wC6nE8gONSh9AVeWHCKtLt3cVg=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2HrAgBdh09a/1QB8ApdHAEBAQQBAQoBA?= =?us-ascii?q?YU/B584mT8KhTsChHcUAQEBAQEBAQEBAQKBEII4JAGCRwEBAQECATo/DAQCAQg?= =?us-ascii?q?RBAEBHwkHMhQJCAIEDgUIih+zAIo9AQEBAQEBAQEBAQEBAQEBAQEBAQEehBSDa?= =?us-ascii?q?4Fpgy6DMIdqBaNclTOUD5ZmAgICAgkCGoE8NoFzbxWCZ4RXeIhDgRcBAQE?= X-IPAS-Result: =?us-ascii?q?A2HrAgBdh09a/1QB8ApdHAEBAQQBAQoBAYU/B584mT8KhTs?= =?us-ascii?q?ChHcUAQEBAQEBAQEBAQKBEII4JAGCRwEBAQECATo/DAQCAQgRBAEBHwkHMhQJC?= =?us-ascii?q?AIEDgUIih+zAIo9AQEBAQEBAQEBAQEBAQEBAQEBAQEehBSDa4Fpgy6DMIdqBaN?= =?us-ascii?q?clTOUD5ZmAgICAgkCGoE8NoFzbxWCZ4RXeIhDgRcBAQE?= 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 15:14:29 +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 15:14:29 +0100 From: Finn Christensen To: Thomas Monjalon CC: "dev@dpdk.org" , Yuanhan Liu , "Adrien Mazarguil" , Ciara Loftus , Kevin Traynor , "stephen@networkplumber.org" , "ferruh.yigit@intel.com" Thread-Topic: [dpdk-dev] standardize device identification Thread-Index: AQHTed5wRSh3eSywGUykeeHF0l5SaqNj3zuAgAEdtQCAAB7lgIAAGYkAgAAxDkA= Date: Fri, 5 Jan 2018 14:14:29 +0000 Message-ID: References: <1512027330-30030-1-git-send-email-yliu@fridaylinux.org> <3183370.0ufOrFygau@xps> <2746853.LkVxvJSmNi@xps> In-Reply-To: <2746853.LkVxvJSmNi@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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jan 2018 14:14:31 -0000 >-----Original Message----- >From: Thomas Monjalon [mailto:thomas@monjalon.net] >Sent: 5. januar 2018 13:02 >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 > >05/01/2018 12:09, Finn Christensen: >> From: Thomas Monjalon >> 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 category to distinguish our ports. >> For instance: >> -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 > >The problem with the mac property is that it cannot be used for >white/blacklisting in DPDK because the MAC is not known before port >initialization. > Sure, that makes sense. I just for a minute thought that we could use that= =20 mechanism to enable individual ports at startup also. We will continue to=20 use proprietary devargs passed by whiterlist to the PMD probe function. What we needed was a way to select the individual ports, by using=20 rte_eth_dev_get_port_by_name().=20 >> We will not be able to support the dev_port property, that will not work= for >us. >> At least not for now.