<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/virtio/network, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>vtnet: remove M_HASHTYPE when there is only one pair of rx/tx queue</title>
<updated>2026-01-28T21:46:07+00:00</updated>
<author>
<name>Cheng Cui</name>
<email>cc@FreeBSD.org</email>
</author>
<published>2026-01-28T17:27:34+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=20285cad7a55ecd0020f51f3daee74db8b1ea5a0'/>
<id>20285cad7a55ecd0020f51f3daee74db8b1ea5a0</id>
<content type='text'>
Summary:
Doing so will let the upper layer know how to deal with software hash,
with benefits like inp_flowid can be set and m_pkthdr.flowid can be set
in output path.

Reviewed by: tuexen
Differential Revision: https://reviews.freebsd.org/D54929
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
Doing so will let the upper layer know how to deal with software hash,
with benefits like inp_flowid can be set and m_pkthdr.flowid can be set
in output path.

Reviewed by: tuexen
Differential Revision: https://reviews.freebsd.org/D54929
</pre>
</div>
</content>
</entry>
<entry>
<title>vtnet: improve consistency</title>
<updated>2025-12-19T16:44:20+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-12-19T16:44:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8da838ac31692e381adfc63d83ea49f2adabbf23'/>
<id>8da838ac31692e381adfc63d83ea49f2adabbf23</id>
<content type='text'>
Use sbuf_new_for_sysctl() instead of sbuf_new_auto() when exposing
the flags via sysctl.

MFC after:		1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use sbuf_new_for_sysctl() instead of sbuf_new_auto() when exposing
the flags via sysctl.

MFC after:		1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>vtnet: expose features via sysctl tree</title>
<updated>2025-12-19T16:38:35+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-12-19T16:38:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=634d9c0d111b630c3d63a1cf25d15c32a37afab8'/>
<id>634d9c0d111b630c3d63a1cf25d15c32a37afab8</id>
<content type='text'>
Right now the 64-bit flags field needs to be casted to a 32-bit field,
because clang warns if more than 32-bits are used.
Once clang is fixed, this restriction will be removed and more bits
will be added.

Reviewed by:		markj, Timo Völker
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D54288
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Right now the 64-bit flags field needs to be casted to a 32-bit field,
because clang warns if more than 32-bits are used.
Once clang is fixed, this restriction will be removed and more bits
will be added.

Reviewed by:		markj, Timo Völker
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D54288
</pre>
</div>
</content>
</entry>
<entry>
<title>vtnet: expose flags via sysctl tree</title>
<updated>2025-12-18T14:42:13+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-12-18T14:42:13+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e3a0571ad74d8429a95fcae9efc1d91cc109a337'/>
<id>e3a0571ad74d8429a95fcae9efc1d91cc109a337</id>
<content type='text'>
Provide the flags used for a vtnet interface via the sysctl tree.
This is mostly used for debugging purposes.

Reviewed by:		Timo Völker
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D54283
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Provide the flags used for a vtnet interface via the sysctl tree.
This is mostly used for debugging purposes.

Reviewed by:		Timo Völker
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D54283
</pre>
</div>
</content>
</entry>
<entry>
<title>vtnet: define flags in a consistent way</title>
<updated>2025-12-18T12:41:29+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-12-18T12:41:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e0c6c4ecfc755b78ac9135033053d2f15c62bf04'/>
<id>e0c6c4ecfc755b78ac9135033053d2f15c62bf04</id>
<content type='text'>
This allows adding flags in the upper 32 bits in a consistent way.
No functional change intended.

MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows adding flags in the upper 32 bits in a consistent way.
No functional change intended.

MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>vtnet: fix enabling/disabling tso</title>
<updated>2025-11-10T15:34:53+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-11-10T15:34:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4c50ac68166caf7e08c5a9984d63fa91490fa50d'/>
<id>4c50ac68166caf7e08c5a9984d63fa91490fa50d</id>
<content type='text'>
Transmit segment offloading depends on transmit checksum offloading.
Enforce that constraint. This also fixes a bug, since if_hwassist bits
are from the CSUM_ space, not from the IFCAP_ space.

PR:			290773
Reviewed by:		Timo Völker
Tested by:		lg@efficientip.com
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D53629
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Transmit segment offloading depends on transmit checksum offloading.
Enforce that constraint. This also fixes a bug, since if_hwassist bits
are from the CSUM_ space, not from the IFCAP_ space.

PR:			290773
Reviewed by:		Timo Völker
Tested by:		lg@efficientip.com
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D53629
</pre>
</div>
</content>
</entry>
<entry>
<title>vtnet: don't provide VIRTIO_NET_HDR_F_DATA_VALID</title>
<updated>2025-11-10T15:28:04+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-11-10T15:28:04+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=836b3cd9d7910aff5225e9e58189067ca03fae30'/>
<id>836b3cd9d7910aff5225e9e58189067ca03fae30</id>
<content type='text'>
According to section 5.1.6.2.1 of version 1.3 of the virtio
specification, the driver MUST NOT set VIRTIO_NET_HDR_F_DATA_VALID in
the flags. So don't do that.

Reviewed by: 		Timo Völker
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D53650
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
According to section 5.1.6.2.1 of version 1.3 of the virtio
specification, the driver MUST NOT set VIRTIO_NET_HDR_F_DATA_VALID in
the flags. So don't do that.

Reviewed by: 		Timo Völker
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D53650
</pre>
</div>
</content>
</entry>
<entry>
<title>vtnet: disable hardware TCP LRO by default</title>
<updated>2025-09-30T00:03:49+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-09-29T23:58:37+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6e4b811009d63f33c59d51f28fd4a030ca90843e'/>
<id>6e4b811009d63f33c59d51f28fd4a030ca90843e</id>
<content type='text'>
Hardware TCP LRO results in problems in settings with IP forwarding
being enabled. In case of nodes without IP forwarding, using
software LRO is also beneficial in general, since it can provide better
information about what was received on the wire.
Therefore, disable hardware TCP LRO by default.
By tuning the loader tunable, this can be changed.

PR:			263229
Reviewed by:		Timo Völker
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D52684
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Hardware TCP LRO results in problems in settings with IP forwarding
being enabled. In case of nodes without IP forwarding, using
software LRO is also beneficial in general, since it can provide better
information about what was received on the wire.
Therefore, disable hardware TCP LRO by default.
By tuning the loader tunable, this can be changed.

PR:			263229
Reviewed by:		Timo Völker
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D52684
</pre>
</div>
</content>
</entry>
<entry>
<title>vtnet: improve control of transmit offloading</title>
<updated>2025-09-28T09:01:18+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-09-28T09:01:18+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f2575d56c8c9a8acad4a61a3586546dff4febce1'/>
<id>f2575d56c8c9a8acad4a61a3586546dff4febce1</id>
<content type='text'>
Keep the hwassist flags for transmit checksum offload and transmit
segment offload in sync with the enabled capabilities.

Reported by:		Timo Völker
Reviewed by:		Timo Völker
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D52765
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Keep the hwassist flags for transmit checksum offload and transmit
segment offload in sync with the enabled capabilities.

Reported by:		Timo Völker
Reviewed by:		Timo Völker
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D52765
</pre>
</div>
</content>
</entry>
<entry>
<title>vtnet: improve interface capability handling</title>
<updated>2025-09-26T10:12:51+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-09-26T09:45:12+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=eaf619fddcb21859311b895a0836da3171a01531'/>
<id>eaf619fddcb21859311b895a0836da3171a01531</id>
<content type='text'>
Enable the handling of the IFCAP_RXCSUM_IPV6 handling by handling
IFCAP_RXCSUM and IFCAP_RXCSUM_IPV6 as a pair. Also make clear, that
software and hardware LRO require receive checksum offload.

Reviewed by:		Timo Völker
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D52682
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Enable the handling of the IFCAP_RXCSUM_IPV6 handling by handling
IFCAP_RXCSUM and IFCAP_RXCSUM_IPV6 as a pair. Also make clear, that
software and hardware LRO require receive checksum offload.

Reviewed by:		Timo Völker
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D52682
</pre>
</div>
</content>
</entry>
</feed>
