<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/tests/sys/net, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-05-20T20:55:11Z</updated>
<entry>
<title>routing: Add tests for metric</title>
<updated>2026-05-20T20:55:11Z</updated>
<author>
<name>Pouria Mousavizadeh Tehrani</name>
<email>pouria@FreeBSD.org</email>
</author>
<published>2026-05-15T14:03:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bc301fee4cb2c3e9ce220dc3e0cbb9d7d5a83d6f'/>
<id>urn:sha1:bc301fee4cb2c3e9ce220dc3e0cbb9d7d5a83d6f</id>
<content type='text'>
Add tests to make sure:
* Default metric is enforced.
* Lowest metric wins.
* Deleting routes by specifying gateway/metric works.

Reviewed by:	markj
Differential Revision: https://reviews.freebsd.org/D57016
</content>
</entry>
<entry>
<title>tests/if_lagg: Minor improvements</title>
<updated>2026-05-03T21:51:50Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-05-03T15:48:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=47ae0135d461854b72b905ac77bf3e1f5b2868bc'/>
<id>urn:sha1:47ae0135d461854b72b905ac77bf3e1f5b2868bc</id>
<content type='text'>
- Set require.kmods instead of relying on ifconfig to load if_lagg.ko,
  as this doesn't work when running within a jail.
- Simplify helper functions which create tap and lagg devices.

MFC after:	1 week
</content>
</entry>
<entry>
<title>sys.net.if_wg.wg_key_peerdev_makeshared: Add require metadata</title>
<updated>2026-04-28T17:27:26Z</updated>
<author>
<name>Li-Wen Hsu</name>
<email>lwhsu@FreeBSD.org</email>
</author>
<published>2026-04-28T17:06:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=41c5a4a2f888765b513efb13befe32fa084ad7cb'/>
<id>urn:sha1:41c5a4a2f888765b513efb13befe32fa084ad7cb</id>
<content type='text'>
Add require.user root and require.kmods if_wg to
wg_key_peerdev_makeshared_head(), consistent with the other wg tests.

Without if_wg.ko causes ifconfig wg create to fail with EINVAL.  The
test also needs root to create jails.

Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>tests: Temporarily skip two testcases</title>
<updated>2026-04-27T19:17:22Z</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2026-04-27T19:17:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=afa4648b6a30603faab56b649605a3393eac9986'/>
<id>urn:sha1:afa4648b6a30603faab56b649605a3393eac9986</id>
<content type='text'>
The changes [1] and [2] made to CURRENT introduce races between ifnet
detach and vmove operations. That requires extra effort to fix. They
are not MFCed to stable branches so the latter are not affected.
Temporarily skip two affected tests on CURRENT right now.

[1] 0bf42a0a05b9 bpf: virtualize bpf_iflist
[2] a4d766caf711 bpf: add a crutch to support if_vmove

PR:		292993
Discussed with:	kp
</content>
</entry>
<entry>
<title>tests/net/if_clone_test: Add a test for races between if_detach() and if_vmove_reclaim()</title>
<updated>2026-04-27T19:17:21Z</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2026-04-27T19:17:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f4be16983dea4904f85ac20e921ad2a8c18a0f79'/>
<id>urn:sha1:f4be16983dea4904f85ac20e921ad2a8c18a0f79</id>
<content type='text'>
Ideally we shall have tests for all possible races. It is races between
if_detach(), if_vmove_loan(), if_vmove_reclaim() and vnet_if_return().
Well that requires too many tests and it appears to be less valuable to
have them all. So focus on potential in future regressions related to
recent fixes [1] and [2] only.

[1] ee9456ce3753 ifnet: Fix races in if_vmove_reclaim()
[2] ba7f47d47dc1 ifnet: if_detach(): Fix races with vmove operations

MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D56606
</content>
</entry>
<entry>
<title>tests/sys/net: Set require.kmods where appropriate</title>
<updated>2026-04-21T16:13:19Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-04-21T14:30:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=30b7621d46cc06053c0cb40bb691fbcecbfdab7f'/>
<id>urn:sha1:30b7621d46cc06053c0cb40bb691fbcecbfdab7f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>geneve: Add tests for geneve</title>
<updated>2026-04-13T14:15:04Z</updated>
<author>
<name>Pouria Mousavizadeh Tehrani</name>
<email>pouria@FreeBSD.org</email>
</author>
<published>2026-04-11T18:45:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=aa9f669d09a7a193d470477398815f45a42c0270'/>
<id>urn:sha1:aa9f669d09a7a193d470477398815f45a42c0270</id>
<content type='text'>
Add tests for each combinations of geneve modes, address families
and multicast.

Differential Revision: https://reviews.freebsd.org/D55183
</content>
</entry>
<entry>
<title>tests/net/bpf: skip the bpf:inject test when RSS is present</title>
<updated>2026-03-05T04:04:11Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2026-03-05T04:04:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1abb62867f2a36acb689fdfed62af00b78d8f324'/>
<id>urn:sha1:1abb62867f2a36acb689fdfed62af00b78d8f324</id>
<content type='text'>
With RSS the epair(4) may reorder packets making the test flaky. See
net/if_epair.c:epair_select_queue().
</content>
</entry>
<entry>
<title>tests/net/bpf: hexdump(3) the packets if compare fails</title>
<updated>2026-03-05T03:57:59Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2026-03-05T03:57:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d4083fb836cf5d06a2bc2d6fe7297fb5139c8fc6'/>
<id>urn:sha1:d4083fb836cf5d06a2bc2d6fe7297fb5139c8fc6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests/if_ovpn: add missing cleanup to the multihome6 test</title>
<updated>2026-01-15T21:40:33Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2026-01-15T21:40:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=77f453e9f9cafaf5e787c5bfd29966066d6b9dc3'/>
<id>urn:sha1:77f453e9f9cafaf5e787c5bfd29966066d6b9dc3</id>
<content type='text'>
Fixes:	0bfcfb3cb1cbfa383cbd24eff39d39f143eb63ba
</content>
</entry>
</feed>
