Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
show more ...
netmap: fix copyin/copyout of nmreq options listThe previous code unsuccesfully attempted to report a precise error foreach option in the user list. Moreover, commit 253b2ec199b broke somectrl-ap
netmap: fix copyin/copyout of nmreq options listThe previous code unsuccesfully attempted to report a precise error foreach option in the user list. Moreover, commit 253b2ec199b broke somectrl-api-test (see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260547).With this patch we bail out as soon as an unrecoverable error is detected andwe properly check for copy boundaries. EOPNOTSUPP no longer immediatelyreturns an error, so that any other option in the list may be examinedby the caller code and a precise report of the (un)supported options canbe returned to the user.With this patch, all ctrl-api-test unit tests pass again.PR: 260547Submitted by: [email protected]Reviewed by: vmaffioneMFC after: 14 days
netmap tests: Reset ctx->nmctx to NULL in nmreq_parsing.This avoids leaking a pointer to the on-stack test_nmctx whichtriggers a -Wdangling-pointer warning from GCC.Reviewed by: imp, emasteDiff
netmap tests: Reset ctx->nmctx to NULL in nmreq_parsing.This avoids leaking a pointer to the on-stack test_nmctx whichtriggers a -Wdangling-pointer warning from GCC.Reviewed by: imp, emasteDifferential Revision: https://reviews.freebsd.org/D37536
netmap: update unit tests with libnetmap tests
netmap: several typo fixesNo functional changes intended.
Do a sweep and remove most WARNS=6 settingsRepeating the default WARNS here makes it slightly more difficult toexperiment with default WARNS changes, e.g. if we did something absolutelybananas an
Do a sweep and remove most WARNS=6 settingsRepeating the default WARNS here makes it slightly more difficult toexperiment with default WARNS changes, e.g. if we did something absolutelybananas and introduced a WARNS=7 and wanted to try lifting the default tothat.Drop most of them; there is one in the blake2 kernel module, but I suspectit should be dropped -- the default WARNS in the rest of the build doesn'tcurrently apply to kernel modules, and I haven't put too much thought intowhether it makes sense to make it so.
netmap: add test cases for multiple host ringsExtend the netmap unit tests with new test cases for the multiple-host-ringsfeature introduced by r345269.MFC after: 1 week
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. Libr
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: 237129Reviewed by: vmaffioneApproved by: emaste (mentor)MFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D19864
Skip this test if if_tap module is not availablePR: 236842Approved by: asomersMFC after: 1 monthSponsored by: Netflix
netmap: update unit testsRevision r345269 introduced changes that triggered a regression on netmapunit tests (tests/sys/netmap/ctrl-api-test.c).This change updates the unit tests to remove the re
netmap: update unit testsRevision r345269 introduced changes that triggered a regression on netmapunit tests (tests/sys/netmap/ctrl-api-test.c).This change updates the unit tests to remove the regression.Reported by: lwhsuMFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D19639
netmap: unit tests: fix issues found by coverity scanReported by: asomersMFC after: 1 weekSponsored by: Sunny Valley Networks
netmap: fix warnings on unit testsFix some printf() format string warnings raised for ctrl-api-test.con some architectures.MFC after: 1 weekSponsored by: Sunny Valley Networks
netmap: 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
netmap: 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: ngieMFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D18490