diff options
author | Jan Klemkow <jan@cvs.openbsd.org> | 2024-08-16 13:02:45 +0000 |
---|---|---|
committer | Jan Klemkow <jan@cvs.openbsd.org> | 2024-08-16 13:02:45 +0000 |
commit | 92fd0facf4b1b7027b84d74e24937e81a95956d4 (patch) | |
tree | b23016429891fd1a7b27445a2de594c9e101d250 | |
parent | ee06a13ff5284de8651b6956f198b1ad732df3b3 (diff) |
vio(4): Don't set IPv4 checksum OK flag for rx packets.
The virtio specification just address TCP/UDP checksum offloading.
Thus, we have to check the IPv4 checksum in our stack.
ok sf@
-rw-r--r-- | sys/dev/pv/if_vio.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/pv/if_vio.c b/sys/dev/pv/if_vio.c index e6168ca3823..49013140134 100644 --- a/sys/dev/pv/if_vio.c +++ b/sys/dev/pv/if_vio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vio.c,v 1.45 2024/08/01 11:13:19 sf Exp $ */ +/* $OpenBSD: if_vio.c,v 1.46 2024/08/16 13:02:44 jan Exp $ */ /* * Copyright (c) 2012 Stefan Fritsch, Alexander Fiveg. @@ -1133,9 +1133,6 @@ vio_rx_offload(struct mbuf *m, struct virtio_net_hdr *hdr) ether_extract_headers(m, &ext); - if (ext.ip4) - SET(m->m_pkthdr.csum_flags, M_IPV4_CSUM_IN_OK); - if (ext.tcp) { SET(m->m_pkthdr.csum_flags, M_TCP_CSUM_IN_OK); if (ISSET(hdr->flags, VIRTIO_NET_HDR_F_NEEDS_CSUM)) |