From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 A8C62848A; Tue, 19 Sep 2023 12:08:25 +0000 (UTC) Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34E1CF7; Tue, 19 Sep 2023 05:08:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=yPXw5msWBa7gpoTMlarfa1JynmH72wdGK8K5th/5R3U=; b=bt8IMNCWIoMPhCUaKCSuJa5xCE 55Y7MUY7M0PFq4nl56NsGy1MY3WvNRyRRFvOTpV/Y1zvxoaOH7ktZavRUWTm7EFNAfenm3UVi2iPr c5l5zGC3lWP5PCZ3GrlLVYC+BvylVqrSjQqfSDngq2d73+IlXbZQeb8qXlax9s95NQ64=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qiZWS-006uCd-Ap; Tue, 19 Sep 2023 14:08:08 +0200 Date: Tue, 19 Sep 2023 14:08:08 +0200 From: Andrew Lunn To: Hayes Wang Cc: kuba@kernel.org, davem@davemloft.net, netdev@vger.kernel.org, nic_swsd@realtek.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, edumazet@google.com, bjorn@mork.no, pabeni@redhat.com Subject: Re: [PATCH net-next v2 1/2] r8152: remove queuing rx packets in driver Message-ID: <369f3139-4e63-4327-8745-2d72d7dfea8f@lunn.ch> References: <20230919031351.7334-429-nic_swsd@realtek.com> <20230919031351.7334-430-nic_swsd@realtek.com> Precedence: bulk X-Mailing-List: linux-usb@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: <20230919031351.7334-430-nic_swsd@realtek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net > - return work_done; > + if (work_done > budget) > + return budget; > + else > + return work_done; > } I don't know NAPI too well. Are there implications of not telling it the truth? Andrew