git: 1213a6bea8a1 - main - LinuxKPI: skbuff: add napi_build_skb() and skb_mark_for_recycle()

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Tue, 23 May 2023 23:19:12 UTC
The branch main has been updated by bz:

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

commit 1213a6bea8a16dc797efea5a7ed7d6a4d7cb4675
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2023-05-23 23:07:31 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2023-05-23 23:18:35 +0000

    LinuxKPI: skbuff: add napi_build_skb() and skb_mark_for_recycle()
    
    Add more (skeleton) functions used by wireless drivers.
    
    MFC after:      10 days
---
 sys/compat/linuxkpi/common/include/linux/skbuff.h | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/include/linux/skbuff.h b/sys/compat/linuxkpi/common/include/linux/skbuff.h
index 81b594895dbf..8d4fefdb1a2b 100644
--- a/sys/compat/linuxkpi/common/include/linux/skbuff.h
+++ b/sys/compat/linuxkpi/common/include/linux/skbuff.h
@@ -1,6 +1,6 @@
 /*-
  * Copyright (c) 2020-2023 The FreeBSD Foundation
- * Copyright (c) 2021-2022 Bjoern A. Zeeb
+ * Copyright (c) 2021-2023 Bjoern A. Zeeb
  *
  * This software was developed by Björn Zeeb under sponsorship from
  * the FreeBSD Foundation.
@@ -1046,6 +1046,15 @@ napi_consume_skb(struct sk_buff *skb, int budget)
 	SKB_TODO();
 }
 
+static inline struct sk_buff *
+napi_build_skb(void *data, size_t len)
+{
+
+	SKB_TRACE(skb);
+	SKB_TODO();
+	return (NULL);
+}
+
 static inline uint32_t
 skb_get_hash(struct sk_buff *skb)
 {
@@ -1054,6 +1063,13 @@ skb_get_hash(struct sk_buff *skb)
 	return (0);
 }
 
+static inline void
+skb_mark_for_recycle(struct sk_buff *skb)
+{
+	SKB_TRACE(skb);
+	SKB_TODO();
+}
+
 #define	SKB_WITH_OVERHEAD(_s)						\
 	(_s) - ALIGN(sizeof(struct skb_shared_info), CACHE_LINE_SIZE)