Date: Sun, 21 Jun 2020 20:50:46 +0200 From: Stefan Bethke <stb@lassitu.de> To: freebsd-net@freebsd.org Subject: SR_IOV with ixgbe not working? Message-ID: <302B863E-9FFB-4641-BDE7-5923214121C7@lassitu.de>
next in thread | raw e-mail | index | archive | help
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 =20 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=20 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 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.=20 Stefan --=20 Stefan Bethke <stb@lassitu.de> Fon +49 151 14070811
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?302B863E-9FFB-4641-BDE7-5923214121C7>