[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20111028.183107.2091450715774357523.davem@davemloft.net>
Date: Fri, 28 Oct 2011 18:31:07 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: dbaluta@...acom.com
Cc: eric.dumazet@...il.com, kuznet@....inr.ac.ru, jmorris@...ei.org,
yoshfuji@...ux-ipv6.org, kaber@...sh.net, netdev@...r.kernel.org,
luto@...capital.net, rick.jones2@...com
Subject: Re: [RFC v2] tcp: Export TCP Delayed ACK parameters to user
From: Daniel Baluta <dbaluta@...acom.com>
Date: Sat, 29 Oct 2011 00:35:24 +0300
> On Sat, Oct 29, 2011 at 12:19 AM, David Miller <davem@...emloft.net> wrote:
>> From: Daniel Baluta <dbaluta@...acom.com>
>> Date: Sat, 29 Oct 2011 00:14:03 +0300
>>
>>> +static inline int tcp_delack_thresh(const struct sock *sk)
>>> +{
>>> + return inet_csk(sk)->icsk_ack.rcv_mss * sysctl_tcp_delack_segs;
>>> +}
>>> +
>>
>> Please turn this into a shift or something, you're adding a multiply
>> into a core code path.
>
> Is there any generic API to do this? Default case is not
> affected since tcp_delack_segs is 1.
I'm saying make the tunable a shift count instead of something to
multiply against.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists