Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2018 10:45:38 -0400
From:      Ryan Stone <rysto32@gmail.com>
To:        Sean Bruno <sbruno@freebsd.org>
Cc:        freebsd-net <freebsd-net@freebsd.org>
Subject:   Re: Testing VF/PF code
Message-ID:  <CAFMmRNxzdJFzG4xSG5RVMt3Bv140hoG%2B6QrLBN6Oe%2BtcZTWNDQ@mail.gmail.com>
In-Reply-To: <4bc71104-349d-10b6-c7a4-0202e124ff98@freebsd.org>
References:  <4bc71104-349d-10b6-c7a4-0202e124ff98@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 29, 2018 at 12:58 PM Sean Bruno <sbruno@freebsd.org> wrote:
>
> Does anyone have a process for testing the VF drivers (ixgbe igb, etc)
> in FreeBSD without actually firing up linux to instantiate a VM or using
> EC2?

We have native support for creating VFs for ixl and ixgbe (and cxgbe).
For igb you're out of luck (but SR-IOV on igb is kind of a waste of
time anyway)

To create the VFs, create the following conf file:

ix0.conf:

PF {
    device : "ix0";
    num_vfs : 4;
 }


You can create the VFs with "iovctl -f ix0.conf -C"

You should see 4 new ixgbevf instances show up in the PCI tree and the
driver should attach.  The one caveat here is that I'm not sure of the
state of the ixgbe PF implementation -- some people reported issues
with it a while back, and I'm not sure if they were ever resolved.
ixl should be solid, though.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNxzdJFzG4xSG5RVMt3Bv140hoG%2B6QrLBN6Oe%2BtcZTWNDQ>