Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167256791
D27933.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
572 B
Referenced Files
None
Subscribers
None
D27933.diff
View Options
diff --git a/sys/dev/virtio/network/if_vtnet.c b/sys/dev/virtio/network/if_vtnet.c
--- a/sys/dev/virtio/network/if_vtnet.c
+++ b/sys/dev/virtio/network/if_vtnet.c
@@ -2010,6 +2010,16 @@
rxq->vtnrx_stats.vrxs_csum_failed++;
}
+ if (hdr->gso_size != 0) {
+ switch (hdr->gso_type & ~VIRTIO_NET_HDR_GSO_ECN) {
+ case VIRTIO_NET_HDR_GSO_TCPV4:
+ case VIRTIO_NET_HDR_GSO_TCPV6:
+ m->m_pkthdr.lro_nsegs =
+ howmany(m->m_pkthdr.len, hdr->gso_size);
+ break;
+ }
+ }
+
rxq->vtnrx_stats.vrxs_ipackets++;
rxq->vtnrx_stats.vrxs_ibytes += m->m_pkthdr.len;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 21, 10:32 AM (17 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37028881
Default Alt Text
D27933.diff (572 B)
Attached To
Mode
D27933: if_vtnet: Set lro_nsegs for host LRO packets
Attached
Detach File
Event Timeline
Log In to Comment