summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_var.h
diff options
context:
space:
mode:
authorJan Klemkow <jan@cvs.openbsd.org>2023-05-23 09:16:17 +0000
committerJan Klemkow <jan@cvs.openbsd.org>2023-05-23 09:16:17 +0000
commit24a22c4129b6de482d039d889bdb047bec112edd (patch)
treec7cfa7b984957d3a3b8d6180b61067e574eb6dac /sys/netinet/tcp_var.h
parent23dfd3597a495b64755273cfbbc80d56e7026519 (diff)
New counters for LRO packets from hardware TCP offloading.
With tweaks from patrick@ and bluhm@. OK bluhm@
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r--sys/netinet/tcp_var.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index 0a9630d719f..0cc13c6e08c 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_var.h,v 1.166 2023/05/18 08:22:37 jan Exp $ */
+/* $OpenBSD: tcp_var.h,v 1.167 2023/05/23 09:16:16 jan Exp $ */
/* $NetBSD: tcp_var.h,v 1.17 1996/02/13 23:44:24 christos Exp $ */
/*
@@ -447,6 +447,9 @@ struct tcpstat {
u_int32_t tcps_outhwtso; /* output tso processed by hardware */
u_int32_t tcps_outpkttso; /* packets generated by tso */
u_int32_t tcps_outbadtso; /* output tso failed, packet dropped */
+ u_int32_t tcps_inhwlro; /* input lro from hardware */
+ u_int32_t tcps_inpktlro; /* packets coalesced by hardware lro */
+ u_int32_t tcps_inbadlro; /* input bad lro packets */
};
/*
@@ -625,6 +628,9 @@ enum tcpstat_counters {
tcps_outhwtso,
tcps_outpkttso,
tcps_outbadtso,
+ tcps_inhwlro,
+ tcps_inpktlro,
+ tcps_inbadlro,
tcps_ncounters,
};