From patchwork Tue Oct 2 17:51:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 10623927 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4E97915E8 for ; Tue, 2 Oct 2018 17:51:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F7BB27D0E for ; Tue, 2 Oct 2018 17:51:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 339C127D29; Tue, 2 Oct 2018 17:51:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2CA527D4A for ; Tue, 2 Oct 2018 17:51:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726178AbeJCAf6 (ORCPT ); Tue, 2 Oct 2018 20:35:58 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:47554 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726233AbeJCAf6 (ORCPT ); Tue, 2 Oct 2018 20:35:58 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1g7OpQ-0003Fx-HB; Tue, 02 Oct 2018 19:51:24 +0200 From: Johannes Berg To: backports@vger.kernel.org Cc: Johannes Berg Subject: [PATCH 5/6] backports: add __skb_peek() Date: Tue, 2 Oct 2018 19:51:06 +0200 Message-Id: <20181002175107.16336-5-johannes@sipsolutions.net> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181002175107.16336-1-johannes@sipsolutions.net> References: <20181002175107.16336-1-johannes@sipsolutions.net> Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Johannes Berg New API slated to show up in 4.20. Signed-off-by: Johannes Berg --- 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 */