[Bug 165059] vtnet(4): Networking breaks with a router using virtio net driver on KVM host

[email protected]
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=165059

--- Comment #49 from [email protected] ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3008f30d2c2cabdd7e17f7fb922139da8681ffbd

commit 3008f30d2c2cabdd7e17f7fb922139da8681ffbd
Author:     Timo Völker <[email protected]>
AuthorDate: 2025-09-08 20:38:49 +0000
Commit:     Michael Tuexen <[email protected]>
CommitDate: 2025-09-08 20:38:49 +0000

    vtnet: improve checksum offloading

    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
    MFC after:              3 days
    Differential Revision:  https://reviews.freebsd.org/D51686

 share/man/man4/vtnet.4               |  28 +++--
 sys/dev/virtio/network/if_vtnet.c    | 220 ++++++++++++++++++-----------------
 sys/dev/virtio/network/if_vtnetvar.h |   2 +-
 3 files changed, 132 insertions(+), 118 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.