From nobody Wed Apr 17 18:55:27 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 4VKVV31b4fz5HQSV for ; Wed, 17 Apr 2024 18:55:39 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VKVV22Zt6z4FTc for ; Wed, 17 Apr 2024 18:55:38 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=nTtQcDCI; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of pprocacci@gmail.com designates 2a00:1450:4864:20::535 as permitted sender) smtp.mailfrom=pprocacci@gmail.com Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-56e78970853so1902506a12.0 for ; Wed, 17 Apr 2024 11:55:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713380136; x=1713984936; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=uBbm989Jm0q7zg9IhG+DirD6V9/G1qPveZrBWfOaG0s=; b=nTtQcDCIv6yVglI+mLhXL2PIQrUBDbqL1iQlzA2hOzyB5JwSjlIjUifJThIVwdNqJh IECOf/Iudbl8v70dE7rUlqPe88Zh5htlMD99qK+gO3cC1EDQdvUsxsVFYyLgbzW1ELvV 5jafipkJRjWRSqnU/G/n4Qq5gXLOyBN97Ok0lsJnzaWALrinA18t0qmMf9b7tX7k2jtV RrsMPcFNCkK+k+eeliaCI8XrOXtlqIHp+3TE9Oi/aGcbGrZJROjeFIAXA78u9iAVLHx0 FlI/K4X1600lmQuEYIPAyFYSJvzZT1xVA2vmC+ABZ00danTXI19srdVBOI+3QKLbBrPT 1WxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713380136; x=1713984936; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=uBbm989Jm0q7zg9IhG+DirD6V9/G1qPveZrBWfOaG0s=; b=DViEc2ZieFyfMjmmu1aoY0YPqVgNnYDPGZKatVfReWpIIiyMvRVnECfsFSu27QiVqc dc9GkxMMVjFtbhG/uUe+nwdKsH2r5WgGiG9SHmokA61Md3SR3RWynE/rKGAIY2J5fJnw UWLTihO81y6JXuShmYOE0jT/5kxxjApg5Cg7vbS8Xbf31on5vjRfGjcjoORrF7ayjorj /38I9BEhnWF0x7XnIL2SkyX1V1mehfEzTEdHWCRvxbUHpv1l8iNC4RollBD3HWC0xH7a YmJQ64sLZQVpBvOPGA1N9baD3ch9RyZc8da3c7KZAlChc4aNROJsW/oShA0M9YAA5kSU XXiw== X-Gm-Message-State: AOJu0YxMs1ffe/D6girARXRgCRZX5C+tT1HHjzJ+hspDp1qqNZfKg6kM WtJXcQf6mRXzyvBwewvvi9qUcTRHX61UiKEXF3Zi57zOYh9slFvFCyF7e0xZkz6ZJa9D88KRtYf 0l9Hy4GIRwvmqvH1I3kze+YNtxHxmmMs= X-Google-Smtp-Source: AGHT+IFwTrwHMndm6bd+xaFlfdK92XIHMeVJxr6b1G911wEhq84B9ArFkztXPq2V60YDTkbSnAR8ea/TUULz67DUjbI= X-Received: by 2002:a17:906:38c4:b0:a52:119:3446 with SMTP id r4-20020a17090638c400b00a5201193446mr5799857ejd.34.1713380136026; Wed, 17 Apr 2024 11:55:36 -0700 (PDT) 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 From: Paul Procacci Date: Wed, 17 Apr 2024 14:55:27 -0400 Message-ID: Subject: ixl(4) bhyve(8) SR-IOV with Transparent VLAN associated w/ VF's To: freebsd-net@freebsd.org Content-Type: multipart/alternative; boundary="0000000000005f8f9906164f662d" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.91 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.91)[-0.909]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::535:from] X-Rspamd-Queue-Id: 4VKVV22Zt6z4FTc --0000000000005f8f9906164f662d Content-Type: text/plain; charset="UTF-8" Hey all, Strange one here. Not much on the internet that I could find. I'm assigning VF's to bhyve with pci passthru. Doing this allows the bhyve instance maintainer to set their own vlan and I'd like that not to be the case for various reasons. One being I don't need/want their traffic to potentially hit/sniff other traffic on any other vlan than the one assigned to them. 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. Unless I misreading ixl(4) which is a real possibility, it supports 'VLAN tag insertion/extraction'. Has anyone done this? Does anyone have any pointers to accomplish this? Thanks, Paul -- __________________ :(){ :|:& };: --0000000000005f8f9906164f662d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey all,

Strange one here.=C2=A0 No= t much on the internet that I could find.

I'm assigni= ng VF's to bhyve with pci passthru.
Doing this allows the= bhyve instance maintainer to set their own vlan and I'd like that not = to be the case for various reasons.=C2=A0 One being I don't need/want t= heir traffic to potentially hit/sniff other traffic on any other vlan than = the one assigned to them.

Given this, I figure= d the best option would be to set the VLAN on the VF on the host prior to h= anding it off to the bhyve instance effectively enabling transparent vlans.=

Unless I misreading ixl(4) which is a real possibility, = it supports 'VLAN tag insertion/extraction'.

Has = anyone done this?=C2=A0 Does anyone have any pointers to accomplish this?
Thanks,
Paul

--
__________________

:(){= :|:& };:
--0000000000005f8f9906164f662d--