Page MenuHomeFreeBSD

netmap: Add some simple regression tests
Needs ReviewPublic

Authored by markj on Apr 5 2023, 3:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 2:11 AM
Unknown Object (File)
Fri, Apr 5, 2:04 PM
Unknown Object (File)
Sun, Mar 31, 12:46 PM
Unknown Object (File)
Dec 23 2023, 1:05 AM
Unknown Object (File)
Dec 10 2023, 9:16 PM
Unknown Object (File)
Dec 3 2023, 4:10 AM
Unknown Object (File)
Nov 17 2023, 5:38 PM
Unknown Object (File)
Aug 14 2023, 10:52 PM

Details

Reviewers
vmaffione
Summary

These test functionality of netmap's generic mode combined with several
types of software interfaces: currently just bridges, vlans and epairs.
To be added are tests for lagg and tap.

The test code includes a copy of bridge.c which has some functionality
removed and prints the number of packets forwarded in each direction.
This can be used to check that userspace indeed receives an expected
number of packets.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 50772
Build 47663: arc lint + arc unit

Event Timeline

markj requested review of this revision.Apr 5 2023, 3:52 PM

If useful, please note that there are already a bunch of integration tests in the github netmap repo, e.g.:
https://github.com/luigirizzo/netmap/blob/master/utils/randomized_tests

A short description here https://github.com/luigirizzo/netmap/blob/master/utils/README

If useful, please note that there are already a bunch of integration tests in the github netmap repo, e.g.:
https://github.com/luigirizzo/netmap/blob/master/utils/randomized_tests

A short description here https://github.com/luigirizzo/netmap/blob/master/utils/README

Oh, interesting. Do you think this could be integrated into FreeBSD's test suite without too much pain?

Sorry for the delay. I've little experience with the FreeBSD test suite, so I wouldn't know...