Eric Dumazet
65f7651788
[NET]: prot_inuse cleanups and optimizations
...
1) Cleanups (all functions are prefixed by sock_prot_inuse)
sock_prot_inc_use(prot) -> sock_prot_inuse_add(prot,-1)
sock_prot_dec_use(prot) -> sock_prot_inuse_add(prot,-1)
sock_prot_inuse() -> sock_prot_inuse_get()
New functions :
sock_prot_inuse_init() and sock_prot_inuse_free() to abstract pcounter use.
2) if CONFIG_PROC_FS=n, we can zap 'inuse' member from "struct proto",
since nobody wants to read the inuse value.
This saves 1372 bytes on i386/SMP and some cpu cycles.
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-28 15:00:36 -08:00
..
2008-01-28 14:58:02 -08:00
2008-01-28 14:59:12 -08:00
2008-01-28 15:00:19 -08:00
2008-01-28 15:00:10 -08:00
2008-01-28 15:00:03 -08:00
2008-01-28 14:56:52 -08:00
2008-01-28 14:58:15 -08:00
2008-01-28 14:58:15 -08:00
2008-01-28 15:00:10 -08:00
2008-01-28 14:58:15 -08:00
2008-01-28 15:00:31 -08:00
2008-01-28 14:57:01 -08:00
2007-11-10 22:12:03 -08:00
2008-01-28 14:57:00 -08:00
2008-01-28 14:57:57 -08:00
2008-01-28 14:57:43 -08:00
2008-01-28 14:58:15 -08:00
2008-01-28 14:53:35 -08:00
2007-12-03 15:51:25 +11:00
2008-01-28 14:53:35 -08:00
2008-01-28 15:00:36 -08:00
2008-01-08 23:30:18 -08:00
2008-01-28 15:00:36 -08:00
2007-11-12 21:27:28 -08:00
2008-01-28 14:53:55 -08:00
2007-10-17 21:37:22 -07:00
2008-01-28 14:58:15 -08:00
2008-01-28 14:54:28 -08:00
2007-07-31 14:06:45 -07:00
2008-01-28 14:53:55 -08:00
2007-11-07 04:08:55 -08:00
2008-01-28 14:53:43 -08:00
2008-01-28 14:54:22 -08:00
2008-01-28 14:57:25 -08:00
2008-01-28 14:58:15 -08:00
2007-10-20 01:34:40 +02:00
2008-01-28 14:56:27 -08:00
2008-01-28 14:59:05 -08:00
2008-01-28 15:00:36 -08:00
2007-04-25 22:28:20 -07:00
2008-01-28 15:00:36 -08:00
2008-01-28 14:59:57 -08:00
2008-01-28 15:00:19 -08:00
2008-01-28 14:55:41 -08:00
2008-01-28 14:55:41 -08:00
2008-01-28 14:55:41 -08:00
2007-10-22 02:59:54 -07:00
2008-01-28 14:55:41 -08:00
2008-01-28 14:55:41 -08:00
2008-01-28 14:55:41 -08:00
2008-01-28 14:55:41 -08:00
2008-01-28 15:00:33 -08:00
2008-01-28 14:59:56 -08:00
2008-01-28 14:55:41 -08:00
2007-10-10 16:48:00 -07:00
2008-01-28 15:00:34 -08:00
2007-10-10 16:49:06 -07:00
2008-01-28 14:55:41 -08:00
2008-01-28 15:00:18 -08:00
2008-01-28 14:55:41 -08:00
2007-07-31 02:27:57 -07:00
2008-01-28 14:55:41 -08:00
2007-07-31 02:27:57 -07:00
2008-01-28 14:55:41 -08:00
2008-01-28 15:00:23 -08:00
2007-11-10 21:48:54 -08:00
2007-10-10 16:48:31 -07:00
2008-01-28 15:00:36 -08:00
2007-11-07 04:08:58 -08:00
2008-01-28 15:00:10 -08:00
2008-01-28 14:53:46 -08:00
2007-10-10 16:55:54 -07:00
2008-01-28 14:59:18 -08:00
2008-01-28 14:53:55 -08:00
2008-01-28 14:59:36 -08:00
2008-01-28 14:53:55 -08:00
2007-10-17 21:28:53 -07:00