[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <476B5064.5010302@cosmosbay.com>
Date: Fri, 21 Dec 2007 06:34:28 +0100
From: Eric Dumazet <dada1@...mosbay.com>
To: "David S. Miller" <davem@...emloft.net>
CC: Linux Netdev List <netdev@...r.kernel.org>
Subject: [TCP] Avoid two divides in tcp_output.c
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>
View attachment "tcp_output.patch" of type "text/plain" (697 bytes)
Powered by blists - more mailing lists