[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20071221.060832.260127595.davem@davemloft.net>
Date: Fri, 21 Dec 2007 06:08:32 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: dada1@...mosbay.com
Cc: netdev@...r.kernel.org
Subject: Re: [TCP] Avoid two divides in __tcp_grow_window()
From: Eric Dumazet <dada1@...mosbay.com>
Date: Fri, 21 Dec 2007 15:05:51 +0100
> tcp_win_from_space() being signed, compiler might emit an integer divide
> to compute tcp_win_from_space()/2 .
>
> Using right shifts is OK here and less expensive.
>
> Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
Applied, thanks Eric.
--
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