svn commit: r351951 - head/sys/netinet

Randall Stewart rrs at FreeBSD.org
Fri Sep 6 18:29:49 UTC 2019


Author: rrs
Date: Fri Sep  6 18:29:48 2019
New Revision: 351951
URL: https://svnweb.freebsd.org/changeset/base/351951

Log:
  This adds in the missing counter initialization which
  I had forgotten to bring over.. opps.
  
  Differential Revision: https://reviews.freebsd.org/D21127

Modified:
  head/sys/netinet/tcp_subr.c
  head/sys/netinet/tcp_var.h

Modified: head/sys/netinet/tcp_subr.c
==============================================================================
--- head/sys/netinet/tcp_subr.c	Fri Sep  6 18:25:42 2019	(r351950)
+++ head/sys/netinet/tcp_subr.c	Fri Sep  6 18:29:48 2019	(r351951)
@@ -1125,6 +1125,13 @@ tcp_init(void)
 		SHUTDOWN_PRI_DEFAULT);
 	EVENTHANDLER_REGISTER(maxsockets_change, tcp_zone_change, NULL,
 		EVENTHANDLER_PRI_ANY);
+
+	tcp_inp_lro_direct_queue = counter_u64_alloc(M_WAITOK);
+	tcp_inp_lro_wokeup_queue = counter_u64_alloc(M_WAITOK);
+	tcp_inp_lro_compressed = counter_u64_alloc(M_WAITOK);
+	tcp_inp_lro_single_push = counter_u64_alloc(M_WAITOK);
+	tcp_inp_lro_locks_taken = counter_u64_alloc(M_WAITOK);
+	tcp_inp_lro_sack_wake = counter_u64_alloc(M_WAITOK);
 #ifdef TCPPCAP
 	tcp_pcap_init();
 #endif

Modified: head/sys/netinet/tcp_var.h
==============================================================================
--- head/sys/netinet/tcp_var.h	Fri Sep  6 18:25:42 2019	(r351950)
+++ head/sys/netinet/tcp_var.h	Fri Sep  6 18:29:48 2019	(r351951)
@@ -887,6 +887,13 @@ struct tcp_function_block *
 find_and_ref_tcp_fb(struct tcp_function_block *fs);
 int tcp_default_ctloutput(struct socket *so, struct sockopt *sopt, struct inpcb *inp, struct tcpcb *tp);
 
+extern counter_u64_t tcp_inp_lro_direct_queue;
+extern counter_u64_t tcp_inp_lro_wokeup_queue;
+extern counter_u64_t tcp_inp_lro_compressed;
+extern counter_u64_t tcp_inp_lro_single_push;
+extern counter_u64_t tcp_inp_lro_locks_taken;
+extern counter_u64_t tcp_inp_lro_sack_wake;
+
 uint32_t tcp_maxmtu(struct in_conninfo *, struct tcp_ifcap *);
 uint32_t tcp_maxmtu6(struct in_conninfo *, struct tcp_ifcap *);
 u_int	 tcp_maxseg(const struct tcpcb *);


More information about the svn-src-head mailing list