netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] tcp_diag: Don't report max ack backlog in wqueue
@ 2011-12-28 13:36 Pavel Emelyanov
  2011-12-28 18:43 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Emelyanov @ 2011-12-28 13:36 UTC (permalink / raw)
  To: David Miller, Linux Netdev List

This is not correct and actually makes ss work differently on proc
vs netlink -- in the former case 0 is reported.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>

---
 net/ipv4/tcp_diag.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/ipv4/tcp_diag.c b/net/ipv4/tcp_diag.c
index 8cd357a..3f2e2ef 100644
--- a/net/ipv4/tcp_diag.c
+++ b/net/ipv4/tcp_diag.c
@@ -25,7 +25,7 @@ static void tcp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
 
 	if (sk->sk_state == TCP_LISTEN) {
 		r->idiag_rqueue = sk->sk_ack_backlog;
-		r->idiag_wqueue = sk->sk_max_ack_backlog;
+		r->idiag_wqueue = 0;
 	} else {
 		r->idiag_rqueue = max_t(int, tp->rcv_nxt - tp->copied_seq, 0);
 		r->idiag_wqueue = tp->write_seq - tp->snd_una;
-- 
1.5.5.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/5] tcp_diag: Don't report max ack backlog in wqueue
  2011-12-28 13:36 [PATCH 1/5] tcp_diag: Don't report max ack backlog in wqueue Pavel Emelyanov
@ 2011-12-28 18:43 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-12-28 18:43 UTC (permalink / raw)
  To: xemul; +Cc: netdev

From: Pavel Emelyanov <xemul@parallels.com>
Date: Wed, 28 Dec 2011 17:36:28 +0400

> This is not correct and actually makes ss work differently on proc
> vs netlink -- in the former case 0 is reported.
> 
> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>

It's very much intentional Pavel, Alexey Kuznetsov put this there on
purpose.

There is no other place in the diag interface where the
max_ack_backlog value is provided.

I'm not applying this.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-28 18:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-28 13:36 [PATCH 1/5] tcp_diag: Don't report max ack backlog in wqueue Pavel Emelyanov
2011-12-28 18:43 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).