From nobody Thu Nov 10 22:04:59 2022 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 4N7bVM38SMz4d7Pp; Thu, 10 Nov 2022 22:04:59 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N7bVM2KbWz4M8R; Thu, 10 Nov 2022 22:04:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668117899; 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=ZIglZfXVc/3F94wB6Fci8dRUWLsDD5N8vOrZI90pGgE=; b=QRboyBCw9L2OlmRXCqZmxOsi6aQuFqLorIofP2nGifgLx9WQGQxBQNNnK+DN5BbL59v+sf CGdSmBYo7iOahd4JYUHJgQHU5jQtGSC2UYF2bKMn2d1/HWBHdn/d+53fFYhmtJ5zOcL7xD QyTGLduaewlP3jkfs4Lua7ltt/J7HfCGSpunG/vEdF9VRUVzXr7jSTPoebaBktRUeE8brv mYOKtFwvvpfu+gMpY2mCzKPOTp1atY8BWVE9KvDqYJvVoscwjF0JK+w8KZUJCd7W/bgTAX rqw07WGOJs31YbFUUDbrZD7VWAKh2S9Pc1Ruo6HIINrib+93LKwx0jdrrVZzGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668117899; 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=ZIglZfXVc/3F94wB6Fci8dRUWLsDD5N8vOrZI90pGgE=; b=mCaD31gutTx0X4o5Woi4lOF7qmZ7FisWNs8rRO09Jq7XIvPZ8AGQhrPTsYCc/ox3517j9G +c1uiKEQQDOckOPcbTOZ7xRgU5Q+vxfRGDLTjphKHECrOVW0AcKrJCXmFkfi2qz/yoPbfS EcftKD8YqxaDPQaxTfjsJDbYDvr2kJKCn842AGsDmdTay8t3sXJWb9tKLEfyAylc7gB+jO JniSJsoS0ss1SWhtvrVlKQ1Vgh8IdSFDPLe69NLekczwLEXrdFH+w5130HaWxh3lgBioOZ MhSaim5JsvwA/edt0kcqbWtUH0BCRR7oN4BKIAJMJx3wF4OsoJtMT7leAAS7kg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668117899; a=rsa-sha256; cv=none; b=Z9u3aQJuOZ1Xwa8Mntvd9NNOVtC1HNnAqdSrAwmPNfHlLZg58KXEivBjz2jLHqXSzWI86B FtftfbDueB8bOS0Fy/bHVoah0P9wtM++A6A4BJPSmqGjRPGRR62UJu8vG1fmquVywghXW0 sOxzfs4ezRxSNu43iqvafR7KOxfPyazXQahBMdbYxW7jrnoB7yuWJm8wLW4QfNbJzRFwDz 9+IAin52NBBHc8MPxhvXh9B3kBItOsw0MZ25FjcTSDCqLw0rCBLDW2PV+aSSwbBNFVwsxR dBTMH4EqwDlzKPbpYFkkhH2u2dRpHpniiSsDpnI3uWj2TkFEsgG9hEcVKYVhgA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N7bVM1CznzJ9j; Thu, 10 Nov 2022 22:04:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AAM4xpi043402; Thu, 10 Nov 2022 22:04:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AAM4x1t043401; Thu, 10 Nov 2022 22:04:59 GMT (envelope-from git) Date: Thu, 10 Nov 2022 22:04:59 GMT Message-Id: <202211102204.2AAM4x1t043401@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: e7e6c70cdc88 - stable/13 - bhyve: Document the "type" config variable for network device models. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: e7e6c70cdc88e4c75ffd17d981723bef86707c59 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e7e6c70cdc88e4c75ffd17d981723bef86707c59 commit e7e6c70cdc88e4c75ffd17d981723bef86707c59 Author: John Baldwin AuthorDate: 2022-06-30 22:14:36 +0000 Commit: John Baldwin CommitDate: 2022-11-10 21:52:21 +0000 bhyve: Document the "type" config variable for network device models. (cherry picked from commit e5ed417bb442cddece6ffbd6f2ec87d70520241a) --- usr.sbin/bhyve/bhyve_config.5 | 48 +++++++++++++++++++++++++++++++------------ 1 file changed, 35 insertions(+), 13 deletions(-) diff --git a/usr.sbin/bhyve/bhyve_config.5 b/usr.sbin/bhyve/bhyve_config.5 index 3faee9b81686..488dfb21bab7 100644 --- a/usr.sbin/bhyve/bhyve_config.5 +++ b/usr.sbin/bhyve/bhyve_config.5 @@ -328,16 +328,21 @@ The backend is responsible for passing packets between the device model and a desired destination. Configuring a backend requires setting the .Va backend -variable to one of the following values: -.Bl -tag -.It tap Ns Va N -Use the named +variable. +The type of a backend can either be set explicitly via the +.Va type +variable +or it can be inferred from the value of +.Va backend . +.Pp +The following types of backends are supported: +.Bl -tag -width "netgraph" +.It tap +Use the .Xr tap 4 -interface as the backend. -.It vmnet Ns Va N -Use the named -.Xr vmnet 4 -interface as the backend. +interface named in +.Va backend +as the backend. .It netgraph Use a .Xr netgraph 4 @@ -360,14 +365,31 @@ The name of the source hook on the created .Xr ng_socket 4 node. .El -.It netmap: Ns Va interface +.It netmap Use .Xr netmap 4 -on a network interface as the backend. -.It vale Ns Va bridge : Ns Va port -Use a port on a +either on a network interface or a port on a .Xr vale 4 bridge as the backend. +The value of +.Va backend +is passed to +.Xr nm_open +to connect to a netmap port. +.El +.Pp +If +.Va type +is not specified explicitly, then it is inferred from +.Va backend +based on the following patterns: +.Bl -column -offset indent "valuebridge:port" +.It Sy Pattern Ta Sy Type +.It tap Ns Va N Ta tap +.It vmnet Ns Va N Ta tap +.It netgraph Ta netgraph +.It netmap: Ns Va interface Ta netmap +.It vale Ns Va bridge : Ns Va port Ta netmap .El .Ss UART Device Settings .Bl -column "Name" "Format" "Default"