]> git.baikalelectronics.ru Git - kernel.git/commit
net: release skb->dst in sock_queue_rcv_skb()
authorEric Dumazet <dada1@cosmosbay.com>
Wed, 26 Nov 2008 09:08:18 +0000 (01:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 09:08:18 +0000 (01:08 -0800)
commit5dd041c9ea258a2318b08bb3dfbda468bf7202c9
treec970f5b6134fac0c8da11f20ae364c92ae80a8ad
parentbfbc86c0640bb882e95b410eb26f12f3ea1a5f7a
net: release skb->dst in sock_queue_rcv_skb()

When queuing a skb to sk->sk_receive_queue, we can release its dst,
not anymore needed.  Since current cpu did the dst_hold(), refcount is
probably still hot int this cpu caches.

This avoids readers to access the original dst to decrement its
refcount, possibly a long time after packet reception. This should
speedup UDP and RAW receive path.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c