Message ID | 20210122135734.153685343@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp1559372jam; Fri, 22 Jan 2021 06:23:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTJNPKbt4bExRFZzII4Pz/7H0ZgyFIngBYTh7Xgsjaj4iiTKGQHsJIo2DfOfw12h65AGbP X-Received: by 2002:a17:906:af89:: with SMTP id mj9mr3020819ejb.528.1611325430753; Fri, 22 Jan 2021 06:23:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611325430; cv=none; d=google.com; s=arc-20160816; b=yaHAUzJ9tBsv7G4nxFn1HW1V3CuLny6o8+EC3nbBiP+cWs3Ax2ftnTYx2ycs2ITbJk Kp9sDTMZbtTgOgCDtS4SHlbetCW957XBfFzF80n2/D7E43lHtYlDgdbEYdkWTn55q5zl PrWzyWZrBeMDfupcm2I79NhV5oV12cAbViK4VpiGyzNf2e0By3iyERkXnB0wQYyybUrC YBL0S0ZjxwCzaBwXf7chQDs2r6Ev/Yr/F+taKoIxn5zdejg0RyXOR/SdaSdiDC3xQXLq z7EEeQb/S4NM7bdRYntxGM3sDJJ2SqKkRuIgvnbQm7+0yCuOFBbD9oR2b9+LFxG0oViD MExg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PEsw8QLRG5jyjexuP0HESz2j4eyJ2A1qC/nYEtxa0k0=; b=jpW4ThUgkIWpVBeXl0h+6TifpOqiMDSiX4Gl4tDoSqGTwtbzAcwHT73CZhYTrjHUjq hkZk646U6HJk21r0GBPHBnCH2ITXRYiz2T6Br/M9zMmjS3ptLIGahj105XGP/hJ6l5Sp W3Ku96hpnQUDQ0fK15s9Sv3v5Ongjqi9Mw2r1FKONQwmBU6cMU6UWAqb2UFqKItFtYGE ft9mTUDSoG8uw/us28kFM+ZMIIBi2/cYkna4Rdw/IDkgcvlOI6y+Vb3YhFRWkgaS8AVn 70NGzBPV2qWyUOm9Qfhgx3lr4xELw+a+PXBMqklbn3prJW3W8oyDQcbnGxyrHLq0EDQy ESdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2Fd8ezHh; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs17si2945925ejc.661.2021.01.22.06.23.50; Fri, 22 Jan 2021 06:23:50 -0800 (PST) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2Fd8ezHh; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728596AbhAVOXV (ORCPT <rfc822;semen.protsenko@linaro.org> + 13 others); Fri, 22 Jan 2021 09:23:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:39308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728563AbhAVOWy (ORCPT <rfc822;stable@vger.kernel.org>); Fri, 22 Jan 2021 09:22:54 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 66F5823B6C; Fri, 22 Jan 2021 14:16:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611325005; bh=WEE2pYAzXqt5jonheFeplys8motuV2yMEuaOr1evwKg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2Fd8ezHhc1oPF3R+/bJyezkY4an+PpymRzKThkw6PaASeTqrQVF4EK1WKKiU1MnIN 76JNYdvFs4cEGCyL9hqrV9P/fxd+fd3p2VOsZoBTrKj1TCJWX5SAI8fdYpNl2LdxFw b02608mhUWX85uw7hIX6MYK3PQDdYGBfg0mmvymU= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, "Jason A. Donenfeld" <Jason@zx2c4.com>, "David S. Miller" <davem@davemloft.net> Subject: [PATCH 5.4 14/33] net: introduce skb_list_walk_safe for skb segment walking Date: Fri, 22 Jan 2021 15:12:30 +0100 Message-Id: <20210122135734.153685343@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210122135733.565501039@linuxfoundation.org> References: <20210122135733.565501039@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -1480,6 +1480,11 @@ static inline void skb_mark_not_on_list( skb->next = NULL; } +/* Iterate through singly-linked GSO fragments of an skb. */ +#define skb_list_walk_safe(first, skb, next) \ + for ((skb) = (first), (next) = (skb) ? (skb)->next : NULL; (skb); \ + (skb) = (next), (next) = (skb) ? (skb)->next : NULL) + static inline void skb_list_del_init(struct sk_buff *skb) { __list_del_entry(&skb->list);