]> git.baikalelectronics.ru Git - kernel.git/commit
inet: Decrease overhead of on-stack inet_cork.
authorDavid S. Miller <davem@davemloft.net>
Fri, 6 May 2011 22:02:07 +0000 (15:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 May 2011 22:37:57 +0000 (15:37 -0700)
commitd6ab2f7f8a6dd37ecb37f9002355eb2ddc769943
tree3ce09227fb75593256403eaa459d178a2668db25
parent9df4e3c29d1d9a4eebb260a25e978f45d6e419f8
inet: Decrease overhead of on-stack inet_cork.

When we fast path datagram sends to avoid locking by putting
the inet_cork on the stack we use up lots of space that isn't
necessary.

This is because inet_cork contains a "struct flowi" which isn't
used in these code paths.

Split inet_cork to two parts, "inet_cork" and "inet_cork_full".
Only the latter of which has the "struct flowi" and is what is
stored in inet_sock.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
include/net/inet_sock.h
include/net/ip.h
net/ipv4/ip_output.c
net/ipv6/ip6_output.c
net/ipv6/raw.c