summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2018-10-02 17:46:08 +0200
committerJohannes Berg <johannes.berg@intel.com>2018-10-02 21:25:49 +0200
commitbb1b944b60c02ac7551bab4579f38007ba146125 (patch)
treea9bf26364deb8a893b2ac19d88777f4055751942
parentb49a73b91de67fda787669b0c889fa2c5a24b0a6 (diff)
backports: add __skb_peek()
New API slated to show up in 4.20. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--backport/backport-include/linux/skbuff.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/backport/backport-include/linux/skbuff.h b/backport/backport-include/linux/skbuff.h
index 61133c42..44b2a5de 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 */