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)
commitbdc712b4c2baf9515887de3a52e7ecd89fafc0c7
tree3ce09227fb75593256403eaa459d178a2668db25
parentad638bd16d91012a512979327b5c17c867d260c6
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