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:36:04 +0000 (14:36 -0700)
commit2c272bd98f619caf0b83ecf97addd94488a0c258
treeab98760466674cb67f99273167f71f4e5a4e3625
parentfd34f17610bf6d679e5606b081807e282980968c
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