opnsense-src/sys/dev/virtio
Michael Tuexen d4697a6b56 vtnet: fix TSO for TCP/IPv6
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 will be MFC instantly as discussed with re(gjb).

MFC after:		instantly
PR:			254366
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D29331
2021-03-18 21:32:20 +01:00
..
balloon virtio: Reduce boilerplate for device driver module definitions 2021-01-21 01:07:23 +00:00
block virtio: Reduce boilerplate for device driver module definitions 2021-01-21 01:07:23 +00:00
console virtio: Reduce boilerplate for device driver module definitions 2021-01-21 01:07:23 +00:00
mmio virtio_mmio: Delete a stale #if 0'ed debug print 2021-01-21 02:14:41 +00:00
network vtnet: fix TSO for TCP/IPv6 2021-03-18 21:32:20 +01:00
pci virtio: Handle possible failure of virtio_finalize_features() 2021-01-19 04:55:26 +00:00
random virtio: Reduce boilerplate for device driver module definitions 2021-01-21 01:07:23 +00:00
scsi virtio: Reduce boilerplate for device driver module definitions 2021-01-21 01:07:23 +00:00
virtio.c virtio_pci: Add sysctl to show current features 2021-01-19 04:55:23 +00:00
virtio.h bhyve: virtio shares definitions between sys/dev/virtio 2021-03-16 19:29:39 +08:00
virtio_bus_if.m virtio: Add VirtIO PCI modern (V1) support 2021-01-19 04:55:23 +00:00
virtio_config.h Update VirtIO definitions from Linux virtio_config.h and virtio_ring.h headers 2018-06-17 20:45:48 +00:00
virtio_endian.h bhyve: virtio shares definitions between sys/dev/virtio 2021-03-16 19:29:39 +08:00
virtio_ids.h Sync VirtIO IDs with Linux 2018-01-14 06:03:40 +00:00
virtio_if.m Add optional VirtIO device method for post-attach notifications 2013-09-01 04:20:23 +00:00
virtio_ring.h Update VirtIO definitions from Linux virtio_config.h and virtio_ring.h headers 2018-06-17 20:45:48 +00:00
virtqueue.c virtio: Add modern (v1) virtqueue support 2021-01-19 04:55:23 +00:00
virtqueue.h virtio: Add modern (v1) virtqueue support 2021-01-19 04:55:23 +00:00