Re: [PATCH] NET : Optimizes inet_getpeer()

2007-03-06 Thread David Miller
From: Eric Dumazet <[EMAIL PROTECTED]> Date: Tue, 6 Mar 2007 11:33:20 +0100 > [PATCH] NET : Optimizes inet_getpeer() > > 1) Some sysctl vars are declared __read_mostly > > 2) We can avoid updating stack[] when doing an AVL lookup only. > > lookup() macro is e

[PATCH] NET : Optimizes inet_getpeer()

2007-03-06 Thread Eric Dumazet
Hi David Please find this patch against net-2.6.22 Thank you [PATCH] NET : Optimizes inet_getpeer() 1) Some sysctl vars are declared __read_mostly 2) We can avoid updating stack[] when doing an AVL lookup only. lookup() macro is extended to receive a second parameter, that may be NULL