From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 179E6C7EE24 for ; Mon, 5 Jun 2023 18:01:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234180AbjFESBO (ORCPT ); Mon, 5 Jun 2023 14:01:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235037AbjFESAy (ORCPT ); Mon, 5 Jun 2023 14:00:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99042F9 for ; Mon, 5 Jun 2023 11:00:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 50F21628F3 for ; Mon, 5 Jun 2023 18:00:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74DCCC433EF; Mon, 5 Jun 2023 18:00:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685988041; bh=lZb4iIlfbn3a0MKKXDqoE1jvt5CsqzMShPWBWD/Z20Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=aHkJjnqwuuw6HO1w62WdfmosaFKYQVpMO5Ipx+adjKCTalQnmQUi1MWlkwFiAbNi9 usFYsN6LSDtxKVUcVZLEypm1thDhvAIbbZ7vsbmlhyltggHJJ36pjZk/Cs2dkUiMbZ pLNk5p5aFLUedLhBP0OASBDE09IKP5XWRwXDqgq5hvNA6Byf8BUDwgKBaZYeeycISQ N0dg8iYVZYLcQbvE7RWC5/oU2EZ+x1OC+Nn7CLvw5vJ9whXZpWxCIKWLQqOONc7ROd 3rYA3HUooYVR3Z6GmtcbWvrVohI14o1jpo5hbjIy1ux8dXt4c50fc0iodz9CR7EN8v B6p2ipB1w9mpQ== Date: Mon, 5 Jun 2023 11:00:40 -0700 From: Jakub Kicinski To: Stefan Roesch Cc: io-uring@vger.kernel.org, kernel-team@fb.com, axboe@kernel.dk, ammarfaizi2@gnuweeb.org, netdev@vger.kernel.org, olivier@trillion01.com Subject: Re: [PATCH v13 1/7] net: split off __napi_busy_poll from napi_busy_poll Message-ID: <20230605110040.3713a1fb@kernel.org> In-Reply-To: References: <20230518211751.3492982-1-shr@devkernel.io> <20230518211751.3492982-2-shr@devkernel.io> <20230531102644.7f171d48@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On Mon, 05 Jun 2023 10:47:40 -0700 Stefan Roesch wrote: > > Can you refactor this further? I think the only state that's kept > > across "restarts" is the start_time right? So this version is > > effectively a loop around what ends up being napi_busy_loop_rcu(), no? > > I'm not sure I understand this correctly. Do you want the start time to > be a parameter of the function napi_busy_poll_rcu? The RCU and non-RCU version of this function end up looking very similar, what I'm asking is to share more code.