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
..
2007-10-19 11:53:43 -07:00
2008-01-28 14:57:23 -08:00
2007-12-20 13:56:32 -08:00
2007-10-10 16:54:51 -07:00
2008-01-28 14:59:07 -08:00
2008-01-28 14:58:11 -08:00
2008-01-28 15:00:18 -08:00
2007-10-10 16:53:11 -07:00
2007-07-10 22:06:12 -07:00
2007-07-15 00:03:05 -07:00
2008-01-28 14:58:14 -08:00
2008-01-28 14:57:13 -08:00
2007-10-10 16:55:55 -07:00
2008-01-28 15:00:16 -08:00
2007-12-20 13:56:32 -08:00
2007-10-10 16:53:56 -07:00
2008-01-28 14:59:52 -08:00
2008-01-28 14:55:14 -08:00
2007-10-10 16:52:50 -07:00
2007-07-10 23:02:12 -07:00
2008-01-28 14:55:58 -08:00
2008-01-28 14:57:23 -08:00
2007-11-02 08:47:06 +01:00
2008-01-28 14:56:46 -08:00
2008-01-28 15:00:20 -08:00
2007-07-18 15:47:52 -07:00
2007-10-10 16:51:28 -07:00
2007-10-10 16:47:40 -07:00
2007-11-20 16:43:17 -05:00
2007-10-10 16:52:22 -07:00
2008-01-25 14:15:37 -08:00
2007-11-12 21:02:51 -08:00
2008-01-28 14:53:45 -08:00
2007-10-17 19:47:56 -07:00
2008-01-28 15:00:36 -08:00
2007-10-25 18:54:46 -07:00
2008-01-28 14:59:28 -08:00
2007-11-12 21:27:28 -08:00
2008-01-28 14:59:36 -08:00
2008-01-28 14:56:47 -08:00
2007-12-20 13:56:32 -08:00
2008-01-28 14:57:01 -08:00
2008-01-28 15:00:30 -08:00
2008-01-28 15:00:29 -08:00
2007-10-10 16:55:55 -07:00
2008-01-28 14:53:47 -08:00
2008-01-28 14:57:13 -08:00
2007-10-10 16:52:14 -07:00
2007-10-10 16:49:07 -07:00
2008-01-28 14:59:50 -08:00
2007-07-10 22:15:42 -07:00
2007-10-10 21:22:05 -07:00
2008-01-28 15:00:17 -08:00
2008-01-28 14:58:08 -08:00
2008-01-28 14:53:38 -08:00
2007-08-02 11:52:21 -04:00
2008-01-28 14:58:53 -08:00
2008-01-28 14:55:51 -08:00
2007-10-10 16:52:52 -07:00
2008-01-28 14:57:12 -08:00
2008-01-28 14:54:32 -08:00
2008-01-28 14:54:29 -08:00
2007-11-15 02:57:06 -08:00
2007-10-07 23:44:17 -07:00
2008-01-28 14:55:56 -08:00
2007-10-10 16:49:10 -07:00
2008-01-28 14:53:58 -08:00
2007-10-19 11:53:40 -07:00
2008-01-28 14:59:38 -08:00
2008-01-28 15:00:36 -08:00
2008-01-28 15:00:23 -08:00
2008-01-28 14:57:13 -08:00
2008-01-28 15:00:36 -08:00
2008-01-28 14:56:33 -08:00
2007-10-10 16:49:10 -07:00
2008-01-28 15:00:28 -08:00