[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20071220.214017.123924372.davem@davemloft.net>
Date: Thu, 20 Dec 2007 21:40:17 -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_output.c
From: Eric Dumazet <dada1@...mosbay.com>
Date: Fri, 21 Dec 2007 06:34:28 +0100
> Because 'free_space' variable in __tcp_select_window() is signed,
> expression (free_space / 2) forces compiler to emit an integer divide.
>
> This can be changed to a plain right shift, less expensive.
>
> Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
Applied to net-2.6.25, 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