]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2fd8a15ba9a5ff01aee6de87c68972a7096102de
tree391de83f18ede9ca651ed347112ce4400e4645d5
parent1798f3cbb6b5301ae75d3551e7f20111a3eea222
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