core, nfqueue, openvswitch: Orphan frags in skb_zerocopy and handle errors
authorZoltan Kiss <zoltan.kiss@citrix.com>
Wed, 26 Mar 2014 22:37:45 +0000 (22:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Mar 2014 19:29:38 +0000 (15:29 -0400)
commit36d5fe6a000790f56039afe26834265db0a3ad4c
tree391de83f18ede9ca651ed347112ce4400e4645d5
parentfc0d48b8fb449ca007b2057328abf736cb516168
core, nfqueue, openvswitch: Orphan frags in skb_zerocopy and handle errors

skb_zerocopy can copy elements of the frags array between skbs, but it doesn't
orphan them. Also, it doesn't handle errors, so this patch takes care of that
as well, and modify the callers accordingly. skb_tx_error() is also added to
the callers so they will signal the failed delivery towards the creator of the
skb.

Signed-off-by: Zoltan Kiss <zoltan.kiss@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/skbuff.c
net/netfilter/nfnetlink_queue_core.c
net/openvswitch/datapath.c