[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20071221.055846.184095429.davem@davemloft.net>
Date: Fri, 21 Dec 2007 05:58:46 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: dada1@...mosbay.com
Cc: netdev@...r.kernel.org
Subject: Re: [TCP] Avoid a divide in tcp_mtu_probing()
From: Eric Dumazet <dada1@...mosbay.com>
Date: Fri, 21 Dec 2007 14:32:41 +0100
> tcp_mtu_to_mss() being signed, compiler might emit an integer divide
> to compute tcp_mtu_to_mss()/2 .
>
> Using a right shift 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