From: Vlad Yasevich Date: Tue, 10 Oct 2006 04:34:26 +0000 (-0700) Subject: [SCTP]: Fix the RX queue size shown in /proc/net/sctp/assocs output. X-Git-Tag: v2.6.19-rc2~17^2~11 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6aa2551cf135f1d246d31482adc8c679eeea3a83;p=linux-2.6-omap-h63xx.git [SCTP]: Fix the RX queue size shown in /proc/net/sctp/assocs output. Show the true receive buffer usage. Signed-off-by: Vlad Yasevich Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller --- diff --git a/net/sctp/proc.c b/net/sctp/proc.c index a356d8d310a..7f49e769080 100644 --- 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);