From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 976261EF3F for ; Wed, 13 Jun 2018 19:46:23 +0200 (CEST) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id 43EA7B00060; Wed, 13 Jun 2018 17:46:22 +0000 (UTC) Received: from [192.168.38.17] (91.220.146.112) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Wed, 13 Jun 2018 18:46:18 +0100 To: Filip Janiszewski , References: <8e8c477b-066f-f909-d678-6623464b51c0@filipjaniszewski.com> From: Andrew Rybchenko Message-ID: Date: Wed, 13 Jun 2018 20:46:07 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <8e8c477b-066f-f909-d678-6623464b51c0@filipjaniszewski.com> Content-Language: en-GB X-Originating-IP: [91.220.146.112] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-11.0.0.1191-8.100.1062-23904.003 X-TM-AS-Result: No--12.496500-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-MDID: 1528911982-Ki1zAihPRgcc Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Correct setup of sfc X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2018 17:46:24 -0000 Hi Filip, On 06/13/2018 12:46 PM, Filip Janiszewski wrote: > Hi, > > I'm trying to test a SF card (Flareon Ultra SFN7142Q Dual-Port 40GbE) in > our testing box, the details of the device are: > > . > Solarstorm firmware update utility [v7.1.1] > Copyright Solarflare Communications 2006-2018, Level 5 Networks 2002-2005 > > enp101s0f0 - MAC: 00-0F-53-2C-3A-10 > Firmware version: v7.1.1 > Controller type: Solarflare SFC9100 family > Controller version: v6.2.7.1000 > Boot ROM version: v5.1.0.1005 > > The Boot ROM firmware is up to date > The controller firmware is up to date > > enp101s0f1 - MAC: 00-0F-53-2C-3A-11 > Firmware version: v7.1.1 > Controller type: Solarflare SFC9100 family > Controller version: v6.2.7.1000 > Boot ROM version: v5.1.0.1005 > > The Boot ROM firmware is up to date > The controller firmware is up to date > . > > The DPDK lib (version 18.05) has been build with > CONFIG_RTE_LIBRTE_SFC_EFX_PMD=y as per instructions, the sfc driver > seems to be loaded, the output of 'lsmod | grep sfc' is: > > . > sfc 470393 0 > . PCI devices of Solarflare NIC should be bound to vfio, uio-pci-generic or igb_uio (part of DPDK) module. In the case of Solarflare NICs, Linux driver is not required and not used in DPDK. So, you should load one of above modules (depending on your server IOMMU configuration), push already created interfaces down and rebind Solarflare PCI functions to the driver, something like: modprobe vfio-pci ip link set enp101s0f0 down ip link set enp101s0f1 down dpdk-devbind.py --bind=vfio-pci 0000:65:00.0 0000:65:00.1 The above assumes that dpdk-devbind.py script is in PATH. And start DPDK as you do before. Regards, Andrew.