-
- Downloads
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>
Showing
- include/net/inet_sock.h 8 additions, 4 deletionsinclude/net/inet_sock.h
- include/net/ip.h 1 addition, 1 deletioninclude/net/ip.h
- net/ipv4/ip_output.c 12 additions, 10 deletionsnet/ipv4/ip_output.c
- net/ipv6/ip6_output.c 18 additions, 16 deletionsnet/ipv6/ip6_output.c
- net/ipv6/raw.c 2 additions, 2 deletionsnet/ipv6/raw.c
Loading
Please register or sign in to comment