]> Pileus Git - ~andy/linux/commit
skb: api to report errors for zero copy skbs
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 1 Nov 2012 09:16:28 +0000 (09:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Nov 2012 01:29:57 +0000 (21:29 -0400)
commit25121173f7b1e4ac3fc692df6e7b8c52ec36abba
tree5d52c2fe88397dae0ee799c194d46bf641b0a902
parente19d6763cc300fcb706bd291b24ac06be71e1ce6
skb: api to report errors for zero copy skbs

Orphaning frags for zero copy skbs needs to allocate data in atomic
context so is has a chance to fail. If it does we currently discard
the skb which is safe, but we don't report anything to the caller,
so it can not recover by e.g. disabling zero copy.

Add an API to free skb reporting such errors: this is used
by tun in case orphaning frags fails.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/skbuff.c