| commit | 1f29351617ffe827edf80ffdfdef2da3a2494f96 | [log] [tgz] |
|---|---|---|
| author | Michael S. Tsirkin <mst@redhat.com> | Fri Jul 20 09:23:07 2012 +0000 |
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Jun 30 20:01:33 2014 -0700 |
| tree | 61af1c6d0e19add8ec09856334928337276fa5e0 | |
| parent | a97df3f22b83742deb9191d53928641ec3befb6e [diff] |
skbuff: add an api to orphan frags
commit a353e0ce0fd42d8859260666d1e9b10f2abd4698 upstream.
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>