]> 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)
commit2fe5646f54979d1ca539a31dca2c74469138c84f
tree391de83f18ede9ca651ed347112ce4400e4645d5
parent0c742c8109d8f1794ba481825c43472f39be97ad
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