From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f179.google.com (mail-ob0-f179.google.com [209.85.214.179]) by dpdk.org (Postfix) with ESMTP id 1239E159 for ; Wed, 26 Mar 2014 08:06:12 +0100 (CET) Received: by mail-ob0-f179.google.com with SMTP id va2so1985256obc.38 for ; Wed, 26 Mar 2014 00:07:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=837Eg4RgM1vpBRzFeqo0LpUFtLHBdyWQgJNlkvtaxyg=; b=LlLJREuNnmCW1kBSf0XsGVAhNNJQWGySvFXc1C/yvgIfgha8uMUPJ1xaFkYiAtdi7n rp0FTpBXMamU48TlRQL1anzs953i0OQ9Lwuj+ycf1l3hFbc0S6k0ueteqOzjln5p5/ER aN141OxzAR+OIwrZRqwUoaqu6Slr4nn3b5KsU9/0Zm5Rvw1DMiM2cQqoKBxB+waDF+9T 8V7mX3DhynPOTDyOJ7rykDvIvJgHK9T6YgGRqP3xMmJvwG8ItZxtb/mS7ac7tlWyQyNb H9wfwPKXsxpnF8HP6E5JsLfN9RE3QgThqk8IwF3szn2cYSRsf0h03L0AjwPwbx6DR75r OkAw== X-Gm-Message-State: ALoCoQl94BgPjshKPMaDkQJE9SkVXmIQicuL5tPnDnI8cm6F52cEs4vS/Kap5mfUVp3VfTqOiZDk MIME-Version: 1.0 X-Received: by 10.60.54.228 with SMTP id m4mr35804726oep.29.1395817666094; Wed, 26 Mar 2014 00:07:46 -0700 (PDT) Received: by 10.182.24.198 with HTTP; Wed, 26 Mar 2014 00:07:46 -0700 (PDT) In-Reply-To: References: <013601cf48bb$0e1ed6a0$2a5c83e0$@stratosphere.co.jp> <014d01cf48be$f02c3990$d084acb0$@stratosphere.co.jp> Date: Wed, 26 Mar 2014 16:07:46 +0900 Message-ID: From: Masaru Oki To: Fred Pedrisa 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: Re: [dpdk-dev] 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 07:06:13 -0000 > By default nic_uio takes all the NICs for itself... Yes. I think nic_uio_probe should check hw.nic_uio.bdfs. 2014-03-26 15:49 GMT+09:00 Fred Pedrisa : > Hello, > > > > By default nic_uio takes all the NICs for itself... > > > > So in theory, you needed an option to reserve some NIC ports to your > system, without DPDK taking it for itself... > > > > *De:* Masaru Oki [mailto:m-oki@stratosphere.co.jp] > *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 > > > > 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. > > > > > > 2014-03-26 15:20 GMT+09:00 Fred Pedrisa : > > Hello, > > > > You did not understand the purpose of that parameter, it is made to > 'avoid' nic_uio from pursuing the wanted NICs... so they are free to be > used in the system :) > > > > Right now the code to handle it is wrong and I am trying to fix it myself= . > > > > *De:* Masaru Oki [mailto:m-oki@stratosphere.co.jp] > *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 > > > > 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=3D0x100f8= 086 > rev=3D0x01 hdr=3D0x00 > nic_uio1@pci0:2:6:0: class=3D0x020000 card=3D0x075015ad chip=3D0x100f8= 086 > 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@ ~]$ > > > > 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 :/ > > > > >