MFC r346184netmap: add test cases for multiple host ringsExtend the netmap unit tests with new test cases for the multiple-host-ringsfeature introduced by r345269.
MFC r345644,r346061:r345644 (by olivier):Skip this test if if_tap module is not availablePR: 236842r346061:Polish netmap(4) testcases a bit1. Not all kernels have netmap(4) support. Chec
MFC r345644,r346061:r345644 (by olivier):Skip this test if if_tap module is not availablePR: 236842r346061:Polish netmap(4) testcases a bit1. Not all kernels have netmap(4) support. Check for netmap(4) support before attempting to run the tests via the `PLAIN_REQUIRE_KERNEL_MODULE(..)` macro.2. Libraries shouldn't be added to LDFLAGS; they should be added to LIBADD instead. This allows the build system to evaluate dependencies for sanity.3. Sort some of the Makefile variables per bsd.README.1., in particular, will resolve failures when running this testcase on kernelslacking netmap(4) support, e.g., the i386 GENERIC kernels on ^/stable/11 and^/stable/12.PR: 237129
show more ...
MFC r345269, r345323netmap: add support for multiple host ringsSome applications forward from/to host rings most or all thetraffic received or sent on a physical interface. In thiscases it is d
MFC r345269, r345323netmap: add support for multiple host ringsSome applications forward from/to host rings most or all thetraffic received or sent on a physical interface. In thiscases it is desirable to have more than a pair of RX/TX hostrings, and use multiple threads to speed up forwarding.This change adds support for multiple host rings. On registeringa netmap port, the user can specify the number of desired receiveand transmit host rings in the nr_host_tx_rings and nr_host_rx_ringsfields of the nmreq_register structure.
MFC r342737netmap: unit tests: fix issues found by coverity scanReported by: asomersSponsored by: Sunny Valley Networks
MFC r342649, r342650netmap: add suite of unit testsImport the unit tests from upstream (https://github.com/luigirizzo/netmapba02539859d46d33), and make them ready for use with Kyua.There are cu
MFC r342649, r342650netmap: add suite of unit testsImport the unit tests from upstream (https://github.com/luigirizzo/netmapba02539859d46d33), and make them ready for use with Kyua.There are currently 38 regression tests, which test the kernel control ABIexposed by netmap to userspace applications: 1: test for port info get 2-5: tests for basic port registration 6-9: tests for VALE 10-11: tests for getting netmap allocator info 12-15: tests for netmap pipes 16: test on polling mode 17-18: tests on options 19-27: tests for sync-kloop subsystem 28-39: tests for null ports 31-38: tests for the legacy NIOCREGIF registersReviewed by: ngieSponsored by: Sunny Valley NetworksDifferential Revision: https://reviews.freebsd.org/D18490