net: sock_queue_err_skb() dont mess with sk_forward_alloc
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 1 Jun 2010 06:44:05 +0000 (23:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Jun 2010 06:44:05 +0000 (23:44 -0700)
commitb1faf5666438090a4dc4fceac8502edc7788b7e3
treef90808dea27cc38aff6feed1782e2a5666fa6ee9
parentbc284f94f84c3d76e49c6f3df9028c503f9589d9
net: sock_queue_err_skb() dont mess with sk_forward_alloc

Correct sk_forward_alloc handling for error_queue would need to use a
backlog of frames that softirq handler could not deliver because socket
is owned by user thread. Or extend backlog processing to be able to
process normal and error packets.

Another possibility is to not use mem charge for error queue, this is
what I implemented in this patch.

Note: this reverts commit 29030374
(net: fix sk_forward_alloc corruptions), since we dont need to lock
socket anymore.

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