]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Make the sk_clone() lighter
authorPavel Emelyanov <xemul@openvz.org>
Thu, 1 Nov 2007 07:37:32 +0000 (00:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Nov 2007 07:37:32 +0000 (00:37 -0700)
commit79f1311e6c2d1f054deb9050310481ee666aec8a
treeb1466bbdbc3b700b361cdf3a8b56650281984b79
parentf48be7499b9519c4a0e2176e3724ba0bf501b6e9
[NET]: Make the sk_clone() lighter

The sk_prot_alloc() already performs all the stuff needed by the
sk_clone(). Besides, the sk_prot_alloc() requires almost twice
less arguments than the sk_alloc() does, so call the sk_prot_alloc()
saving the stack a bit.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c