From nobody Thu Apr 18 02:04:52 2024 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VKh1V3PxLz5Hc4N for ; Thu, 18 Apr 2024 02:05:02 +0000 (UTC) (envelope-from lexi@le-fay.org) Received: from fuchsia.eden.le-Fay.ORG (fuchsia.eden.le-fay.org [IPv6:2001:8b0:aab5:107::11]) by mx1.freebsd.org (Postfix) with ESMTP id 4VKh1T3F65z41bw for ; Thu, 18 Apr 2024 02:05:01 +0000 (UTC) (envelope-from lexi@le-fay.org) Authentication-Results: mx1.freebsd.org; none Received: from iris.eden.le-Fay.ORG (iris.eden.le-fay.org [IPv6:2001:8b0:aab5:106:3::6]) by fuchsia.eden.le-Fay.ORG (Postfix) with ESMTP id 4DF0C9098; Thu, 18 Apr 2024 02:04:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=le-fay.org; s=fuchsia; t=1713405893; bh=n1pDsFbGfINeCwrWyu3mRd5oFu4AkQgDdNcW60Z/2ik=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=lyPUES47zulbltD2UhI0qoeboeflm24HYBqm1KZHZjgObCQitbmHVx1vmqPCi79tT CnC6AIiH9Z/KULF7X9nAVmGdYNId/F+w4YFHKHAOt1bKaKPMw/d1b5JLOYB3AhhLcK LAdOuBNSZLmJ61a6g5GKb8c89irZXlFdgABIHAMg= Received: from ilythia.eden.le-fay.org (ilythia.eden.le-fay.org [IPv6:2001:8b0:aab5:106:3::10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by iris.eden.le-Fay.ORG (Postfix) with ESMTPSA id B278C2C0416; Thu, 18 Apr 2024 03:04:52 +0100 (BST) Date: Thu, 18 Apr 2024 03:04:52 +0100 From: Lexi Winter To: Paul Procacci Cc: freebsd-net@freebsd.org Subject: Re: ixl(4) bhyve(8) SR-IOV with Transparent VLAN associated w/ VF's Message-ID: References: List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dIAJi8zKqwjG6fmU" Content-Disposition: inline In-Reply-To: X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20712, ipnet:2001:8b0::/32, country:GB] X-Rspamd-Queue-Id: 4VKh1T3F65z41bw --dIAJi8zKqwjG6fmU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Paul Procacci: > I'm assigning VF's to bhyve with pci passthru. [...] > Given this, I figured the best option would be to set the VLAN on the VF on > the host prior to handing it off to the bhyve instance effectively enabling > transparent vlans. [...] > Has anyone done this? Does anyone have any pointers to accomplish this? i looked into this a while ago and concluded that it's not supported, at least on Intel cards. my recollection is that someone was working on this at one point, but never finished it -- unfortunately, i can't remember who that was... you may be able to work around this by running vlan(4) on the VF on the host instead of passing the interface to the guest, but then you lose most of the benefits of using SR-IOV to begin with. i have run into some odd bugs with both SR-IOV and vlan(4) on ixgbe cards and would definitely recommend testing that thoroughly before deploying it. --dIAJi8zKqwjG6fmU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEuwt6MaPcv/+Mo+ftDHqbqZ41x5kFAmYgf8EACgkQDHqbqZ41 x5kuLwv+KyVUXfVr00o5HwDnvjGP8TOkqyVc69YtOierQyuZK2nr3tTkgfsYbV5B V742q0rzgvZojU9HTck/T+EHhWXMdqNytl+4fYJoU5cG8lkzNApQQvSL23RkSUNd iONKdKSmYHTMSuzHIRwJOMkPypSNU3WUZBUPt52LEC+qktq2HyztCEdadTBzaqh6 GhujleQnLhXUvTZPmuDLOWZKosfhBi2ElDS7eukVmkWI0x5HoF+in5Q7cpZv5UdP d0fN7oplw613vwslsOeTA45zLcCh6UynbaDwmEwfHz57wjzfg0onEEnQ47MyC+d9 3tdurlQ9ujTqeYa3YPzYX/EBcTArTgQJXO30Is7KnAj095TFQ8cjvtz4ap8y42us AlbS2z+0nN9Q6oOY4S5tS3Hlux7o/U0sA9P6mubxo3nrqFQSUUuY2HJMwIm3KogN tbQ9RLf/cPtauzBLERE4jzekUzNquOChpB/F6PjOHAeBwrsUug1SrglKTv1CJWeV Clv6Akx9 =bNny -----END PGP SIGNATURE----- --dIAJi8zKqwjG6fmU--