From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by dpdk.org (Postfix) with ESMTP id 9B1D0200 for ; Mon, 18 Dec 2017 23:30:49 +0100 (CET) Received: by mail-pf0-f196.google.com with SMTP id n6so10291578pfa.4 for ; Mon, 18 Dec 2017 14:30:49 -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=usVx/o4A/tF2kQs5vwSElJK2Y+msGCX8B7yHGxYk2pU=; b=kIOChRNnzwEiR/WBwKGRCtW5mHIToWh283Xo39avDp8Z9JBKIxcaLP154ueUqkdZEI 4X6WW3KagkCVMbTskm7oyFHM+3ryL2r9hkGJRqqO7sCJzSucSYGBUszEtUugO+SYVVFP Eih4pmenHusV56kC9B+Jdhhp0PVl6JyqvpT2tErLWDVzNSWLEfoFb2tCccrLnGeF0MxV nrygRPX9M2p4XQSyTCwOeocsD8ZiTIjhskz0cTSuD6q26k/LUYTQjKLbThL7NVJ8wX6I t15QzV5NE0t8BYQgFvv/wpzN5LDVo3gq3WuQVSe116qZ1w1xU5sPd4cRDQN2+6E6R19U dPTw== 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=usVx/o4A/tF2kQs5vwSElJK2Y+msGCX8B7yHGxYk2pU=; b=qlo8ezhtZGeQ8X8tLMtjKrl0uNKq3Ca1gMUvqxBY96UD7kVZvqf3441scNHAmO0rqf eck4uTVGfEOa0mtwyaT5M8dxaYEiaCeSkzLv1bj3dtbOyPE2WvbJVUkNuvRMyBMN6exE DcCqjUFnUEIlCHsMR7EHu6dAr7AwQcDTaRyz7GX3bNISRG3BEFqPFZzblp1r1LRR/PrC KM01Spz5/dq44+sJrj7SsaFpUYih1VTf0pneLPhAfuW4lgETH1ZfpcKJsGjBto8ZCGdM uKnqYHueia9Mrz8v89gK5dCs4iDnUSisCtEQ+oV5dIgKc1p1UHWXQk2x4gjzhfGo4MzE KuOg== X-Gm-Message-State: AKGB3mLJKYt2dSmcvHVz2jEbvT8AyYXiZ2k+K2wcEhFBeRhYmPnBgpet LMQNb54V0vyM9yvuswOLL6Zyq6ijVeQ= X-Google-Smtp-Source: ACJfBouCIcxRc8rWB+cslHnw+fb1KKtVALEJKephlfvv4DWklSgYff/sTDGf5Uwqyw6+I/iLs3wNNA== X-Received: by 10.101.88.201 with SMTP id e9mr1036264pgu.216.1513636248685; Mon, 18 Dec 2017 14:30:48 -0800 (PST) Received: from xeon-e3 (204-195-18-133.wavecable.com. [204.195.18.133]) by smtp.gmail.com with ESMTPSA id s73sm28057000pfi.167.2017.12.18.14.30.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Dec 2017 14:30:48 -0800 (PST) Date: Mon, 18 Dec 2017 14:30:45 -0800 From: Stephen Hemminger To: Thomas Monjalon Cc: Adrien Mazarguil , dev@dpdk.org, Yuanhan Liu , =?UTF-8?B?R2HDq3Rhbg==?= Rivet , Ciara Loftus , Kevin Traynor , hemant.agrawal@nxp.com Message-ID: <20171218143045.6a366c14@xeon-e3> In-Reply-To: <1900781.GHbs7vIcDE@xps> References: <1512027330-30030-1-git-send-email-yliu@fridaylinux.org> <20171205110446.GN4062@6wind.com> <4433948.XFY0rnHxgs@xps> <1900781.GHbs7vIcDE@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: Mon, 18 Dec 2017 22:30:49 -0000 On Mon, 18 Dec 2017 23:25:37 +0100 Thomas Monjalon wrote: > 05/12/2017 14:20, Thomas Monjalon: > > 05/12/2017 12:04, Adrien Mazarguil: > > > Just for information, this "port=x" argument in mlx4 is consistent with the > > > value found in /sys/class/net/ethX/dev_port under Linux. If we choose to use > > > a port index (instead of a MAC or something else), it would make sense to > > > standardize it on the same order as given by the host OS for consistency > > > across all PMDs. > > > > Good idea, thanks. > > dev_port is implemented in Linux for few devices: > > % git grep -l '\' drivers/net/ethernet > drivers/net/ethernet/broadcom/bnxt/bnxt.c > drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c > drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c > drivers/net/ethernet/intel/i40e/i40e_fcoe.c > drivers/net/ethernet/mellanox/mlx4/en_netdev.c > port is used to distinguish multiple physical ports on a single card. It is not global like the DPDK port.