Re: [Devel] [PATCH 1/2] net: Move net->ct.can_alloc check up to resolve_normal_ct()

2016-10-03 Thread Pavel Tikhomirov
On 10/03/2016 05:16 PM, Kirill Tkhai wrote: Move it up on stack to break creation of a CT earlier. This avoids us to search in CT hashes and speeds work up. So, now nf_conntrack_alloc() creates a CT certanly, __nf_conntrack_alloc() doesn't return NULL and it does not need to be external. Revi

[Devel] [PATCH 1/2] net: Move net->ct.can_alloc check up to resolve_normal_ct()

2016-10-03 Thread Kirill Tkhai
Move it up on stack to break creation of a CT earlier. This avoids us to search in CT hashes and speeds work up. So, now nf_conntrack_alloc() creates a CT certanly, __nf_conntrack_alloc() doesn't return NULL and it does not need to be external. Signed-off-by: Kirill Tkhai --- include/net/net_na