From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 924531B01E for ; Fri, 5 Jan 2018 09:40:00 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0D37C20B4D; Fri, 5 Jan 2018 03:40:00 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 05 Jan 2018 03:40:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=54KkILvawbEDi3BaiQtyJjs7jG SreMhg8Frp0ZUQmSc=; b=fRErap+uCg0DMXV4hRQwOb7JAXXoKniUYYxxyRHNSY X2Ug0UC7zW6Jow4lQWHyRE9AhQ4K3eeQJCIHsUCgt7Coi1WS+s8A0+oP116577pF Ib2AHAaa447cQkF+uvtT0T9AX/YmlyABDT5Akfmw/BTi+6ZCp9MsTh5RqNXWwCs/ Q= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=54KkIL vawbEDi3BaiQtyJjs7jGSreMhg8Frp0ZUQmSc=; b=dGQpfGOC211Birdg9Z8QKF /iOBjW6VWMTE70ca9ONFT7g2srnPQoi8s9k92GL5okY5pUU5THywH2rQWLWeSTXN 5MySrhe1KWGQg8yBcI8S2p+BUN7xSHFG/2RiIJp7ariFd9n2dhm2v7pnL9K2sPz0 IMJxdPPS1XXYvwl2ssREaSGDtHUekO+oKUWtbKCox5MA4dwCAcvWtcouo0HCwg1z 3Yo+ghBxPRaj8F48CPf+wmnvWANB46YnKlQsF4M+DIcogID3M7GUzYREBdrZMPPQ R4eTxERb7gsLO/8ECgKFg9lWmMBbxi+GuA8uoMrBGjZ6IECdUO3NTdWLao2nf34A == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id AA29624741; Fri, 5 Jan 2018 03:39:59 -0500 (EST) From: Thomas Monjalon To: Finn Christensen Cc: dev@dpdk.org, Yuanhan Liu , Adrien Mazarguil , Ciara Loftus , Kevin Traynor , stephen@networkplumber.org, ferruh.yigit@intel.com Date: Fri, 05 Jan 2018 09:39:38 +0100 Message-ID: <3183370.0ufOrFygau@xps> In-Reply-To: References: <1512027330-30030-1-git-send-email-yliu@fridaylinux.org> <7044959.u7szEIarlR@xps> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 08:40:00 -0000 05/01/2018 08:52, Finn Christensen: > From: Thomas > > It may look like this: > > > > bus=BUS_NAME,id=BUS_ID/class=CLASS_NAME,dev_port=PORT_NUM, > > mac=MAC_ADDRESS/driver=DRIVER_NAME,driverspecificproperty=VALUE [...] > We also need to distinguish between multiple ports sitting on same PCI bus ID. > and from our point of view, this will fully cover our needs. Which property can help to distinguish Napatech ports? Can you use class=eth,dev_port=X ? The dev_port property will use /sys/class/net/DEV/dev_port on Linux. Is it OK for you?