]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r345269, r345323
authorVincenzo Maffione <vmaffione@FreeBSD.org>
Mon, 1 Apr 2019 10:51:24 +0000 (10:51 +0000)
committerVincenzo Maffione <vmaffione@FreeBSD.org>
Mon, 1 Apr 2019 10:51:24 +0000 (10:51 +0000)
commit7af42e831191452c43cd97317624361b43125f3d
tree3c0bc0ff5c45bc95f6a9089380e65c5e32aac4d5
parent16ccb3807ce8fbaf731303169044bfa36cbc0cbe
MFC r345269, r345323

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.
sys/dev/netmap/netmap.c
sys/dev/netmap/netmap_legacy.c
sys/dev/netmap/netmap_mem2.c
sys/net/netmap.h
sys/net/netmap_legacy.h
sys/net/netmap_user.h
tests/sys/netmap/ctrl-api-test.c