git: e039b38d4652 - main - LinuxKPI: skbuff: add skb_cow_head()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 19 Aug 2023 04:56:41 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=e039b38d4652b6a68567f8d632c3dfa4f15c40f6
commit e039b38d4652b6a68567f8d632c3dfa4f15c40f6
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2023-08-10 02:07:41 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2023-08-19 04:55:56 +0000
LinuxKPI: skbuff: add skb_cow_head()
Add dummy implementation of skb_cow_head().
Sponsored by: The FreeBSD Foundation
MFC after: 10 days
---
sys/compat/linuxkpi/common/include/linux/skbuff.h | 8 ++++++++
1 file changed, 8 insertions(+)
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)