netdev
[Top] [All Lists]

Re: way of figuring out total number of retransmitted packets on a TCP s

To: "David S. Miller" <davem@xxxxxxxxxxxxx>
Subject: Re: way of figuring out total number of retransmitted packets on a TCP socket?
From: Andi Kleen <ak@xxxxxxx>
Date: Thu, 21 Oct 2004 01:04:05 +0200
Cc: Lennert Buytenhek <buytenh@xxxxxxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <20041020155352.1c9b70f6.davem@davemloft.net>
References: <20041020130134.GC24757@xi.wantstofly.org> <20041020151448.51209278.davem@davemloft.net> <20041020223547.GJ29583@xi.wantstofly.org> <20041020155352.1c9b70f6.davem@davemloft.net>
Sender: netdev-bounce@xxxxxxxxxxx
> I agree.  We could easily add the thing you are looking for.  It's
> just another statistic, zero'd at socket creation time and incremented
> right under the line which reads:
> 
>               /* Update global TCP statistics. */
>               TCP_INC_STATS(TCP_MIB_RETRANSSEGS);
> 
> in tcp_retransmit_skb().
> 
> I'll add this for you.

Is it really necessary? Our struct sock is already bloated enough 
as is ... If Lennert needs it for some obscure purpose it's probably
better if he just does it locally.

-Andi

<Prev in Thread] Current Thread [Next in Thread>