mirror of
https://github.com/opnsense/src.git
synced 2026-05-04 17:05:14 -04:00
When transmitting a packet over the vtnet interface, map the csum flags CSUM_DATA_VALID | CSUM_PSEUDO_HDR to the virtio flag VIRTIO_NET_HDR_F_DATA_VALID. When receiving a packet over the virtio network channel, translate the virtio flag VIRTIO_NET_HDR_F_NEEDS_CSUM not to CSUM_DATA_VALID | CSUM_PSEUDO_HDR, but to CSUM_TCP, CSUM_TCP_IPV6, CSUM_UDP, or CSUM_UDP_IPV6. The second change fixes a series of issue related to checksum offloading for if_vtnet. While there, improve the stats counters to allow a detailed view on what is going on in relation to checksum offloading. PR: 165059 Reviewed by: tuexen, manpages Differential Revision: https://reviews.freebsd.org/D51686 (cherry picked from commit 3008f30d2c2cabdd7e17f7fb922139da8681ffbd) |
||
|---|---|---|
| .. | ||
| if_vtnet.c | ||
| if_vtnetvar.h | ||
| virtio_net.h | ||