[PATCH 2/2]: conntrack: kill destroy() in struct nf_conntrack for diet

Patrick McHardy kaber at trash.net
Tue Mar 20 07:34:36 CET 2007


Yasuyuki KOZAKAI wrote:
>  #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
> -static inline void nf_conntrack_put(struct nf_conntrack *nfct)
> -{
> -	if (nfct && atomic_dec_and_test(&nfct->use))
> -		nfct->destroy(nfct);
> -}


Also applied. I wonder whether we should keep this inline and
just have the final destruction be performed out of line, its
called in a few quite performance critical paths.




More information about the netfilter-devel mailing list