<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/netmap/netmap_mem2.c, branch release/12.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>http://cgit.freebsd.org/src/atom?h=release%2F12.2.0</id>
<link rel='self' href='http://cgit.freebsd.org/src/atom?h=release%2F12.2.0'/>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<updated>2020-01-29T22:55:59Z</updated>
<entry>
<title>MFC r357159</title>
<updated>2020-01-29T22:55:59Z</updated>
<author>
<name>Vincenzo Maffione</name>
<email>vmaffione@FreeBSD.org</email>
</author>
<published>2020-01-29T22:55:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ec498ecdd13484a73d8a0550f1ac457ff7ad9ef4'/>
<id>urn:sha1:ec498ecdd13484a73d8a0550f1ac457ff7ad9ef4</id>
<content type='text'>
netmap_mem_unmap: fix NULL pointer dereference
</content>
</entry>
<entry>
<title>MFC r353775</title>
<updated>2019-10-27T09:28:33Z</updated>
<author>
<name>Vincenzo Maffione</name>
<email>vmaffione@FreeBSD.org</email>
</author>
<published>2019-10-27T09:28:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6f16222e76c3b8153a9e1deeb8dd91e0e28c54c1'/>
<id>urn:sha1:6f16222e76c3b8153a9e1deeb8dd91e0e28c54c1</id>
<content type='text'>
netmap: minor misc improvements

 - use ring-&gt;head rather than ring-&gt;cur in lb(8)
 - use strlcat() rather than strncat()
 - fix bandwidth computation in pkt-gen(8)
</content>
</entry>
<entry>
<title>MFC r351657</title>
<updated>2019-09-15T14:26:19Z</updated>
<author>
<name>Vincenzo Maffione</name>
<email>vmaffione@FreeBSD.org</email>
</author>
<published>2019-09-15T14:26:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3ca5cfaae880ab54469719c3c9fb224e75ac5005'/>
<id>urn:sha1:3ca5cfaae880ab54469719c3c9fb224e75ac5005</id>
<content type='text'>
netmap: import changes from upstream (SHA 137f537eae513)

 - Rework option processing.
 - Use larger integers for memory size values in the
   memory management code.
</content>
</entry>
<entry>
<title>MFC r349753</title>
<updated>2019-07-11T20:14:59Z</updated>
<author>
<name>Vincenzo Maffione</name>
<email>vmaffione@FreeBSD.org</email>
</author>
<published>2019-07-11T20:14:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1d3fb0e3bcdac568256f85967465fd405233ec77'/>
<id>urn:sha1:1d3fb0e3bcdac568256f85967465fd405233ec77</id>
<content type='text'>
netmap: Remove pointer leakage in netmap_mem2.c

PR:             238641
Submitted by:   Fuqian Huang &lt;huangfq.daxian@gmail.com&gt;
Reviewed by:    vmaffione
</content>
</entry>
<entry>
<title>MFC r345269, r345323</title>
<updated>2019-04-01T10:51:24Z</updated>
<author>
<name>Vincenzo Maffione</name>
<email>vmaffione@FreeBSD.org</email>
</author>
<published>2019-04-01T10:51:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7af42e831191452c43cd97317624361b43125f3d'/>
<id>urn:sha1:7af42e831191452c43cd97317624361b43125f3d</id>
<content type='text'>
netmap: add support for multiple host rings

Some applications forward from/to host rings most or all the
traffic received or sent on a physical interface. In this
cases it is desirable to have more than a pair of RX/TX host
rings, and use multiple threads to speed up forwarding.
This change adds support for multiple host rings. On registering
a netmap port, the user can specify the number of desired receive
and transmit host rings in the nr_host_tx_rings and nr_host_rx_rings
fields of the nmreq_register structure.
</content>
</entry>
<entry>
<title>MFC r343772, r343867</title>
<updated>2019-02-12T09:07:46Z</updated>
<author>
<name>Vincenzo Maffione</name>
<email>vmaffione@FreeBSD.org</email>
</author>
<published>2019-02-12T09:07:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=01e8e2c2d6d31a2e328e090ab1feda3a68c0d094'/>
<id>urn:sha1:01e8e2c2d6d31a2e328e090ab1feda3a68c0d094</id>
<content type='text'>
netmap: refactor logging macros and pipes

Changelist:
    - Replace ND, D and RD macros with nm_prdis, nm_prinf, nm_prerr
      and nm_prlim, to avoid possible naming conflicts.
    - Add netmap_krings_mode_commit() helper function and use that
      to reduce code duplication.
    - Refactor pipes control code to export some functions that
      can be reused by the veth driver (on Linux) and epair(4).
    - Add check to reject API requests with version less than 11.
    - Small code refactoring for the null adapter.
</content>
</entry>
<entry>
<title>MFC r341516, r341589</title>
<updated>2018-12-11T11:31:13Z</updated>
<author>
<name>Vincenzo Maffione</name>
<email>vmaffione@FreeBSD.org</email>
</author>
<published>2018-12-11T11:31:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b321acab165f6ab6e821be03895eb40e5bff6fe7'/>
<id>urn:sha1:b321acab165f6ab6e821be03895eb40e5bff6fe7</id>
<content type='text'>
netmap: align codebase to the current upstream (760279cfb2730a585)

Changelist:
  - Replace netmap passthrough host support with a more general
    mechanism to call TXSYNC/RXSYNC from an in-kernel event-loop.
    No kernel threads are used to use this feature: the application
    is required to spawn a thread (or a process) and issue a
    SYNC_KLOOP_START (NIOCCTRL) command in the thread body. The
    kernel loop is executed by the ioctl implementation, which returns
    to userspace only when a different thread calls SYNC_KLOOP_STOP
    or the netmap file descriptor is closed.
  - Update the if_ptnet driver to cope with the new data structures,
    and prune all the obsolete ptnetmap code.
  - Add support for "null" netmap ports, useful to allocate netmap_if,
    netmap_ring and netmap buffers to be used by specialized applications
    (e.g. hypervisors). TXSYNC/RXSYNC on these ports have no effect.
  - Various fixes and code refactoring.

Sponsored by:	Sunny Valley Networks
Differential Revision:	https://reviews.freebsd.org/D18015
</content>
</entry>
<entry>
<title>MFC r339639:</title>
<updated>2018-10-30T08:36:36Z</updated>
<author>
<name>Vincenzo Maffione</name>
<email>vmaffione@FreeBSD.org</email>
</author>
<published>2018-10-30T08:36:36Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d740f837946a032c60ddba5cc4cbf899eb4fbaee'/>
<id>urn:sha1:d740f837946a032c60ddba5cc4cbf899eb4fbaee</id>
<content type='text'>
netmap: align codebase to the current upstream (sha 8374e1a7e6941)

Changelist:
    - Move large parts of VALE code to a new file and header netmap_bdg.[ch].
      This is useful to reuse the code within upcoming projects.
    - Improvements and bug fixes to pipes and monitors.
    - Introduce nm_os_onattach(), nm_os_onenter() and nm_os_onexit() to
      handle differences between FreeBSD and Linux.
    - Introduce some new helper functions to handle more host rings and fake
      rings (netmap_all_rings(), netmap_real_rings(), ...)
    - Added new sysctl to enable/disable hw checksum in emulated netmap mode.
    - nm_inject: add support for NS_MOREFRAG

Approved by: re (gjb)
</content>
</entry>
<entry>
<title>netmap: pull fix for 32-bit support from upstream</title>
<updated>2018-05-18T03:38:17Z</updated>
<author>
<name>Matt Macy</name>
<email>mmacy@FreeBSD.org</email>
</author>
<published>2018-05-18T03:38:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=cfa866f6a1ba4798cd6d877f0f0e4f45227efb9c'/>
<id>urn:sha1:cfa866f6a1ba4798cd6d877f0f0e4f45227efb9c</id>
<content type='text'>
Approved by:	sbruno
</content>
</entry>
<entry>
<title>netmap: align codebase to the current upstream (commit id 3fb001303718146)</title>
<updated>2018-04-12T07:20:50Z</updated>
<author>
<name>Vincenzo Maffione</name>
<email>vmaffione@FreeBSD.org</email>
</author>
<published>2018-04-12T07:20:50Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2ff91c175eca50b7d0d9da6b31eae4109c034137'/>
<id>urn:sha1:2ff91c175eca50b7d0d9da6b31eae4109c034137</id>
<content type='text'>
Changelist:
    - Turn tx_rings and rx_rings arrays into arrays of pointers to kring
      structs. This patch includes fixes for ixv, ixl, ix, re, cxgbe, iflib,
      vtnet and ptnet drivers to cope with the change.
    - Generalize the nm_config() callback to accept a struct containing many
      parameters.
    - Introduce NKR_FAKERING to support buffers sharing (used for netmap
      pipes)
    - Improved API for external VALE modules.
    - Various bug fixes and improvements to the netmap memory allocator,
      including support for externally (userspace) allocated memory.
    - Refactoring of netmap pipes: now linked rings share the same netmap
      buffers, with a separate set of kring pointers (rhead, rcur, rtail).
      Buffer swapping does not need to happen anymore.
    - Large refactoring of the control API towards an extensible solution;
      the goal is to allow the addition of more commands and extension of
      existing ones (with new options) without the need of hacks or the
      risk of running out of configuration space.
      A new NIOCCTRL ioctl has been added to handle all the requests of the
      new control API, which cover all the functionalities so far supported.
      The netmap API bumps from 11 to 12 with this patch. Full backward
      compatibility is provided for the old control command (NIOCREGIF), by
      means of a new netmap_legacy module. Many parts of the old netmap.h
      header has now been moved to netmap_legacy.h (included by netmap.h).

Approved by:	hrs (mentor)
</content>
</entry>
</feed>
