From 1213a6bea8a16dc797efea5a7ed7d6a4d7cb4675 Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Tue, 23 May 2023 23:07:31 +0000 Subject: [PATCH] LinuxKPI: skbuff: add napi_build_skb() and skb_mark_for_recycle() Add more (skeleton) functions used by wireless drivers. MFC after: 10 days --- .../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)