Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1623307rda; Mon, 23 Oct 2023 20:08:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHEp1T4BMK5P5VwzsO2RZPkZ4+aWdXW4X3JHy/BOdhVg/9kJyJaN/Z03hT63BSEYfq5io+7 X-Received: by 2002:a05:6870:7a06:b0:1e9:e0df:eeec with SMTP id hf6-20020a0568707a0600b001e9e0dfeeecmr15164132oab.37.1698116934733; Mon, 23 Oct 2023 20:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698116934; cv=none; d=google.com; s=arc-20160816; b=aTfQT1i0NxwT2/9CqN3iJLnNr4Ef4bVGhSk1He7x44M1ruM0uoJUj0Jav0ghE20p8M 2xGpWPB2FWPgEmqauqI/1twsIBfBbVHKsWfCvCahq3D0GuJr0jH9JjrAyt9Uo/zi+Dor OFJShY1wB9/PcrJ0PHtXwv+LsA6tImAWm+/yPcOcey1exUQqhjUU+adDQVRyiQbNLBY7 qVORj3vXKgcwpTD2MxVMJxep0wFPJ4GPn39tq+SyYLcjquHuIZ1qbvho+kspDSEAgNCz 0S//f56KGVaEsqNeV5ZZZeu1E0nbzFw5XOzRuCL/LW+88e0uJ+eJISEDXS7TT3WLEnO4 PZSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:subject:from:user-agent:mime-version:date:message-id; bh=lRTAijQHsFeqbXGGQpc8mgZVyi57dq0/JJOMaxEm+xE=; fh=enfmFjGSk14JxoQWxPyAnVj2nCXxkcmybLXsYEoAW8I=; b=VvIqbv88A1LFdqTivPjvDe4463wlX17IaFFobYBc91QO0c3+MKSTN7rMjZPOO8bNC3 sbHWbTHpz2/DMhOY9YFkbcPwQhxkQu4hqjg58NzrbnPMNbrkdbuRAHWQSjZBfVwBg9Fm R2LE0qQLkEwx5bmi+JXOeaTh3RISek2XV9Og9XQ5xN+D7NhAgmwGlYIJ+coFndK2OdMB yA4u/nYYkpsq4IiECTWG4v2ZsggUDxzTRAcpH3Hvh3BuElef+8btQC3C1SgH+0XqCaA5 /8FHRUm/iUJGWuxVjBUG/P7ww8/dOQwnfg9w7KGDSlMI2kq/SpaR7mXfdy0DBHTITXnA 59ww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bz34-20020a056a02062200b0057745d87b50si8149310pgb.139.2023.10.23.20.08.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 20:08:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id DE2CB808D6A8; Mon, 23 Oct 2023 20:08:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232212AbjJXDIa (ORCPT + 99 others); Mon, 23 Oct 2023 23:08:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231254AbjJXDI2 (ORCPT ); Mon, 23 Oct 2023 23:08:28 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D277B95; Mon, 23 Oct 2023 20:08:21 -0700 (PDT) Received: from kwepemm000007.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4SDxjY0pmyzNnGW; Tue, 24 Oct 2023 11:04:17 +0800 (CST) Received: from [10.67.120.192] (10.67.120.192) by kwepemm000007.china.huawei.com (7.193.23.189) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Tue, 24 Oct 2023 11:08:18 +0800 Message-ID: <320656f5-5f6a-4d5c-a028-98d4a1b0dd85@huawei.com> Date: Tue, 24 Oct 2023 11:08:07 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Jijie Shao Subject: Re: [PATCH net-next] net: hns3: add some link modes for hisilicon device To: "Drewek, Wojciech" , "yisen.zhuang@huawei.com" , "salil.mehta@huawei.com" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" CC: , "shenjian15@huawei.com" , "wangjie125@huawei.com" , "liuyonglong@huawei.com" , "chenhao418@huawei.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20231023010836.507078-1-shaojijie@huawei.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.120.192] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm000007.china.huawei.com (7.193.23.189) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 23 Oct 2023 20:08:49 -0700 (PDT) on 2023/10/23 16:55, Drewek, Wojciech wrote: > > > } > > +static const struct hclge_link_mode_bit_map hclge_sr_link_mode_bit_map[8] = { > Names of those arrays are a bit too long. I know this is a standard here but I'm not sure if > "bit_map" at the end is necessary. "bit_map" will change to "bmap" in v2 patch,and the structure name will be changed together. >> + {HCLGE_SUPPORT_10G_BIT, ETHTOOL_LINK_MODE_10000baseSR_Full_BIT}, >> + {HCLGE_SUPPORT_25G_BIT, ETHTOOL_LINK_MODE_25000baseSR_Full_BIT}, >> + {HCLGE_SUPPORT_40G_BIT, ETHTOOL_LINK_MODE_40000baseSR4_Full_BIT}, >> + {HCLGE_SUPPORT_50G_R2_BIT, ETHTOOL_LINK_MODE_50000baseSR2_Full_BIT}, >> + if (speed_ability & hclge_sr_link_mode_bit_map[i].support_bit) >> + linkmode_set_bit( > Checkpatch complains about wrong wrapping (here and in the next 3 functions): > CHECK: Lines should not end with a '(' > >> + hclge_sr_link_mode_bit_map[i].link_mode, >> + link_mode); >> + } >> } this wrong wrapping will disappear if "bit_map" change to "bmap". Thanks.