All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: backports@vger.kernel.org
Cc: Johannes Berg <johannes.berg@intel.com>
Subject: [PATCH v2 5/6] backports: add __skb_peek()
Date: Tue,  2 Oct 2018 21:32:14 +0200	[thread overview]
Message-ID: <20181002193215.399-5-johannes@sipsolutions.net> (raw)
In-Reply-To: <20181002193215.399-1-johannes@sipsolutions.net>

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 --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

  parent reply	other threads:[~2018-10-02 19:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-02 19:32 [PATCH v2 1/6] backports: rename magic functions for netlink parsing Johannes Berg
2018-10-02 19:32 ` [PATCH v2 2/6] backports: fix genlmsg_nlhdr() backport Johannes Berg
2018-10-02 19:32 ` [PATCH v2 3/6] backports: add copy-list.hwsim Johannes Berg
2018-10-02 19:32 ` [PATCH v2 4/6] backports: backport most of improved netlink policy validation Johannes Berg
2018-10-02 19:32 ` Johannes Berg [this message]
2018-10-02 19:32 ` [PATCH v2 6/6] backports: genetlink: update completely Johannes Berg
2018-10-02 19:33 ` [PATCH v2 1/6] backports: rename magic functions for netlink parsing Johannes Berg
2018-10-02 19:34   ` Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181002193215.399-5-johannes@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=backports@vger.kernel.org \
    --cc=johannes.berg@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.