projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
331c4ee
)
[SCTP]: Fix the RX queue size shown in /proc/net/sctp/assocs output.
author
Vlad Yasevich
<vladislav.yasevich@hp.com>
Tue, 10 Oct 2006 04:34:26 +0000
(21:34 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Thu, 12 Oct 2006 06:59:46 +0000
(23:59 -0700)
Show the true receive buffer usage.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/proc.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sctp/proc.c
b/net/sctp/proc.c
index a356d8d310a95f0cc04033f091fa229ea7a510ea..7f49e769080ea631e9827e9e483bcb1577a9721b 100644
(file)
--- a/
net/sctp/proc.c
+++ b/
net/sctp/proc.c
@@
-344,7
+344,7
@@
static int sctp_assocs_seq_show(struct seq_file *seq, void *v)
assoc, sk, sctp_sk(sk)->type, sk->sk_state,
assoc->state, hash, assoc->assoc_id,
assoc->sndbuf_used,
-
(sk->sk_rcvbuf - assoc->rwnd
),
+
atomic_read(&assoc->rmem_alloc
),
sock_i_uid(sk), sock_i_ino(sk),
epb->bind_addr.port,
assoc->peer.port);