Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Sep 2017 18:00:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-net@FreeBSD.org
Subject:   [Bug 211062] [ixv] sr-iov virtual function driver fails to attach
Message-ID:  <bug-211062-2472-TPoBUWrNb0@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-211062-2472@https.bugs.freebsd.org/bugzilla/>
References:  <bug-211062-2472@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211062

--- Comment #7 from Richard Gallamore <ultima@freebsd.org> ---
(In reply to Eric Joyner from comment #6)
 This is a FreeBSD host using the iovctl program to create vfs with the
X540-AT2 network card. I haven't attempted to test the vfs with a guest in =
over
a year but I doubt it will work because the error is similar or possibly sa=
me
with new error message. Also, Ultima was my old bugzilla account so sorry if
this brings some confusion.

 My previous tests (over a year ago) once the iovctl command is invoked and=
 the
vfs spawn, the network port no longer functions until iovctl removes the vf=
s. I
am pretty sure I have tested with and without pf on the previous test but I
can't say for certain. The recent test was with pf enabled.

 When I have some time I'll do a more complete test with errors provided by=
 the
bhyve guest as using a vf if this will help. Here are the relevant
configuration files.

loader.conf:
hw.ix.num_queues=3D"4"

iovctl.conf:
PF {
        device : ix1;
        num_vfs : 4;
}

DEFAULT {
        passthrough : true;
}
VF-0 {
        passthrough : false;
}
VF-1 {
        passthrough : false;
}

pf.conf: (omitted jail specific rules and variables to keep private)
set block-policy drop
set skip on { lo, bridge, tap } # skip on bridge and tap, they can cause is=
sues
with bhyve
scrub all no-df max-mss 1440 random-id reassemble tcp

block on ix0 all

pass in proto tcp to $host port { $host_tcp } modulate state
pass in proto udp to $host port { $host_udp } modulate state
pass in proto tcp from $nfs_clients to $host port { $host_nfs_ports } modul=
ate
state
pass in proto udp from $nfs_clients to $host port { $host_nfs_ports } modul=
ate
state
pass out all modulate state

pass in inet proto icmp all icmp-type echoreq
pass in inet6 proto ipv6-icmp all icmp6-type { 1, 2, 3, 4, 128, 129, 133, 1=
34,
135, 136, 137 }

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211062-2472-TPoBUWrNb0>