hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/net/ipv4/proc.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * INET An implementation of the TCP/IP protocol suite for the LINUX
34 * operating system. INET is implemented using the BSD Socket
....@@ -25,17 +26,13 @@
2526 * split functions for more readibility.
2627 * Andi Kleen : Add support for /proc/net/netstat
2728 * Arnaldo C. Melo : Convert to seq_file
28
- *
29
- * This program is free software; you can redistribute it and/or
30
- * modify it under the terms of the GNU General Public License
31
- * as published by the Free Software Foundation; either version
32
- * 2 of the License, or (at your option) any later version.
3329 */
3430 #include <linux/types.h>
3531 #include <net/net_namespace.h>
3632 #include <net/icmp.h>
3733 #include <net/protocol.h>
3834 #include <net/tcp.h>
35
+#include <net/mptcp.h>
3936 #include <net/udp.h>
4037 #include <net/udplite.h>
4138 #include <linux/bottom_half.h>
....@@ -72,8 +69,8 @@
7269 seq_printf(seq, "RAW: inuse %d\n",
7370 sock_prot_inuse_get(net, &raw_prot));
7471 seq_printf(seq, "FRAG: inuse %u memory %lu\n",
75
- atomic_read(&net->ipv4.frags.rhashtable.nelems),
76
- frag_mem_limit(&net->ipv4.frags));
72
+ atomic_read(&net->ipv4.fqdir->rhashtable.nelems),
73
+ frag_mem_limit(net->ipv4.fqdir));
7774 return 0;
7875 }
7976
....@@ -219,6 +216,7 @@
219216 SNMP_MIB_ITEM("TCPRenoRecoveryFail", LINUX_MIB_TCPRENORECOVERYFAIL),
220217 SNMP_MIB_ITEM("TCPSackRecoveryFail", LINUX_MIB_TCPSACKRECOVERYFAIL),
221218 SNMP_MIB_ITEM("TCPRcvCollapsed", LINUX_MIB_TCPRCVCOLLAPSED),
219
+ SNMP_MIB_ITEM("TCPBacklogCoalesce", LINUX_MIB_TCPBACKLOGCOALESCE),
222220 SNMP_MIB_ITEM("TCPDSACKOldSent", LINUX_MIB_TCPDSACKOLDSENT),
223221 SNMP_MIB_ITEM("TCPDSACKOfoSent", LINUX_MIB_TCPDSACKOFOSENT),
224222 SNMP_MIB_ITEM("TCPDSACKRecv", LINUX_MIB_TCPDSACKRECV),
....@@ -291,6 +289,11 @@
291289 SNMP_MIB_ITEM("TCPZeroWindowDrop", LINUX_MIB_TCPZEROWINDOWDROP),
292290 SNMP_MIB_ITEM("TCPRcvQDrop", LINUX_MIB_TCPRCVQDROP),
293291 SNMP_MIB_ITEM("TCPWqueueTooBig", LINUX_MIB_TCPWQUEUETOOBIG),
292
+ SNMP_MIB_ITEM("TCPFastOpenPassiveAltKey", LINUX_MIB_TCPFASTOPENPASSIVEALTKEY),
293
+ SNMP_MIB_ITEM("TcpTimeoutRehash", LINUX_MIB_TCPTIMEOUTREHASH),
294
+ SNMP_MIB_ITEM("TcpDuplicateDataRehash", LINUX_MIB_TCPDUPLICATEDATAREHASH),
295
+ SNMP_MIB_ITEM("TCPDSACKRecvSegs", LINUX_MIB_TCPDSACKRECVSEGS),
296
+ SNMP_MIB_ITEM("TCPDSACKIgnoredDubious", LINUX_MIB_TCPDSACKIGNOREDDUBIOUS),
294297 SNMP_MIB_SENTINEL
295298 };
296299
....@@ -485,6 +488,7 @@
485488 offsetof(struct ipstats_mib, syncp)));
486489
487490 seq_putc(seq, '\n');
491
+ mptcp_seq_show(seq);
488492 return 0;
489493 }
490494