From nobody Thu Jun 30 22:16:01 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 A8FE7870C2D; Thu, 30 Jun 2022 22:16:01 +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 4LYt2T4Gjmz3MpH; Thu, 30 Jun 2022 22:16:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656627361; 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=Twzh6mE1TSK71qakIwgmWK1swMrgcR/dMFOezrt3uKE=; b=cDRItfZRblvJIkR0dRZw47yDBw5jlpRk9G4fYyMPWn75GA4G+r/64gdKKThe9Lwrg4D8W2 gBoQDfnsPTknWPbRPNea9YSwTIze9BGuBu0AekLHT4aYMme7Xhr4bVKMr0tmt+zsKi/clt rwXENwMp3Z3ilZdXx6YBf5q9V8/ojJCHHpXH5zJMb9kc2K7yElhvUkPMQbmxk2qsUYDJUD ztYL1zqxu0FWUMSCmZUD6QoOjD13gCzCcWrIc/VoUIJ01wmP7V2tmSEm7OBAESSGxsB3c/ 1PR6xtL7OZK5zbBtybkqAcexgFZm4CS4Mib2FE1tIGhxv/Xk9pEkBHa65SX1cw== 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 646917115; Thu, 30 Jun 2022 22:16:01 +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 25UMG1ie004366; Thu, 30 Jun 2022 22:16:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25UMG1Ke004365; Thu, 30 Jun 2022 22:16:01 GMT (envelope-from git) Date: Thu, 30 Jun 2022 22:16:01 GMT Message-Id: <202206302216.25UMG1Ke004365@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: e5ed417bb442 - main - 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/main X-Git-Reftype: branch X-Git-Commit: e5ed417bb442cddece6ffbd6f2ec87d70520241a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656627361; 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=Twzh6mE1TSK71qakIwgmWK1swMrgcR/dMFOezrt3uKE=; b=oMBDVk2RIKdHcQ4OxpRgsWxWeKGE/0pFO6Hq5CZrvjwC5zOC8kOCd8RlbrZ7pKApe/44Uo DdcWiGXI+OH89UcokawnMQnDzcodCRVyNoteSkDA5lIHOj3EX+6+IozzjhA0xumjWcxp0A caeJhPHYULcZ9DRMgaLA7y+Ue3XSt1QVVk4Dbt30hDLNjAvmDU7QvplQLJiiHyE324VLKP 5XKMN66MpJb9r84iafJgjD+UryNceF7bYO4Ro2v0YcSWQhjoz5FaG7AezPI7wb7IcHYRdT I9hCeXxKvrQuFOyTOdi3xob2314g1WLi4HTAYkU1izqFc5yibXNttfx2aGoLFw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656627361; a=rsa-sha256; cv=none; b=m30mqqFFwH60T2DveE9+Qpf8p1uXWNAHM13D+FafF5mBqZph7nyTkgEToEjFRLB06S/TZn Nx6Q69x/6F6ffJUDtqNFNMxS8oK6tP8WvZomW6wbFrnG4pHjzvQ84kOL0vJcozTZImve53 Cj03aAtdVnPTkzd7lGPdrE1dal55lWKHiVuIRfGM8mu8ZF+i9ewSR8Qn01/ksZYDQniTVx /gtZ7FJ8wwhSqrbLEMwv1SB3xbI+yt6s9dnG+XqZDQGMRonzGu3Af8gPDMHCxY04B0TY6w LSGeX0N9al1rXuUVfn3kp8RgBHlataz1knhicXbgJmEjBp5D33MQZUCs95aS7w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e5ed417bb442cddece6ffbd6f2ec87d70520241a commit e5ed417bb442cddece6ffbd6f2ec87d70520241a Author: John Baldwin AuthorDate: 2022-06-30 22:14:36 +0000 Commit: John Baldwin CommitDate: 2022-06-30 22:14:36 +0000 bhyve: Document the "type" config variable for network device models. --- usr.sbin/bhyve/bhyve_config.5 | 50 +++++++++++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/usr.sbin/bhyve/bhyve_config.5 b/usr.sbin/bhyve/bhyve_config.5 index bd4f3fb22ed3..20109170b094 100644 --- a/usr.sbin/bhyve/bhyve_config.5 +++ b/usr.sbin/bhyve/bhyve_config.5 @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd March 2, 2022 +.Dd June 30, 2022 .Dt BHYVE_CONFIG 5 .Os .Sh NAME @@ -336,16 +336,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 @@ -368,14 +373,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"