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 10F24C6FA86 for ; Tue, 27 Sep 2022 10:24:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231349AbiI0KYq (ORCPT ); Tue, 27 Sep 2022 06:24:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbiI0KYp (ORCPT ); Tue, 27 Sep 2022 06:24:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B46133C8CC; Tue, 27 Sep 2022 03:24:44 -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 55010617B2; Tue, 27 Sep 2022 10:24:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6FE5C433D7; Tue, 27 Sep 2022 10:24:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664274283; bh=68k0xU1GfUSymB8AypufkqWyiTubHjmRgLZtW7+ewT4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Yw3tmZt5rZWo3ewUFQvmHrIcWXW+NQnK4t82rlrLQvC1e8zvgybFDSKYGeYJAiZc5 +RdqXmjN98axgJoJpD5ut2tiAy0Gc7jN+8cIkSmdIJV79ocCGcCDweW+5CV79/CLMY p0WfphvEH0994jZGy9alODCmx3Wm3GzdIbixni0fd5+BOJF0zqxZvnftehTLzultXg G9RNOnmkJjaF44zOZCdexOMOgCdnNF3YJOhowAtV3IIhN8SPs2IIfY9byEk6c2Sh66 wyTL2Y1Q+CTGHbArVACxa5G4fKV8TPJ180QKzoqeMqucXhecB6hDHo3x2QZXWpT49k +4ZbqZfcyhOOw== Date: Tue, 27 Sep 2022 13:24:38 +0300 From: Leon Romanovsky To: Jakub Kicinski Cc: "huangguangbin (A)" , davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, lipeng321@huawei.com, lanhao@huawei.com Subject: Re: [PATCH net-next 00/14] redefine some macros of feature abilities judgement Message-ID: References: <20220924023024.14219-1-huangguangbin2@huawei.com> <77050062-93b5-7488-a427-815f4c631b32@huawei.com> <20220926101135.26382c0c@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220926101135.26382c0c@kernel.org> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, Sep 26, 2022 at 10:11:35AM -0700, Jakub Kicinski wrote: > On Mon, 26 Sep 2022 20:56:26 +0800 huangguangbin (A) wrote: > > On 2022/9/24 19:27, Leon Romanovsky wrote: > > > On Sat, Sep 24, 2022 at 10:30:10AM +0800, Guangbin Huang wrote: > > >> The macros hnae3_dev_XXX_supported just can be used in hclge layer, but > > >> hns3_enet layer may need to use, so this serial redefine these macros. > > > > > > IMHO, you shouldn't add new obfuscated code, but delete it. > > > > > > Jakub, > > > > > > The more drivers authors will obfuscate in-kernel primitives and reinvent > > > their own names, macros e.t.c, the less external reviewers you will be able > > > to attract. > > > > > > IMHO, netdev should have more active position do not allow obfuscated code. > > > > > > Thanks > > > > > > > Hi, Leon > > I'm sorry, I can not get your point. Can you explain in more detail? > > Do you mean the name "macro" should not be used? > > He is saying that you should try to remove those macros rather than > touch them up. Exactly, thanks Jakub.