Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp936083pxb; Wed, 6 Apr 2022 04:47:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJEs9+8nUsH1IFx+u9ZTDphHbrnX+gMQ76wPZZF61I3S/1bANptx9gGL3w3cye8xgVgeAH X-Received: by 2002:a63:6984:0:b0:398:8db9:7570 with SMTP id e126-20020a636984000000b003988db97570mr6644711pgc.373.1649245648924; Wed, 06 Apr 2022 04:47:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649245648; cv=none; d=google.com; s=arc-20160816; b=T6PIE/qm0omr74TRDpa4x3Yx+KgdVBaFTnjRLToNW3ckaukfh3y5QXlZsBGe+FzXl8 Q2UTym3/xXifepsWGQCR3c2b272zfpCoi6fl4Jh7XrdMQ3mQ93FeEj5X493iEfDl5J4e HZunxBAr4jNF8Gl6biUEnw5gz6gVvRcoJ7Dz1mNEoc2ysEDjMf6Q1WA8Mv7ekVL1jij2 z3dXB5P4mg6h6lF1AMIPwk6sk77HqgHZa2j/wuFIsodiILbrMN7VtmB6r62KhLbpqnwF kF6h0FGsAmyKvESWNIcuxhFJHBhJUsvAcR7cEG+u1q5DOK6yg2FrBh8ej04WtYqarjTv cjgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=KNg4AZEf6q0r3cJD0ack2gIYIzSYLVvZ8hnpdOCLJHY=; b=JO22KBLiYQuVGYP3GB8rr/ZT3cdxZ/Z/hek78X1R3QHEYukBwVEcu0QREztQp0n4xh 4FssVEa4D0g0VTt3DMSk0ak2KqorTpttOnTTl4l7M+yPvXB7ypjDttfLnv3ReyketcpM cYvoZrT+ABd0EzZwTcpV0PfRYxozPkbfomRkcRl3xvDH/eyea5bnoE35hEBRp/Noqjos FJz5u9vav7qS3smqvIx0spaV0PsG6aUel5+XzFWwClXFbuBWMSR50ihx5x24/OZi0BTe xFEg3PB5F4wExsACmET1daNiN+bIUwQYNf4L/9603ez8K5LwwL7YIjzeRxvDmzf6fTSe OG7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c15-20020a63d50f000000b003816043ee1dsi15941814pgg.18.2022.04.06.04.47.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:47:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7966E62AD8D; Wed, 6 Apr 2022 03:04:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1456957AbiDEWqy (ORCPT + 99 others); Tue, 5 Apr 2022 18:46:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356773AbiDELPn (ORCPT ); Tue, 5 Apr 2022 07:15:43 -0400 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4E5AC98F54; Tue, 5 Apr 2022 03:36:24 -0700 (PDT) Received: from netfilter.org (unknown [78.30.32.163]) by mail.netfilter.org (Postfix) with ESMTPSA id 5706460196; Tue, 5 Apr 2022 12:32:45 +0200 (CEST) Date: Tue, 5 Apr 2022 12:36:20 +0200 From: Pablo Neira Ayuso To: Jakob Koschel Cc: linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Mike Rapoport , Brian Johannesmeyer , Cristiano Giuffrida , "Bos, H.J." Subject: Re: [PATCH v2] netfilter: nf_tables: replace unnecessary use of list_for_each_entry_continue() Message-ID: References: <20220322105645.3667322-1-jakobkoschel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220322105645.3667322-1-jakobkoschel@gmail.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 22, 2022 at 11:56:44AM +0100, Jakob Koschel wrote: > Since there is no way for list_for_each_entry_continue() to start > interating in the middle of the list they can be replaced with a call > to list_for_each_entry(). > > In preparation to limit the scope of the list iterator to the list > traversal loop, the list iterator variable 'rule' should not be used > past the loop. Applied to nf-next, thanks