From owner-freebsd-net@freebsd.org Mon Sep 11 18:00:08 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CD09FE19D96 for ; Mon, 11 Sep 2017 18:00:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BB6D16AFFE for ; Mon, 11 Sep 2017 18:00:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v8BI08W5080675 for ; Mon, 11 Sep 2017 18:00:08 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 211062] [ixv] sr-iov virtual function driver fails to attach Date: Mon, 11 Sep 2017 18:00:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: IntelNetworking, needs-patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ultima@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2017 18:00:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211062 --- Comment #7 from Richard Gallamore --- (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.=