Re: [NET]: prot_inuse cleanups and optimizations

2008-01-03 Thread David Miller
From: Eric Dumazet <[EMAIL PROTECTED]> Date: Thu, 3 Jan 2008 18:41:54 +0100 > 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_in

[NET]: prot_inuse cleanups and optimizations

2008-01-03 Thread Eric Dumazet
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 abstra