From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 6AF5F4A65 for ; Thu, 23 Feb 2017 12:23:44 +0100 (CET) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Feb 2017 03:23:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,197,1484035200"; d="scan'208,217";a="69238363" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by fmsmga006.fm.intel.com with ESMTP; 23 Feb 2017 03:23:39 -0800 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.38]) by IRSMSX152.ger.corp.intel.com ([169.254.6.191]) with mapi id 14.03.0248.002; Thu, 23 Feb 2017 11:23:38 +0000 From: "Ramakrishnan, Kuralamudhan" To: "vasilyf@mellanox.com" , "adrien.mazarguil@6wind.com" CC: "dev@dpdk.org" Thread-Topic: Regarding phys port id in mellanox NIC Thread-Index: AdKNxscFMp1OM5fMSDSNQkKxvc8J5g== Date: Thu, 23 Feb 2017 11:23:37 +0000 Message-ID: <45A864C2E6DC734AB0DD4BF0A94057750A8EDE@irsmsx105.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.181] MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 23 Feb 2017 17:57:08 +0100 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Regarding phys port id in mellanox NIC 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: Thu, 23 Feb 2017 11:23:46 -0000 Hello, I have a question regarding the phys port id in mellanox NIC, is this featu= re deprecated in the latest mlnx-en-dpdk driver ? Issue: I am working on the Ethernet controller: Mellanox Technologies MT27520 Fami= ly [ConnectX-3 Pro] NIC. I used to read the /sys/class/net/enp6s0/phys_port_id file, this will give = me the value as 248a070300728f70 for port 1 and 248a070300728f71 for port 2. The modinfo details before installing the mlnx-en-dpdk is as follows # modinfo mlx4_en filename: /lib/modules/4.4.0-59-generic/kernel/drivers/net/ethernet/mellano= x/mlx4/mlx4_en.ko version: 2.2-1 (Feb 2014) license: Dual BSD/GPL description: Mellanox ConnectX HCA Ethernet driver author: Liran Liss, Yevgeny Petrilin srcversion: CF3245DD50A90F3D536D0A7 depends: mlx4_core,ptp,vxlan intree: Y vermagic: 4.4.0-59-generic SMP mod_unload modversions parm: udp_rss:Enable RSS for incoming UDP traffic or disabled (0) (uint) parm: pfctx:Priority based Flow Control policy on TX[7:0]. Per priority bit= mask (uint) parm: pfcrx:Priority based Flow Control policy on RX[7:0]. Per priority bit= mask (uint) parm: inline_thold:Threshold for using inline data (range: 17-104, default:= 104) (uint) After that that I installed the mlnx-en-dpdk drivers as follows. Download and extract Mellanox divers: # cd ~/packages # wget http://www.mellanox.com/downloads/ofed/MLNX_EN-3.4-2.0.0.0/mlnx-en-3= .4-2.0.0.0-ubuntu16.04-x86_64.tgz # mkdir mlnx # tar xvzf mlnx-en-3.4-2.0.0.0-ubuntu16.04-x86_64.tgz --strip-components=3D= 2 -C mlnx/ Update the /etc/apt/sources.list.d/mlnx_ofed.list file with extraction dire= ctory path as mentioned below # echo "deb file:/root/packages/mlnx/DEBS ./" > /etc/apt/sources.list.d/mln= x_ofed.list Add key to the apt tool and then update # wget -qO - http://www.mellanox.com/downloads/ofed/RPM-GPG-KEY-Mellanox | = sudo apt-key add -# apt update Install the driver # apt install -y mlnx-en-dpdk I am getting the error message as follows # cat /sys/class/net/enp6s0/phys_port_id cat: /sys/class/net/enp6s0/phys_port_id: Operation not supported currently the modinfo details is as below. # modinfo mlx4_en filename: /lib/modules/4.4.0-59-generic/updates/dkms/mlx4_en.ko version: 3.4-2.0.0 (23 Nov 2016) license: Dual BSD/GPL description: Mellanox ConnectX HCA Ethernet driver author: Liran Liss, Yevgeny Petrilin srcversion: B25238324E1CDB4A38E4970 depends: mlx4_core,mlx_compat,ptp,vxlan vermagic: 4.4.0-59-generic SMP mod_unload modversions parm: udp_rss:Enable RSS for incoming UDP traffic or disabled (0)= (uint) parm: pfctx:Priority based Flow Control policy on TX[7:0]. Per pr= iority bit mask (uint) parm: pfcrx:Priority based Flow Control policy on RX[7:0]. Per pr= iority bit mask (uint) parm: inline_thold:Threshold for using inline data (range: 17-104= , default: 104) (uint) # hostnamectl Static hostname: ubuntu Icon name: computer-server Chassis: server Operating System: Ubuntu 16.04.1 LTS Kernel: Linux 4.4.0-59-generic Architecture: x86-64 Please let us know, is there any patch available to restore the phys port i= d in mellanox NICs ? Kural Kuralamudhan Ramakrishnan -------------------------------------------------------------- Intel Research and Development Ireland Limited Registered in Ireland Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263 This e-mail and any attachments may contain confidential material for the s= ole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact = the sender and delete all copies.