From: Johannes Berg <johannes.berg@xxxxxxxxx> New API slated to show up in 4.20. Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> --- backport/backport-include/linux/skbuff.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 */ -- 2.14.4 -- To unsubscribe from this list: send the line "unsubscribe backports" in