From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 4993D200 for ; Mon, 18 Dec 2017 23:25:39 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id EBA61211F4; Mon, 18 Dec 2017 17:25:38 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 18 Dec 2017 17:25:38 -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=ToIbmigJCENgCdQ1FcWCp/vSpa uAhqQu5HkGtZV4FAs=; b=TiIFjCBFzu3ucrmWdg2tmI77EK9hf1bx/mOZXY5Lf1 y6RDrt+vb/UUeDr0D5rtUV0Ei3EsdHPSZxkDx5jhwnpb2h0MK0m4ThWDkbOtBTYH 3v6xq7EUQ1Jmu5K45nD4Qq0oiUl5umXqWldaJZrJAeVY708JG1yKUaYySdOgtqFu g= 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=ToIbmi gJCENgCdQ1FcWCp/vSpauAhqQu5HkGtZV4FAs=; b=rcaT9Tn6vkOuZ+8/iWR5vW Rnkr+f0Mu7uKagJySrtEfr8GYPhoJbxIy8fIq4PQP6S3fpXs0+6K1iNyULj2kyvc Ii52suAxGYiMcMF1HhASk0sldmIsIS/Kpkk2652Id84ABtZebfRZMKzPNcAqEsn5 DaTU9moMjGueEIEZbIJVpYk6Te2l2Z9q/Q1UKQztn3OTk4cGQs20D053NVKrppxU q7HGauhYo5s3IVR509Opl8kz8/EnOzYaIbVttIR/fY90F+cGn6Akk4DhYx58vZNH 9s0lrwHNSHlfZWXPU2EhPS/+nQx6SBd07yVcd1o1e40SbjGB/0Hm1vVdL2x4HVWQ == 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 9C7C22415E; Mon, 18 Dec 2017 17:25:38 -0500 (EST) From: Thomas Monjalon To: Adrien Mazarguil Cc: dev@dpdk.org, Yuanhan Liu , =?ISO-8859-1?Q?Ga=EBtan?= Rivet , Stephen Hemminger , Ciara Loftus , Kevin Traynor , hemant.agrawal@nxp.com Date: Mon, 18 Dec 2017 23:25:37 +0100 Message-ID: <1900781.GHbs7vIcDE@xps> In-Reply-To: <4433948.XFY0rnHxgs@xps> References: <1512027330-30030-1-git-send-email-yliu@fridaylinux.org> <20171205110446.GN4062@6wind.com> <4433948.XFY0rnHxgs@xps> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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:25:39 -0000 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