HomeFreeBSD

netmap: add support for multiple host rings

Description

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.

MFC after: 2 weeks

Details

Provenance
vmaffioneAuthored on
Parents
rS345268: MFC: r344756, r345179:
Branches
Unknown
Tags
Unknown