diff options
author | Yue Haibing <yuehaibing@huawei.com> | 2025-03-12 14:34:50 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-03-18 13:04:12 +0100 |
commit | 24faa63bcea88b6f24b0a3a710708505a876f9ba (patch) | |
tree | ef73bc21940eace0807733aec0317bf29834c749 | |
parent | 15f9e34a499e896075d562ee47aac36e0e380d6a (diff) |
net: skbuff: Remove unused skb_add_data()
Since commit a4ea4c477619 ("rxrpc: Don't use a ring buffer for call Tx
queue") this function is not used anymore.
Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250312063450.183652-1-yuehaibing@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
-rw-r--r-- | include/linux/skbuff.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index b8a1343d6785..cd8294cdc249 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -3867,25 +3867,6 @@ static inline int __must_check skb_put_padto(struct sk_buff *skb, unsigned int l bool csum_and_copy_from_iter_full(void *addr, size_t bytes, __wsum *csum, struct iov_iter *i) __must_check; -static inline int skb_add_data(struct sk_buff *skb, - struct iov_iter *from, int copy) -{ - const int off = skb->len; - - if (skb->ip_summed == CHECKSUM_NONE) { - __wsum csum = 0; - if (csum_and_copy_from_iter_full(skb_put(skb, copy), copy, - &csum, from)) { - skb->csum = csum_block_add(skb->csum, csum, off); - return 0; - } - } else if (copy_from_iter_full(skb_put(skb, copy), copy, from)) - return 0; - - __skb_trim(skb, off); - return -EFAULT; -} - static inline bool skb_can_coalesce(struct sk_buff *skb, int i, const struct page *page, int off) { |