aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2023-08-10 02:07:41 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2023-11-29 16:36:05 +0000
commitc4b6c6c2d4083de4bdbbcfc8d39573e30d799501 (patch)
treeb9f614737a62508b7e8ffbf8da8ca5cb587ecaea
parent934b2489b951698adc5d4c3421fa66fb80be7052 (diff)
downloadsrc-c4b6c6c2d4083de4bdbbcfc8d39573e30d799501.tar.gz
src-c4b6c6c2d4083de4bdbbcfc8d39573e30d799501.zip
LinuxKPI: skbuff: add skb_cow_head()
Add dummy implementation of skb_cow_head(). Sponsored by: The FreeBSD Foundation (cherry picked from commit e039b38d4652b6a68567f8d632c3dfa4f15c40f6)
-rw-r--r--sys/compat/linuxkpi/common/include/linux/skbuff.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/skbuff.h b/sys/compat/linuxkpi/common/include/linux/skbuff.h
index 6f48ac74996b..c917b3f09ac9 100644
--- a/sys/compat/linuxkpi/common/include/linux/skbuff.h
+++ b/sys/compat/linuxkpi/common/include/linux/skbuff.h
@@ -1067,6 +1067,14 @@ skb_mark_for_recycle(struct sk_buff *skb)
SKB_TODO();
}
+static inline int
+skb_cow_head(struct sk_buff *skb, unsigned int headroom)
+{
+ SKB_TRACE(skb);
+ SKB_TODO();
+ return (-1);
+}
+
#define SKB_WITH_OVERHEAD(_s) \
(_s) - ALIGN(sizeof(struct skb_shared_info), CACHE_LINE_SIZE)