From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from col0-omc4-s4.col0.hotmail.com (col0-omc4-s4.col0.hotmail.com [65.55.34.206]) by dpdk.org (Postfix) with ESMTP id 84D34159 for ; Wed, 26 Mar 2014 07:48:09 +0100 (CET) Received: from COL131-DS6 ([65.55.34.201]) by col0-omc4-s4.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 25 Mar 2014 23:49:42 -0700 X-TMN: [Vzcmt7XxzOYi92sjJtc3ff6TJAbemlmp+HHxeujzaCw=] X-Originating-Email: [fredhps10@hotmail.com] Message-ID: From: Fred Pedrisa To: "'Masaru Oki'" References: <013601cf48bb$0e1ed6a0$2a5c83e0$@stratosphere.co.jp> <014d01cf48be$f02c3990$d084acb0$@stratosphere.co.jp> In-Reply-To: <014d01cf48be$f02c3990$d084acb0$@stratosphere.co.jp> Date: Wed, 26 Mar 2014 03:49:44 -0300 MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQG/TVETtHc+UFVuHufnbeKlbk8MRgK66QhPAPMbOfYCIb+sDZrkZhlg Content-Language: pt-br X-OriginalArrivalTime: 26 Mar 2014 06:49:42.0127 (UTC) FILETIME=[90BCA7F0:01CF48BF] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: dev@dpdk.org Subject: [dpdk-dev] RES: hw.nic_uio.bdfs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2014 06:48:10 -0000 Hello, =20 By default nic_uio takes all the NICs for itself=85 =20 So in theory, you needed an option to reserve some NIC ports to your = system, without DPDK taking it for itself=85 =20 De: Masaru Oki [mailto:m-oki@stratosphere.co.jp]=20 Enviada em: quarta-feira, 26 de mar=E7o de 2014 03:43 Para: Fred Pedrisa Cc: dev@dpdk.org Assunto: Re: [dpdk-dev] hw.nic_uio.bdfs =20 avoid??? want you hw.nic_uio.avoid_bdfs? nic_uio behavior I guessed 1. detach kernel driver specified by hw.nic_uio.bdfs 2. attach nic_uio driver for all NICs not attached. but 2. is not correct, I think. =20 =20 2014-03-26 15:20 GMT+09:00 Fred Pedrisa : Hello, =20 You did not understand the purpose of that parameter, it is made to = =91avoid=92 nic_uio from pursuing the wanted NICs... so they are free to be used in = the system :) =20 Right now the code to handle it is wrong and I am trying to fix it = myself. =20 De: Masaru Oki [mailto:m-oki@stratosphere.co.jp]=20 Enviada em: quarta-feira, 26 de mar=E7o de 2014 03:16 Para: Fred Pedrisa Cc: dev@dpdk.org Assunto: Re: [dpdk-dev] hw.nic_uio.bdfs =20 Hi, I tried with Intel version 1.6.0 and FreeBSD 9.2-RELEASE on VMware = Player. kldload nic_uio by hand, works fine. But kldunload nic_uio only detach uio driver, don't re-attach kernel = driver. [oki@ ~]$ cat /boot/loader.conf ############################################################## ### User settings ########################################## ############################################################## hw.contigmem.num_buffers=3D64 hw.contigmem.buffer_size=3D2097152 hw.nic_uio.bdfs=3D"2:5:0,2:6:0" contigmem_load=3D"YES" #nic_uio_load=3D"YES" [oki@ ~]$ pciconf -l | egrep '(em|uio)' em0@pci0:2:1:0: class=3D0x020000 card=3D0x075015ad chip=3D0x100f8086 = rev=3D0x01 hdr=3D0x00 em1@pci0:2:5:0: class=3D0x020000 card=3D0x075015ad chip=3D0x100f8086 = rev=3D0x01 hdr=3D0x00 em2@pci0:2:6:0: class=3D0x020000 card=3D0x075015ad chip=3D0x100f8086 = rev=3D0x01 hdr=3D0x00 [oki@ ~]$ kenv hw.nic_uio.bdfs 2:5:0,2:6:0 [oki@ ~]$ sudo kldload nic_uio Password: [oki@ ~]$ pciconf -l | egrep '(em|uio)' em0@pci0:2:1:0: class=3D0x020000 card=3D0x075015ad chip=3D0x100f8086 = rev=3D0x01 hdr=3D0x00 nic_uio0@pci0:2:5:0: class=3D0x020000 card=3D0x075015ad = chip=3D0x100f8086 rev=3D0x01 hdr=3D0x00 nic_uio1@pci0:2:6:0: class=3D0x020000 card=3D0x075015ad = chip=3D0x100f8086 rev=3D0x01 hdr=3D0x00 [oki@ ~]$ sudo kldunload nic_uio [oki@ ~]$ pciconf -l | egrep '(em|uio)' em0@pci0:2:1:0: class=3D0x020000 card=3D0x075015ad chip=3D0x100f8086 = rev=3D0x01 hdr=3D0x00 [oki@ ~]$ =20 2014-03-26 14:35 GMT+09:00 Fred Pedrisa : Hi, guys. This variable is not working as intended for FreeBSD :( It does not dettach nic_uio from the wanted ports :/ =20 =20