]> git.baikalelectronics.ru Git - kernel.git/commit
tun: report orphan frags errors to zero copy callback
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 1 Nov 2012 09:16:32 +0000 (09:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Nov 2012 01:29:57 +0000 (21:29 -0400)
commitb28d21b5574e07fec0629209434b08fb177cde37
tree600293aadc93c8f5d5d48bba03fa8087d35e46c7
parentf15c81471f09c9c5895f1091f5f71cd5cafe26f5
tun: report orphan frags errors to zero copy callback

When tun transmits a zero copy skb, it orphans the frags
which might need to allocate extra memory, in atomic context.
If that fails, notify ubufs callback before freeing the skb
as a hint that device should disable zerocopy mode.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c