summaryrefslogtreecommitdiff
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorJonathan Lemon <jonathan.lemon@gmail.com>2021-01-07 01:18:29 +0300
committerJakub Kicinski <kuba@kernel.org>2021-01-08 03:06:37 +0300
commit424f481f06dc7f1528447cc3224f5fd3c5e11f65 (patch)
treeaba89a66e396e259786f0122d50ba3068be0d766 /include/linux/skbuff.h
parent7cd1de76c95f1c36cf761fd53dec35b13c1e8f70 (diff)
downloadlinux-424f481f06dc7f1528447cc3224f5fd3c5e11f65.tar.xz
skbuff: remove unused skb_zcopy_abort function
skb_zcopy_abort() has no in-tree consumers, remove it. Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com> Acked-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 333bcdc39635..3ca8d7c7b30c 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1490,17 +1490,6 @@ static inline void skb_zcopy_clear(struct sk_buff *skb, bool zerocopy)
}
}
-/* Abort a zerocopy operation and revert zckey on error in send syscall */
-static inline void skb_zcopy_abort(struct sk_buff *skb)
-{
- struct ubuf_info *uarg = skb_zcopy(skb);
-
- if (uarg) {
- sock_zerocopy_put_abort(uarg, false);
- skb_shinfo(skb)->tx_flags &= ~SKBTX_ZEROCOPY_FRAG;
- }
-}
-
static inline void skb_mark_not_on_list(struct sk_buff *skb)
{
skb->next = NULL;