[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200703061133.20389.dada1@cosmosbay.com>
Date: Tue, 6 Mar 2007 11:33:20 +0100
From: Eric Dumazet <dada1@...mosbay.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: [PATCH] NET : Optimizes inet_getpeer()
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
in case of a pure lookup (no need to save the AVL path). This removes
unnecessary instructions, because compiler knows if this _stack parameter is
NULL or not.
text size of net/ipv4/inetpeer.o is 2063 bytes instead of 2107 on x86_64
Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
View attachment "inetpeer.patch" of type "text/plain" (3283 bytes)
Powered by blists - more mailing lists