Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jun 2020 19:59:46 +0200
From:      Stefan Bethke <stb@lassitu.de>
To:        freebsd-net@freebsd.org
Subject:   SR_IOV with ixgbe not working?
Message-ID:  <0E4F2B03-C7E3-4047-89D5-0C9141642732@lassitu.de>

next in thread | raw e-mail | index | archive | help

--Apple-Mail=_D061985B-A922-45FC-8E0F-E37B430F43C6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

I just started using an ASRock Rack X470D4U2-2T:
=
https://www.asrockrack.com/general/productdetail.asp?Model=3DX470D4U2-2T#S=
pecifications =
<https://www.asrockrack.com/general/productdetail.asp?Model=3DX470D4U2-2T#=
Specifications>

It sports an X550 dual 10G ethernet controller:

# pciconf -lv
ix0@pci0:1:0:0:	class=3D0x020000 card=3D0x15631849 chip=3D0x15638086 =
rev=3D0x01 hdr=3D0x00
    vendor     =3D 'Intel Corporation'
    device     =3D 'Ethernet Controller 10G X550T'
    class      =3D network
    subclass   =3D ethernet
ix1@pci0:1:0:1:	class=3D0x020000 card=3D0x15631849 chip=3D0x15638086 =
rev=3D0x01 hdr=3D0x00
    vendor     =3D 'Intel Corporation'
    device     =3D 'Ethernet Controller 10G X550T'
    class      =3D network
    subclass   =3D ethernet

It should support SR-IOV:
# ls -l /dev/iov
total 0
crw-------  1 root  wheel  0x32 Jun 20 23:04 ix0
crw-------  1 root  wheel  0x33 Jun 20 23:04 ix1
# iovctl -S -d ix1
The following configuration parameters may be configured on the PF:
	num_vfs : uint16_t (required)
	device : string (required)

The following configuration parameters may be configured on a VF:
	passthrough : bool (default =3D false)
	mac-addr : unicast-mac (optional)
	mac-anti-spoof : bool (default =3D true)
	allow-set-mac : bool (default =3D false)
	allow-promisc : bool (default =3D false)

If I try to create a number of virtual devices, things don't seem to =
work out:
# cat /etc/iovctl-ix1.conf
PF {
  device: "ix1";
  num_vfs: 8;
}

DEFAULT {
  passthrough: true;
}

VF-0 {
  passthrough: false;
}

# iovctl -C -f /etc/iovctl-ix1.conf
# dmesg
...
ixv0: <Intel(R) PRO/10GbE Virtual Function Network Driver> at device =
0.129 on pci1
ixv0: ...reset_hw() failure: Reset Failed!
ixv0: IFDI_ATTACH_PRE failed 5
device_attach: ixv0 attach returned 5
pci1: <unknown> at device 0.131 (no driver attached)
pci1: <unknown> at device 0.133 (no driver attached)
pci1: <unknown> at device 0.135 (no driver attached)
pci1: <unknown> at device 0.137 (no driver attached)
pci1: <unknown> at device 0.139 (no driver attached)
pci1: <unknown> at device 0.141 (no driver attached)
pci1: <unknown> at device 0.143 (no driver attached)

I haven't tried the passthrough devices yet, but I am interested in =
having at least one virtual device available in the host for use with a =
VIMAGE jail.

# uname -a
FreeBSD diesel.lassitu.de <http://diesel.lassitu.de/>; 12.1-STABLE =
FreeBSD 12.1-STABLE r362450 GENERIC  amd64


Should this be working? It seems some months ago it was necessary to =
compile the Intel driver instead of the in-tree one. I would have =
assumed that it would have been integrated by now.

Stefan

--
Stefan Bethke <stb@lassitu.de <mailto:stb@lassitu.de>>   Fon +49 151 =
14070811


--Apple-Mail=_D061985B-A922-45FC-8E0F-E37B430F43C6
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEJ+hF98o4r3eU/HiPD885WK4W4sEFAl742pIACgkQD885WK4W
4sHj7AgAkmton7EgaIFEMIefUymqlZREkJiV7jUqcdDUxX95/7d/qLO3hadnLxlZ
YLU5p7z7HAkRp7MjfZj5lbmQ8rMzlldb94U1Dw4GRyIPlFmCtqqvlfP/bbUvavN8
GgdC4tx//8lzfVptLoYmJKu0BawiKare/MmKevL1y8QdPu+2Id/5OVVJ6frsLyEL
fSgO1bzuX9ArpXiRGz+7SKuBQGAtcid8sh7DE91y6Nk5gZgXDpE0rlLoAAUN1s5P
QiViYITjlYvpcJyQegarppt00qC8tbuYdnauuAkWPSghZcGc705Gi5mPgTASsx65
TN6Gi09gl7wNtF5wQ+vrdA0AGA/hMA==
=B6/c
-----END PGP SIGNATURE-----

--Apple-Mail=_D061985B-A922-45FC-8E0F-E37B430F43C6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0E4F2B03-C7E3-4047-89D5-0C9141642732>