diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2008-06-18 00:04:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-18 00:04:56 -0400 |
commit | cb61cb9b8b5ef6c2697d84e5015e314626eb2fba (patch) | |
tree | 430dd8d5b56d0a9911750ffcbd97563ce68d1b27 /include | |
parent | fe2c802ab62aa63d276deafa905875f3455f2621 (diff) |
udp: sk_drops handling
In commits 33c732c36169d7022ad7d6eb474b0c9be43a2dc1 ([IPV4]: Add raw
drops counter) and a92aa318b4b369091fd80433c80e62838db8bc1c ([IPV6]:
Add raw drops counter), Wang Chen added raw drops counter for
/proc/net/raw & /proc/net/raw6
This patch adds this capability to UDP sockets too (/proc/net/udp &
/proc/net/udp6).
This means that 'RcvbufErrors' errors found in /proc/net/snmp can be also
be examined for each udp socket.
# grep Udp: /proc/net/snmp
Udp: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors
Udp: 23971006 75 899420 16390693 146348 0
# cat /proc/net/udp
sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt ---
uid timeout inode ref pointer drops
75: 00000000:02CB 00000000:0000 07 00000000:00000000 00:00000000 00000000 ---
0 0 2358 2 ffff81082a538c80 0
111: 00000000:006F 00000000:0000 07 00000000:00000000 00:00000000 00000000 ---
0 0 2286 2 ffff81042dd35c80 146348
In this example, only port 111 (0x006F) was flooded by messages that
user program could not read fast enough. 146348 messages were lost.
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/sock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 83f74b11d09a..a7c30412de66 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -166,7 +166,7 @@ struct sock_common { | |||
166 | * @sk_err: last error | 166 | * @sk_err: last error |
167 | * @sk_err_soft: errors that don't cause failure but are the cause of a | 167 | * @sk_err_soft: errors that don't cause failure but are the cause of a |
168 | * persistent failure not just 'timed out' | 168 | * persistent failure not just 'timed out' |
169 | * @sk_drops: raw drops counter | 169 | * @sk_drops: raw/udp drops counter |
170 | * @sk_ack_backlog: current listen backlog | 170 | * @sk_ack_backlog: current listen backlog |
171 | * @sk_max_ack_backlog: listen backlog set in listen() | 171 | * @sk_max_ack_backlog: listen backlog set in listen() |
172 | * @sk_priority: %SO_PRIORITY setting | 172 | * @sk_priority: %SO_PRIORITY setting |