Eric Dumazet
66944e1c57
inetpeer: reduce stack usage
...
On 64bit arches, we use 752 bytes of stack when cleanup_once() is called
from inet_getpeer().
Lets share the avl stack to save ~376 bytes.
Before patch :
# objdump -d net/ipv4/inetpeer.o | scripts/checkstack.pl
0x000006c3 unlink_from_pool [inetpeer.o]: 376
0x00000721 unlink_from_pool [inetpeer.o]: 376
0x00000cb1 inet_getpeer [inetpeer.o]: 376
0x00000e6d inet_getpeer [inetpeer.o]: 376
0x0004 inet_initpeers [inetpeer.o]: 112
# size net/ipv4/inetpeer.o
text data bss dec hex filename
5320 432 21 5773 168d net/ipv4/inetpeer.o
After patch :
objdump -d net/ipv4/inetpeer.o | scripts/checkstack.pl
0x00000c11 inet_getpeer [inetpeer.o]: 376
0x00000dcd inet_getpeer [inetpeer.o]: 376
0x00000ab9 peer_check_expire [inetpeer.o]: 328
0x00000b7f peer_check_expire [inetpeer.o]: 328
0x0004 inet_initpeers [inetpeer.o]: 112
# size net/ipv4/inetpeer.o
text data bss dec hex filename
5163 432 21 5616 15f0 net/ipv4/inetpeer.o
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Scot Doyle <lkml@scotdoyle.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: Hiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Reviewed-by: Hiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-04-12 13:58:33 -07:00
..
2011-03-31 11:26:23 -03:00
2011-03-12 15:08:42 -08:00
2011-03-13 20:22:28 -07:00
2011-03-30 00:10:47 -07:00
2011-03-31 11:26:23 -03:00
2011-03-02 14:31:35 -08:00
2011-03-23 12:16:15 -07:00
2011-03-13 20:22:29 -07:00
2011-03-30 16:57:46 -07:00
2011-03-24 18:06:47 -07:00
2011-03-12 15:08:49 -08:00
2011-03-24 18:06:47 -07:00
2011-03-31 11:26:23 -03:00
2010-10-25 13:09:45 -07:00
2011-03-31 11:26:23 -03:00
2011-03-12 15:08:42 -08:00
2011-03-12 15:08:54 -08:00
2011-01-19 13:34:20 -08:00
2010-07-12 12:57:54 -07:00
2010-11-28 18:18:44 -08:00
2009-11-23 10:41:23 -08:00
2011-02-19 18:59:04 -08:00
2011-04-12 13:58:33 -07:00
2010-06-10 23:31:35 -07:00
2011-01-06 11:21:30 -08:00
2011-03-12 15:08:42 -08:00
2011-01-14 13:36:42 +01:00
2011-03-27 23:35:02 -07:00
2011-03-31 11:26:23 -03:00
2010-10-25 14:18:28 -07:00
2010-02-22 16:20:22 -08:00
2011-03-31 11:26:23 -03:00
2011-03-12 15:08:42 -08:00
2011-03-12 15:08:49 -08:00
2011-02-01 15:35:25 -08:00
2011-02-01 15:35:25 -08:00
2011-04-04 17:00:54 +02:00
2010-12-08 12:16:33 -08:00
2010-10-27 11:37:31 -07:00
2011-03-31 11:26:23 -03:00
2011-04-11 07:27:24 -07:00
2011-03-12 15:08:54 -08:00
2010-12-13 12:16:14 -08:00
2011-03-10 00:40:17 -08:00
2010-08-27 19:31:56 -07:00
2011-03-15 15:15:17 -07:00
2009-12-03 16:06:13 -08:00
2011-03-10 00:40:17 -08:00
2011-03-10 00:40:17 -08:00
2011-03-10 00:40:17 -08:00
2011-03-10 00:40:17 -08:00
2011-03-22 19:37:11 -07:00
2011-03-02 14:31:35 -08:00
2011-03-31 11:26:23 -03:00
2010-12-08 13:47:38 -08:00
2011-04-07 11:14:49 -07:00
2010-11-17 12:27:46 -08:00
2011-03-10 00:40:17 -08:00
2011-02-20 11:10:14 -08:00
2011-03-10 00:40:17 -08:00
2011-03-10 00:40:17 -08:00
2011-03-10 00:40:17 -08:00
2011-03-31 11:26:23 -03:00
2011-03-09 14:08:09 -08:00
2010-10-27 11:37:32 -07:00
2009-09-30 16:12:20 -07:00
2011-03-31 11:26:23 -03:00
2010-12-16 14:26:56 -08:00
2010-07-12 12:57:54 -07:00
2008-08-06 02:39:30 -07:00
2010-12-12 22:08:17 -08:00
2010-03-25 16:00:30 +01:00
2011-04-07 14:04:08 -07:00
2011-03-12 15:08:52 -08:00
2010-08-30 13:50:45 -07:00