commit | d7dd6fe0215997eb971960350294f5079e707fba | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Mon May 07 14:24:00 2012 +0300 |
committer | Michael S. Tsirkin <mst@redhat.com> | Tue Jul 17 16:51:03 2012 +0300 |
tree | 0a112dd248862b555d44caf551e58321cbd8cc3a | |
parent | 84a1caf1453c3d44050bd22db958af4a7f99315c [diff] |
skbuff: add an api to orphan frags Many places do if ((skb_shinfo(skb)->tx_flags & SKBTX_DEV_ZEROCOPY)) skb_copy_ubufs(skb, gfp_mask); to copy and invoke frag destructors if necessary. Add an inline helper for this. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>