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, Nov 30, 3:04 AM
Unknown Object (File)
Sat, Nov 30, 2:59 AM
Unknown Object (File)
Thu, Nov 14, 9:15 PM
Unknown Object (File)
Oct 15 2024, 2:11 PM
Unknown Object (File)
Oct 15 2024, 2:11 PM
Unknown Object (File)
Oct 15 2024, 1:57 PM
Unknown Object (File)
Sep 18 2024, 2:42 AM
Unknown Object (File)
Sep 5 2024, 12:46 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...