]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4950666cbed52e7115f5615d53046e9dad97028b
treef90808dea27cc38aff6feed1782e2a5666fa6ee9
parent0667556bd497ab402cccb72ed7fe38b88b27c832
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 05988c0d
(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