<feed xmlns='http://www.w3.org/2005/Atom'>
<title>freebsd-src.git/tests/atf_python/sys, branch main</title>
<subtitle>FreeBSD sources</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/freebsd-src.git/'/>
<entry>
<title>ipfw: add support for masked ip-address lookups</title>
<updated>2026-03-01T19:04:58+00:00</updated>
<author>
<name>Boris Lytochkin</name>
<email>lytboris@gmail.com</email>
</author>
<published>2026-03-01T18:54:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/freebsd-src.git/commit/?id=32cd3ee5901ea33d41ff550e5f40ce743c8d4165'/>
<id>32cd3ee5901ea33d41ff550e5f40ce743c8d4165</id>
<content type='text'>
Current radix-based implementation of lookup tables in ipfw does
not support non-contiguous prefixes while this type of lookup is
needed to write CPU-effective firewall configurations.

For some of the cases we can reach the goal using a masked table
lookup by adding masked (e.g. zero non-significant bits) records
into a table and then zero non-significant bits in lookup key
prior to making a table lookup.

Obtained from:  Yandex LLC
MFC after:      3 weeks
Relnotes:       yes
Sponsored by:   Yandex LLC
Differential Revision:  https://reviews.freebsd.org/D53694
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Current radix-based implementation of lookup tables in ipfw does
not support non-contiguous prefixes while this type of lookup is
needed to write CPU-effective firewall configurations.

For some of the cases we can reach the goal using a masked table
lookup by adding masked (e.g. zero non-significant bits) records
into a table and then zero non-significant bits in lookup key
prior to making a table lookup.

Obtained from:  Yandex LLC
MFC after:      3 weeks
Relnotes:       yes
Sponsored by:   Yandex LLC
Differential Revision:  https://reviews.freebsd.org/D53694
</pre>
</div>
</content>
</entry>
<entry>
<title>atf_python/vnet: Make it possible to set the FIB of vnet interfaces</title>
<updated>2026-02-13T16:02:09+00:00</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-02-13T15:50:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/freebsd-src.git/commit/?id=a8b8feced998c8c74f9a572f069bcb689cabd09d'/>
<id>a8b8feced998c8c74f9a572f069bcb689cabd09d</id>
<content type='text'>
Reviewed by:	zlei, ngie
MFC after:	1 week
Sponsored by:	Stormshield
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D54972
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	zlei, ngie
MFC after:	1 week
Sponsored by:	Stormshield
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D54972
</pre>
</div>
</content>
</entry>
<entry>
<title>atf_python: Run vnet handlers in $HOME</title>
<updated>2026-02-02T16:54:54+00:00</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-02-02T14:52:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/freebsd-src.git/commit/?id=07940d1d85eb338853fcba0697c6b9a96412a7f2'/>
<id>07940d1d85eb338853fcba0697c6b9a96412a7f2</id>
<content type='text'>
When kyua runs a test, it creates a temp directory and sets $HOME to
point to it.  Tests are run with the cwd set to that temp directory.

When a process attaches to a jail, its cwd is set to the root of the
jail.  Modify atf_python to cd to $HOME instead, so that it's easier for
tests to share files.

Reviewed by:	zlei, ngie
MFC after:	2 weeks
Sponsored by:	Stormshield
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D54971
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When kyua runs a test, it creates a temp directory and sets $HOME to
point to it.  Tests are run with the cwd set to that temp directory.

When a process attaches to a jail, its cwd is set to the root of the
jail.  Modify atf_python to cd to $HOME instead, so that it's easier for
tests to share files.

Reviewed by:	zlei, ngie
MFC after:	2 weeks
Sponsored by:	Stormshield
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D54971
</pre>
</div>
</content>
</entry>
<entry>
<title>atf_python: support setting interface mtu</title>
<updated>2025-12-22T16:28:33+00:00</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2025-12-21T10:28:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/freebsd-src.git/commit/?id=4f35a84b32412f5cf54e08cd97cd6eee407fb30e'/>
<id>4f35a84b32412f5cf54e08cd97cd6eee407fb30e</id>
<content type='text'>
Teach the vnet support code to set interface MTU. Some tests make use of
this, so have the framework handle it.

Adapt a few pf tests to use this.

Reviewed by:	melifaro
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D54333
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Teach the vnet support code to set interface MTU. Some tests make use of
this, so have the framework handle it.

Adapt a few pf tests to use this.

Reviewed by:	melifaro
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D54333
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/ipfw: Update regression tests to match new 32-bit size rule numbers</title>
<updated>2025-10-03T11:06:49+00:00</updated>
<author>
<name>Olivier Cochard</name>
<email>olivier@FreeBSD.org</email>
</author>
<published>2025-10-03T10:56:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/freebsd-src.git/commit/?id=01d5a6f30ce8f5006bd9d5528a487ef4d79c48c3'/>
<id>01d5a6f30ce8f5006bd9d5528a487ef4d79c48c3</id>
<content type='text'>
Commit 4a77657cbc01 increased the size of several opcodes to ipfw_insn_u32.

Approved by:	ae
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D52876
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit 4a77657cbc01 increased the size of several opcodes to ipfw_insn_u32.

Approved by:	ae
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D52876
</pre>
</div>
</content>
</entry>
<entry>
<title>atf_python: allow test scripts to pass jail options</title>
<updated>2025-09-30T12:53:17+00:00</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2025-09-27T14:38:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/freebsd-src.git/commit/?id=2213e158886f72f45f288c94069a9a40c4f334ed'/>
<id>2213e158886f72f45f288c94069a9a40c4f334ed</id>
<content type='text'>
Test scripts based on atf_python can now pass jail command options via the
'opts' key in the 'vnetX' key of TOPOLOGY.

Reviewed by:	melifaro
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D52761
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test scripts based on atf_python can now pass jail command options via the
'opts' key in the 'vnetX' key of TOPOLOGY.

Reviewed by:	melifaro
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D52761
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: disable transmit checksum offloading for epair interfaces</title>
<updated>2025-09-04T11:52:37+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-09-04T11:52:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/freebsd-src.git/commit/?id=bd8296e7173aa625f6d4d766aac2df6be639e49a'/>
<id>bd8296e7173aa625f6d4d766aac2df6be639e49a</id>
<content type='text'>
When transmit checksum offloading is enabled, if_epair does not
compute checksums, it just marks packets that this computation still
needs to be done. However, some test cases verify the checksum.
Therefore disable this for IPv4 and IPv6.

Reviewed by:		kp
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D52379
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When transmit checksum offloading is enabled, if_epair does not
compute checksums, it just marks packets that this computation still
needs to be done. However, some test cases verify the checksum.
Therefore disable this for IPv4 and IPv6.

Reviewed by:		kp
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D52379
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Get the MAC from the epairs.</title>
<updated>2025-07-09T15:38:08+00:00</updated>
<author>
<name>Ronald Klop</name>
<email>ronald@klop.ws</email>
</author>
<published>2025-07-09T08:00:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/freebsd-src.git/commit/?id=9c95fcb7cd20bdb0e9445ec98a06d24ce0d5d2ac'/>
<id>9c95fcb7cd20bdb0e9445ec98a06d24ce0d5d2ac</id>
<content type='text'>
This removes knowledge of the implementation of if_epair.
Makes it easier to modify if_epair in future commits.

Reviewed by:	kp
Differential Revision:	https://reviews.freebsd.org/D51205
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This removes knowledge of the implementation of if_epair.
Makes it easier to modify if_epair in future commits.

Reviewed by:	kp
Differential Revision:	https://reviews.freebsd.org/D51205
</pre>
</div>
</content>
</entry>
<entry>
<title>aft_python: fix incorrect ndp use</title>
<updated>2025-05-08T13:10:26+00:00</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2025-05-07T15:29:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/freebsd-src.git/commit/?id=6ae89b2f152f9770646bdd66e53df702b99eb0ad'/>
<id>6ae89b2f152f9770646bdd66e53df702b99eb0ad</id>
<content type='text'>
If we want to clear a flag we have to include '--' before the flag we clear,
otherwise ndp will misparse our command (the getopt call will interpret it as
another option, and reject it).

This caused spurious errors at the end of every atf_python test case such as:

	============================== 1 passed in 7.26s ===============================
	usage: ndp [-nt] hostname
	       ndp [-nt] -a | -c | -p | -r | -H | -P | -R
	       ndp [-nt] -A wait
	       ndp [-nt] -d hostname
	       ndp [-nt] -f filename
	       ndp [-nt] -i interface [flags...]
	       ndp [-nt] -I [interface|delete]
	       ndp [-nt] -s nodename etheraddr [temp] [proxy]

Sponsored by:	Rubicon Communications, LLC ("Netgate")
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we want to clear a flag we have to include '--' before the flag we clear,
otherwise ndp will misparse our command (the getopt call will interpret it as
another option, and reject it).

This caused spurious errors at the end of every atf_python test case such as:

	============================== 1 passed in 7.26s ===============================
	usage: ndp [-nt] hostname
	       ndp [-nt] -a | -c | -p | -r | -H | -P | -R
	       ndp [-nt] -A wait
	       ndp [-nt] -d hostname
	       ndp [-nt] -f filename
	       ndp [-nt] -i interface [flags...]
	       ndp [-nt] -I [interface|delete]
	       ndp [-nt] -s nodename etheraddr [temp] [proxy]

Sponsored by:	Rubicon Communications, LLC ("Netgate")
</pre>
</div>
</content>
</entry>
<entry>
<title>vnet tests: verify that we can load if_epair and if_bridge</title>
<updated>2024-07-23T13:57:25+00:00</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2024-07-18T20:36:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/freebsd-src.git/commit/?id=ae8d58814089308028046ac80aeeb9cbb784bd0a'/>
<id>ae8d58814089308028046ac80aeeb9cbb784bd0a</id>
<content type='text'>
We're going to start running many of the vnet tests in nested jails (so they
can run in parallel). That means the tests won't be able to load kernel modules,
which we commonly do for if_epair and if_bridge.

Just assume that all vnet tests need this, because so many of them do that we
don't want to manually annotate all of them.
This is essentially a no-op on non-nested tests.

Do the same for the python test framework.

While here also have pflog_init actually call pft_init. While having pflog
loaded implies we have pf too pft_init also checks for vimage support, and now
for if_epair.

Reviewed by:	markj
MFC after:	1 month
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D46039
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We're going to start running many of the vnet tests in nested jails (so they
can run in parallel). That means the tests won't be able to load kernel modules,
which we commonly do for if_epair and if_bridge.

Just assume that all vnet tests need this, because so many of them do that we
don't want to manually annotate all of them.
This is essentially a no-op on non-nested tests.

Do the same for the python test framework.

While here also have pflog_init actually call pft_init. While having pflog
loaded implies we have pf too pft_init also checks for vimage support, and now
for if_epair.

Reviewed by:	markj
MFC after:	1 month
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D46039
</pre>
</div>
</content>
</entry>
</feed>
