git: c4b6c6c2d408 - stable/13 - LinuxKPI: skbuff: add skb_cow_head()

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Wed, 29 Nov 2023 16:38:04 UTC
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=c4b6c6c2d4083de4bdbbcfc8d39573e30d799501

commit c4b6c6c2d4083de4bdbbcfc8d39573e30d799501
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2023-08-10 02:07:41 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2023-11-29 16:36:05 +0000

    LinuxKPI: skbuff: add skb_cow_head()
    
    Add dummy implementation of skb_cow_head().
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit e039b38d4652b6a68567f8d632c3dfa4f15c40f6)
---
 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)