net: ip_queue_rcv_skb() helper
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 28 Apr 2010 22:31:51 +0000 (15:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Apr 2010 22:31:51 +0000 (15:31 -0700)
commitf84af32cbca70a3c6d30463dc08c7984af11c277
tree06ede4b3ed91be899f8f29b4c7eb1fb76f1ade97
parent4b0b72f7dd617b13abd1b04c947e15873e011a24
net: ip_queue_rcv_skb() helper

When queueing a skb to socket, we can immediately release its dst if
target socket do not use IP_CMSG_PKTINFO.

tcp_data_queue() can drop dst too.

This to benefit from a hot cache line and avoid the receiver, possibly
on another cpu, to dirty this cache line himself.

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