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 8E601C25B0E for ; Tue, 16 Aug 2022 18:13:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237038AbiHPSNP (ORCPT ); Tue, 16 Aug 2022 14:13:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236996AbiHPSNL (ORCPT ); Tue, 16 Aug 2022 14:13:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5713196; Tue, 16 Aug 2022 11:13:07 -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 2BA9560F0E; Tue, 16 Aug 2022 18:13:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38308C433D6; Tue, 16 Aug 2022 18:13:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660673586; bh=XbAc7JtDFaqil7L7oXl65af6y1FHgq7Wjx4yuQUnwHM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KtZ0iolpEQnjcW68XqPt21LF5emDFaAIJyZfIQlqnA47PPWa5U4Pezhwfv6A08k2p AnlnoTD86/pPVn9O+e3A5c/++uolriqnOBXLY3qb9H4y1TMmSSdEVFiaGRoa4mKTqU TFuAqsxIGOSBuYmDw9OEoFokpD6tuWjN+WjGBDKGr3fHLOVDXYzLeCjvZAVi5KOgG7 uDOXeOzW2URSliuUpFTnvlf+7ANCFNnkWU5YN0f8dfLBoAZY74CUn948aaIvrs7n/w k78khjKE2A7kohMdmMX1A2+w3j/YPpN2mAsu/cc3fA5JXTmcyDLKrETN7DKtghhbVY RAUXLpB0eooJA== Date: Tue, 16 Aug 2022 11:13:05 -0700 From: Jakub Kicinski To: shaozhengchao Cc: , , , , , , , , , Subject: Re: [PATCH net-next,0/3] cleanup of qdisc offload function Message-ID: <20220816111305.4851a510@kernel.org> In-Reply-To: <694f07e3-d5ad-1bc5-1cdb-ae814b1a12f7@huawei.com> References: <20220816020423.323820-1-shaozhengchao@huawei.com> <20220815201038.4321b77e@kernel.org> <694f07e3-d5ad-1bc5-1cdb-ae814b1a12f7@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, 16 Aug 2022 11:32:03 +0800 shaozhengchao wrote: > On 2022/8/16 11:10, Jakub Kicinski wrote: > > On Tue, 16 Aug 2022 10:04:20 +0800 Zhengchao Shao wrote: > >> Some qdiscs don't care return value of qdisc offload function, so make > >> function void. > > > > How many of these patches do you have? Is there a goal you're working > > towards? I don't think the pure return value removals are worth the > > noise. They don't even save LoC: > > > > 3 files changed, 9 insertions(+), 9 deletions(-) > > Thank you for your reply. Recently I've been studying the kernel code > related to qdisc, and my goal is to understand how qdisc works. If the > code can be optimized, I do what I can to modify the optimization. Is it > more appropriate to add warning to the offload return value? I look > forward to your reply. Thank you. Understood. Please stop sending the cleanups removing return values unless the patches materially improve the code.