<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/virtio/network, branch releng/13.0</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>vtnet: fix TSO for TCP/IPv6</title>
<updated>2021-03-18T20:35:49+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2021-03-18T20:25:47+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=11660fa28fd39a644cb7d30a4378cf4751b89f15'/>
<id>11660fa28fd39a644cb7d30a4378cf4751b89f15</id>
<content type='text'>
The decision whether a TCP packet is sent over IPv4 or IPv6 was
based on ethertype, which works correctly. In D27926 the criteria
was changed to checking if the CSUM_IP_TSO flag is set in the
csum-flags and then considering it to be TCP/IPv4.
However, the TCP stack sets the flag to CSUM_TSO for IPv4 and IPv6,
where CSUM_TSO is defined as CSUM_IP_TSO|CSUM_IP6_TSO.
Therefore TCP/IPv6 packets gets mis-classified as TCP/IPv4,
which breaks TSO for TCP/IPv6.
This patch bases the check again on the ethertype.
This fix is instantly MFCed.

Approved by:		re(gjb)
PR:			254366
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D29331

(cherry picked from commit d4697a6b56168876fc0ffec1a0bb1b24d25b198e)
(cherry picked from commit 6064ea8172f078c54954bc6e8865625feb7979fe)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The decision whether a TCP packet is sent over IPv4 or IPv6 was
based on ethertype, which works correctly. In D27926 the criteria
was changed to checking if the CSUM_IP_TSO flag is set in the
csum-flags and then considering it to be TCP/IPv4.
However, the TCP stack sets the flag to CSUM_TSO for IPv4 and IPv6,
where CSUM_TSO is defined as CSUM_IP_TSO|CSUM_IP6_TSO.
Therefore TCP/IPv6 packets gets mis-classified as TCP/IPv4,
which breaks TSO for TCP/IPv6.
This patch bases the check again on the ethertype.
This fix is instantly MFCed.

Approved by:		re(gjb)
PR:			254366
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D29331

(cherry picked from commit d4697a6b56168876fc0ffec1a0bb1b24d25b198e)
(cherry picked from commit 6064ea8172f078c54954bc6e8865625feb7979fe)
</pre>
</div>
</content>
</entry>
<entry>
<title>virtio: Reduce boilerplate for device driver module definitions</title>
<updated>2021-01-21T01:07:23+00:00</updated>
<author>
<name>Jessica Clarke</name>
<email>jrtc27@FreeBSD.org</email>
</author>
<published>2021-01-21T01:07:23+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=633218ee4615854702fea05ba6e17c2a1876bb6b'/>
<id>633218ee4615854702fea05ba6e17c2a1876bb6b</id>
<content type='text'>
Rather than have every device register itself for both virtio_pci and
virtio_mmio, provide a VIRTIO_DRIVER_MODULE wrapper to declare both,
merge VIRTIO_SIMPLE_PNPTABLE with VIRTIO_SIMPLE_PNPINFO and make the
latter register for both buses. This also has the benefit of abstracting
away the available transports and their names.

Reviewed by:	bryanv
Differential Revision:	https://reviews.freebsd.org/D28073
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rather than have every device register itself for both virtio_pci and
virtio_mmio, provide a VIRTIO_DRIVER_MODULE wrapper to declare both,
merge VIRTIO_SIMPLE_PNPTABLE with VIRTIO_SIMPLE_PNPINFO and make the
latter register for both buses. This also has the benefit of abstracting
away the available transports and their names.

Reviewed by:	bryanv
Differential Revision:	https://reviews.freebsd.org/D28073
</pre>
</div>
</content>
</entry>
<entry>
<title>virtio: Handle possible failure of virtio_finalize_features()</title>
<updated>2021-01-19T04:55:26+00:00</updated>
<author>
<name>Bryan Venteicher</name>
<email>bryanv@FreeBSD.org</email>
</author>
<published>2021-01-19T04:55:26+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e6cc42f181ce346a294ae7aa1d1c321fdc90f241'/>
<id>e6cc42f181ce346a294ae7aa1d1c321fdc90f241</id>
<content type='text'>
Try to standardize how drivers negotiate feature and the
function names

Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27930
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Try to standardize how drivers negotiate feature and the
function names

Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27930
</pre>
</div>
</content>
</entry>
<entry>
<title>if_vtnet: Add counter for received host LRO</title>
<updated>2021-01-19T04:55:26+00:00</updated>
<author>
<name>Bryan Venteicher</name>
<email>bryanv@FreeBSD.org</email>
</author>
<published>2021-01-19T04:55:26+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2bfab357745256342fbf7cea952c534f6680b8bb'/>
<id>2bfab357745256342fbf7cea952c534f6680b8bb</id>
<content type='text'>
Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27928
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27928
</pre>
</div>
</content>
</entry>
<entry>
<title>if_vtnet: Misc Tx path cleanup</title>
<updated>2021-01-19T04:55:26+00:00</updated>
<author>
<name>Bryan Venteicher</name>
<email>bryanv@FreeBSD.org</email>
</author>
<published>2021-01-19T04:55:26+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=475a60aec7e3126f7a8b93a9f0fdf23360804080'/>
<id>475a60aec7e3126f7a8b93a9f0fdf23360804080</id>
<content type='text'>
  - Add and fix a few error path counters
  - Improve sysctl descriptions
  - Use flags consistently to determine IPv4 vs IPv6

Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27926
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  - Add and fix a few error path counters
  - Improve sysctl descriptions
  - Use flags consistently to determine IPv4 vs IPv6

Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27926
</pre>
</div>
</content>
</entry>
<entry>
<title>if_vtnet: Set lro_nsegs for host LRO packets</title>
<updated>2021-01-19T04:55:25+00:00</updated>
<author>
<name>Bryan Venteicher</name>
<email>bryanv@FreeBSD.org</email>
</author>
<published>2021-01-19T04:55:25+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6b53aeed9162c258ae8516cdc11ac2b66a9edd93'/>
<id>6b53aeed9162c258ae8516cdc11ac2b66a9edd93</id>
<content type='text'>
Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27933
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27933
</pre>
</div>
</content>
</entry>
<entry>
<title>if_vtnet: Resort softc fields</title>
<updated>2021-01-19T04:55:25+00:00</updated>
<author>
<name>Bryan Venteicher</name>
<email>bryanv@FreeBSD.org</email>
</author>
<published>2021-01-19T04:55:25+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=74cd316a09e8e5ae237278695329a97b9827559c'/>
<id>74cd316a09e8e5ae237278695329a97b9827559c</id>
<content type='text'>
Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27925
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27925
</pre>
</div>
</content>
</entry>
<entry>
<title>if_vtnet: Remove unnecessary TUNABLE_INTs because of CTLFLAG_RDTUN</title>
<updated>2021-01-19T04:55:25+00:00</updated>
<author>
<name>Bryan Venteicher</name>
<email>bryanv@FreeBSD.org</email>
</author>
<published>2021-01-19T04:55:25+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=33b5433fd74c460daa3994949dfaa951bd439554'/>
<id>33b5433fd74c460daa3994949dfaa951bd439554</id>
<content type='text'>
Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27923
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27923
</pre>
</div>
</content>
</entry>
<entry>
<title>if_vtnet: Schedule Rx task if pending items when enabling interrupt</title>
<updated>2021-01-19T04:55:25+00:00</updated>
<author>
<name>Bryan Venteicher</name>
<email>bryanv@FreeBSD.org</email>
</author>
<published>2021-01-19T04:55:25+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4f18e23f84320fb126ce3ccc899aa3f99b7ae925'/>
<id>4f18e23f84320fb126ce3ccc899aa3f99b7ae925</id>
<content type='text'>
Prior to V1, the driver would enable interrupts and then notify the
host that DRIVER_OK. Since for V1, DRIVER_OK needs to be set before
notifying the virtqueues, there may be items in the queues waiting
to be processed by the time interrupts are enabled.

This fixes a bug where the Rx queue would appear stuck, only being
usable after an interface down/up cycle.

Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27922
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prior to V1, the driver would enable interrupts and then notify the
host that DRIVER_OK. Since for V1, DRIVER_OK needs to be set before
notifying the virtqueues, there may be items in the queues waiting
to be processed by the time interrupts are enabled.

This fixes a bug where the Rx queue would appear stuck, only being
usable after an interface down/up cycle.

Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27922
</pre>
</div>
</content>
</entry>
<entry>
<title>if_vtnet: Disable F_MTU feature if MTU is invalid</title>
<updated>2021-01-19T04:55:25+00:00</updated>
<author>
<name>Bryan Venteicher</name>
<email>bryanv@FreeBSD.org</email>
</author>
<published>2021-01-19T04:55:25+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c3187190c71f6850a8d8a058d78a671a45e2871c'/>
<id>c3187190c71f6850a8d8a058d78a671a45e2871c</id>
<content type='text'>
Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27931
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27931
</pre>
</div>
</content>
</entry>
</feed>
