From owner-svn-src-head@freebsd.org Fri Jan 24 11:22:34 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 49F5F2351AD; Fri, 24 Jan 2020 11:22:34 +0000 (UTC) (envelope-from n_hibma@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 483xZL1CVYz3P0c; Fri, 24 Jan 2020 11:22:34 +0000 (UTC) (envelope-from n_hibma@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2490C26905; Fri, 24 Jan 2020 11:22:34 +0000 (UTC) (envelope-from n_hibma@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 00OBMXC9052109; Fri, 24 Jan 2020 11:22:33 GMT (envelope-from n_hibma@FreeBSD.org) Received: (from n_hibma@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 00OBMXeq052108; Fri, 24 Jan 2020 11:22:33 GMT (envelope-from n_hibma@FreeBSD.org) Message-Id: <202001241122.00OBMXeq052108@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: n_hibma set sender to n_hibma@FreeBSD.org using -f From: Nick Hibma Date: Fri, 24 Jan 2020 11:22:33 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r357074 - head/share/man/man4 X-SVN-Group: head X-SVN-Commit-Author: n_hibma X-SVN-Commit-Paths: head/share/man/man4 X-SVN-Commit-Revision: 357074 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jan 2020 11:22:34 -0000 Author: n_hibma Date: Fri Jan 24 11:22:33 2020 New Revision: 357074 URL: https://svnweb.freebsd.org/changeset/base/357074 Log: Fix a few spacing issues to make the page more readable. Modified: head/share/man/man4/netmap.4 Modified: head/share/man/man4/netmap.4 ============================================================================== --- head/share/man/man4/netmap.4 Fri Jan 24 07:48:11 2020 (r357073) +++ head/share/man/man4/netmap.4 Fri Jan 24 11:22:33 2020 (r357074) @@ -985,7 +985,7 @@ interfaces, as in or even connect the NIC to the host stack using netmap .Dl bridge -i netmap:ix0 .Ss USING THE NATIVE API -The following code implements a traffic generator +The following code implements a traffic generator: .Pp .Bd -literal -compact #include @@ -1020,7 +1020,8 @@ void sender(void) } .Ed .Ss HELPER FUNCTIONS -A simple receiver can be implemented using the helper functions +A simple receiver can be implemented using the helper functions: +.Pp .Bd -literal -compact #define NETMAP_WITH_LIBS #include @@ -1049,6 +1050,7 @@ it is possible to do packet forwarding between ports swapping buffers. The buffer from the transmit ring is used to replenish the receive ring: +.Pp .Bd -literal -compact uint32_t tmp; struct netmap_slot *src, *dst;