Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102976543
D27928.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D27928.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
@@ -2016,6 +2016,7 @@
case VIRTIO_NET_HDR_GSO_TCPV6:
m->m_pkthdr.lro_nsegs =
howmany(m->m_pkthdr.len, hdr->gso_size);
+ rxq->vtnrx_stats.vrxs_host_lro++;
break;
}
}
@@ -4074,6 +4075,8 @@
&stats->vrxs_csum, "Receive checksum offloaded");
SYSCTL_ADD_UQUAD(ctx, list, OID_AUTO, "csum_failed", CTLFLAG_RD,
&stats->vrxs_csum_failed, "Receive checksum offload failed");
+ SYSCTL_ADD_UQUAD(ctx, list, OID_AUTO, "host_lro", CTLFLAG_RD,
+ &stats->vrxs_host_lro, "Receive host segmentation offloaded");
SYSCTL_ADD_UQUAD(ctx, list, OID_AUTO, "rescheduled", CTLFLAG_RD,
&stats->vrxs_rescheduled,
"Receive interrupt handler rescheduled");
diff --git a/sys/dev/virtio/network/if_vtnetvar.h b/sys/dev/virtio/network/if_vtnetvar.h
--- a/sys/dev/virtio/network/if_vtnetvar.h
+++ b/sys/dev/virtio/network/if_vtnetvar.h
@@ -68,6 +68,7 @@
uint64_t vrxs_ierrors; /* if_ierrors */
uint64_t vrxs_csum;
uint64_t vrxs_csum_failed;
+ uint64_t vrxs_host_lro;
uint64_t vrxs_rescheduled;
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 9:49 AM (21 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14735319
Default Alt Text
D27928.diff (1 KB)
Attached To
Mode
D27928: if_vtnet: Add counter for recevied host segmentation offloaded
Attached
Detach File
Event Timeline
Log In to Comment