datapath: Orphan frags in skb_zerocopy and handle errors
authorZoltan Kiss <zoltan.kiss@citrix.com>
Fri, 11 Apr 2014 16:16:48 +0000 (17:16 +0100)
committerJesse Gross <jesse@nicira.com>
Mon, 14 Apr 2014 21:38:36 +0000 (14:38 -0700)
commita2946b415e52059607a43d41ba7ad0123b39c587
tree27003ba64772cc512798cc435006624f916ebfb4
parentbd3759d35c870d9ae66118a704d950144a66a535
datapath: Orphan frags in skb_zerocopy and handle errors

This is the ported version of commit 36d5fe6a with the same name from net-next.
Apart from the small datapath.c changes it adjust the compat layer files as
well. This is the original commit message:

"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: Jesse Gross <jesse@nicira.com>
datapath/datapath.c
datapath/linux/compat/include/linux/skbuff.h
datapath/linux/compat/skbuff-openvswitch.c