From nobody Mon Dec 29 18:35:47 2025 X-Original-To: dev-commits-src-all@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 4dg4fX3fk1z6M92H for ; Mon, 29 Dec 2025 18:35:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg4fW5NsRz3Njf for ; Mon, 29 Dec 2025 18:35:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767033347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TSVRg6PcbFx3TnpjshGKyp3+L0hG0A2gIroORBn5Whc=; b=e/Ga5h1hLQD+MiqQG2VcJkK+BjEwTqYNiJDmZ7sDfcLGaeNt4t9FHUPy3vxtlxonp18Z6l wPBspRMbx5KB9te8FzM3r0ILIhV3msDCNowXxpLt/sIyKYM7JnMY7IDz78drGbzLzfnvHa Yh02ERliAOZtMhVrK66TiGG0J+Kz0oQo0cKBnaQFiwkw1wLXbwQ2YDKzcLB0oaiT7Ey1PZ tl+H/kAxy/Z0w6Y8gBMP6NvY/MOx+f8yn975ZsDj7fZTTEd9o7l64Kr4JRUpseMs4rV+x+ yidr3uJAQW1z9g2A05T2GBjmv8bi2F1XGiMdj/1zOdzyzAeDV1RvTD7nw0Nqzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767033347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TSVRg6PcbFx3TnpjshGKyp3+L0hG0A2gIroORBn5Whc=; b=mlzmdD/roKJg5pShYi6F8NbumZ8ylRZ7Zm98fKQld/sFOmdt52Zf4y5V5R4PzmKzYp6kiw 8k8yDbQaUHn+TRRqdM9KVTmAa5xjiYQftW36Ac23u39mA7CT8Mkv8pszOXDwiWY6FF89pW gYD4cf3pB4A5XVkOb5FzcNmO0ea3R0+G/1Luf7cI64JhoBQ12BI43V8+JESedC5bYqXodQ imG+71n5ciAH4PBHJaLW3O5hNwCyzBKiELDnvdxnscjg8ouwiGItZ/6bxLlzuH9448jvJ6 dBQlqatV4//ZrFgqUJBTXxwl6TXeAQHzjZoRlvv8XpljBYSgBnEPc1XR+XY3Gw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767033347; a=rsa-sha256; cv=none; b=aM8oxQWPNwA7bbb0Jspy2+v2Ta73L64z2JJ+Q9Q6HlSZrBJ6WVnnWFrF5Saj771tP+jk9g GzayBpDci1yKqkX6scUd+wfhfpz/M5VDODO0DPjpgeUbpEzj7KBoA1vrK5lOfDkFp67hVS UtCdM5OsRBfoirgW5viJuFKnYtDX0UBVxShore6nAeG0BudN0ZYd2Om+rRtDjUMzduc1kY vnSgd7J4PRu4xsz/HprqBSJU+KfmWxvAi/XeJ3xcNTj/DiGm2nwvsv69rpsaJ7+1ShfXSc CgiYfGCmqGNTlb5+S09hbzLDagBXQErQAKFz5VmkpTmfZNnHLOfJfnFvcQnmKw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg4fW4gQ8zBG7 for ; Mon, 29 Dec 2025 18:35:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 37550 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 18:35:47 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Osipov Subject: git: 980c44df42fe - stable/15 - bhyve: Document that MAC address has to be unicast List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: michaelo X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 980c44df42fe1fcb29a4ef24af5e4e5c27cc2370 Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 18:35:47 +0000 Message-Id: <6952ca03.37550.52927dda@gitrepo.freebsd.org> The branch stable/15 has been updated by michaelo: URL: https://cgit.FreeBSD.org/src/commit/?id=980c44df42fe1fcb29a4ef24af5e4e5c27cc2370 commit 980c44df42fe1fcb29a4ef24af5e4e5c27cc2370 Author: Michael Osipov AuthorDate: 2025-12-26 13:40:37 +0000 Commit: Michael Osipov CommitDate: 2025-12-29 18:35:08 +0000 bhyve: Document that MAC address has to be unicast bhyve accepts any MAC address even foreign as long it is a unicast one. Reviewed by: ziaee MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54372 (cherry picked from commit e1bfd541c7cdee1e184cacb2ea3bbebb3a500dfb) --- usr.sbin/bhyve/bhyve.8 | 3 ++- usr.sbin/bhyve/bhyve_config.5 | 12 ++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/usr.sbin/bhyve/bhyve.8 b/usr.sbin/bhyve/bhyve.8 index 483462e0b98b..1d81280b8f75 100644 --- a/usr.sbin/bhyve/bhyve.8 +++ b/usr.sbin/bhyve/bhyve.8 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd December 23, 2025 +.Dd December 26, 2025 .Dt BHYVE 8 .Os .Sh NAME @@ -542,6 +542,7 @@ If is not specified, the MAC address is derived from a fixed OUI, and the remaining bytes from an MD5 hash of the slot and function numbers and the device name. +If specified, it must be a unicast MAC address. .Pp The MAC address is an ASCII string in .Xr ethers 5 diff --git a/usr.sbin/bhyve/bhyve_config.5 b/usr.sbin/bhyve/bhyve_config.5 index b511d5ef6bfd..4ead94690d91 100644 --- a/usr.sbin/bhyve/bhyve_config.5 +++ b/usr.sbin/bhyve/bhyve_config.5 @@ -517,8 +517,10 @@ Intel e82545 network interfaces support the following variables: .It Sy Name Ta Sy Format Ta Sy Default Ta Sy Description .It Va mac Ta MAC address Ta generated Ta MAC address. -If an explicit address is not provided, -a MAC address is generated from a hash of the device's PCI address. +If not specified, the MAC address is derived from a fixed OUI, and the +remaining bytes from an MD5 hash of the slot and function numbers and +the device name. +If specified, it must be a unicast MAC address. .El .Ss Frame Buffer Settings .Bl -column "password" "[IP:]port" "127.0.0.1:5900" @@ -746,8 +748,10 @@ VirtIO network interfaces support the following variables: .It Sy Name Ta Sy Format Ta Sy Default Ta Sy Description .It Va mac Ta MAC address Ta generated Ta MAC address. -If an explicit address is not provided, -a MAC address is generated from a hash of the device's PCI address. +If not specified, the MAC address is derived from a fixed OUI, and the +remaining bytes from an MD5 hash of the slot and function numbers and +the device name. +If specified, it must be a unicast MAC address. .It Va mtu Ta integer Ta 1500 Ta The largest supported MTU advertised to the guest. .El