From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B7C33101F6 for ; Wed, 4 Oct 2023 12:44:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E79B6C433C7; Wed, 4 Oct 2023 12:44:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696423497; bh=0V0CfSRBKlx72H+jVZOyuYK8/XWD0Ufu/CzgXYZ2O+Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rA8u+ti5zQwp6pG/YRmBSlYK8lqLYxqkxUB3u1xwjiCTjdR9quZyawcvKv3IO1CHQ u8TmnVCF5XBgbgAXTMGGwVGSrJ5/ob/bB7nwlB/z1uH4ZXHRvUbPjjeMwivzpcYbXS ogkfDqx0dTRWcBJClGsUy4bm39ZtoBuuWj7PGUvWfWCPoxd9D6+81LI3kEZhpZQmI7 Y7iQR9WbfjBLoJVH1LyJKuq75WR0wiTd/+0wqqSG7jnY7ovrVQDPusI0hg3HpOZZwE B4yf1Kb+MWP1/5pcdHrPtUmdIBi/n+6PXyscXm/zgsqJDjC55SUgY1k+toAwVZ/MtO 9qk7qaX5ABWAA== Date: Wed, 4 Oct 2023 14:44:53 +0200 From: Simon Horman To: Eric Dumazet Cc: "David S . Miller" , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, eric.dumazet@gmail.com Subject: Re: [PATCH net-next] net: skb_queue_purge_reason() optimizations Message-ID: References: <20231003181920.3280453-1-edumazet@google.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231003181920.3280453-1-edumazet@google.com> On Tue, Oct 03, 2023 at 06:19:20PM +0000, Eric Dumazet wrote: > 1) Exit early if the list is empty. > > 2) splice the list into a local list, > so that we block hard irqs only once. > > Signed-off-by: Eric Dumazet Reviewed-by: Simon Horman