diff mbox series

[5/6] backports: add __skb_peek()

Message ID 20181002175107.16336-5-johannes@sipsolutions.net (mailing list archive)
State Changes Requested
Headers show
Series [1/6] backports: rename magic functions for netlink parsing | expand

Commit Message

Johannes Berg Oct. 2, 2018, 5:51 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

New API slated to show up in 4.20.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 backport/backport-include/linux/skbuff.h | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/backport/backport-include/linux/skbuff.h b/backport/backport-include/linux/skbuff.h
index 61133c4277cc..44b2a5de0478 100644
--- a/backport/backport-include/linux/skbuff.h
+++ b/backport/backport-include/linux/skbuff.h
@@ -382,4 +382,11 @@  static inline void skb_put_u8(struct sk_buff *skb, u8 val)
 }
 #endif
 
+#if LINUX_VERSION_IS_LESS(4,20,0)
+static inline struct sk_buff *__skb_peek(const struct sk_buff_head *list_)
+{
+	return list_->next;
+}
+#endif
+
 #endif /* __BACKPORT_SKBUFF_H */