Message ID | 20230927083135.3237206-3-ivecera@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2571218vqu; Wed, 27 Sep 2023 04:55:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+G03/Mk79lbxj8leE4mN7b/gsGzv07lnttknNJyESC9/sCHrVZ3a4wcz2T99gVWFmaP7S X-Received: by 2002:a17:90a:b38b:b0:277:3932:6b84 with SMTP id e11-20020a17090ab38b00b0027739326b84mr1335067pjr.21.1695815737498; Wed, 27 Sep 2023 04:55:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695815737; cv=none; d=google.com; s=arc-20160816; b=XT56TV6Eb2tKBvvs+Ddy6qDHQx3DCwI2vEeqMvR2N3zlFP4RONgkLBmYJhTAuDj13i WD6aA5rZJykBoaAV5nVJcRysjS6MN02yEEkBH30XaHIqh/74YX2o37hF+c0xGE0FdgHL Nmihb5v2dE2FE3RhAHQIpqnuwrCcg6GD7EeTYo05nSBLMpLAaj2N1wrwpC2vKHWacgpW PfmzH5ACJgaFrIzsjA6RLtSQHR1XSNJtBQTHHLWdXeGnCW0IYUZGttkjF0WqOoLb/58A 2LsOFlp9Gq2jT6ObafQotj6SD3SqMEXAJAMAsgVXO/ti5uvY96V+tI+HhOOsBNP/6uwl JoVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EZhuG50Q5miV4PoSUjX8aTRuuoG/6ZgIoL2i9m/DJWw=; fh=X581/NfAtwrGdJWYX7ReicuQGGe1jimazZZQLKiH3Gw=; b=HSlhM1OYTX5OEOII5mq9MTWdOIr5NcqVw/UY3t6Cp64Scjm/4gmvHbJpPnnNtHgx5Y aCuoXPHKqBPVlBlnIdgGuUuAFR6H7yr1vAkkkpsQxXG4dB+tkrrIde230B0npEyUs4lL PR2PP48SRrcSNlqQb1ukLuDZAam++qF2clX/CPwcvWDuwOy3xNG5I8Ebqv00PyvgyvgI 3vylKUdkNR9SfOkZuEryC1jtkCvPa86MiTA105SduM2ee19fJV8l8ZB18Z1va38Kn5Y3 o8ukJKKkrv0dfO41kUBAO9xjUTsKeyHIzeh1bFrtDpKgE98UG1pbhpMhMUQtemVpTYMX PcKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eEJJ9PkL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id v7-20020a17090a088700b00274c8943b59si17177171pjc.64.2023.09.27.04.55.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 04:55:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eEJJ9PkL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 5573180239F2; Wed, 27 Sep 2023 01:32:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230085AbjI0Ic3 (ORCPT <rfc822;ruipengqi7@gmail.com> + 23 others); Wed, 27 Sep 2023 04:32:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230018AbjI0Ic2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 27 Sep 2023 04:32:28 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CA8CD6 for <linux-kernel@vger.kernel.org>; Wed, 27 Sep 2023 01:31:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695803506; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EZhuG50Q5miV4PoSUjX8aTRuuoG/6ZgIoL2i9m/DJWw=; b=eEJJ9PkLI/5gySgt8aE9/IQxfSpQM4bYYF9coM0ns3pkSWNA8btU+7gBCZBr54l/FXiMqH 92S4jWMYYCDJ5wsaUMgrI8cucaqYkeemwWAraFkMmc1G0yQ1hqWKMvfDJj1RNZgWkIuyW7 PI9U18NdENswGwLkICHc1u/R1bbcTMY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-137-j5NcLO0XOpqxZd7AaWyadw-1; Wed, 27 Sep 2023 04:31:42 -0400 X-MC-Unique: j5NcLO0XOpqxZd7AaWyadw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3F5F08002B2; Wed, 27 Sep 2023 08:31:42 +0000 (UTC) Received: from p1.luc.cera.cz (unknown [10.45.225.119]) by smtp.corp.redhat.com (Postfix) with ESMTP id 817FD215670B; Wed, 27 Sep 2023 08:31:40 +0000 (UTC) From: Ivan Vecera <ivecera@redhat.com> To: netdev@vger.kernel.org Cc: poros@redhat.com, mschmidt@redhat.com, jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, davem@davemloft.net, kuba@kernel.org, edumazet@google.com, pabeni@redhat.com, intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org, przemyslaw.kitszel@intel.com Subject: [PATCH net-next v2 2/9] i40e: Move I40E_MASK macro to i40e_register.h Date: Wed, 27 Sep 2023 10:31:28 +0200 Message-ID: <20230927083135.3237206-3-ivecera@redhat.com> In-Reply-To: <20230927083135.3237206-1-ivecera@redhat.com> References: <20230927083135.3237206-1-ivecera@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 pete.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 27 Sep 2023 01:32:54 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778191682697971251 X-GMAIL-MSGID: 1778191682697971251 |
Series |
i40e: House-keeping and clean-up
|
|
Commit Message
Ivan Vecera
Sept. 27, 2023, 8:31 a.m. UTC
The macro is practically used only in i40e_register.h header file except
few I40E_MDIO_CLAUSE* macros that are defined in i40e_type.h
Move I40E_MASK macro to i40e_register.h header, I40E_MDIO_CLAUSE* macros
are refactored in subsequent patch.
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
---
drivers/net/ethernet/intel/i40e/i40e_register.h | 3 +++
drivers/net/ethernet/intel/i40e/i40e_type.h | 3 ---
2 files changed, 3 insertions(+), 3 deletions(-)
Comments
> -----Original Message----- > From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of Ivan Vecera > Sent: Wednesday, September 27, 2023 2:01 PM > To: netdev@vger.kernel.org > Cc: edumazet@google.com; intel-wired-lan@lists.osuosl.org; Brandeburg, Jesse <jesse.brandeburg@intel.com>; linux-kernel@vger.kernel.org; Nguyen, Anthony L <anthony.l.nguyen@intel.com>; Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>; kuba@kernel.org; pabeni@redhat.com; davem@davemloft.net > Subject: [Intel-wired-lan] [PATCH net-next v2 2/9] i40e: Move I40E_MASK macro to i40e_register.h > > The macro is practically used only in i40e_register.h header file except > few I40E_MDIO_CLAUSE* macros that are defined in i40e_type.h > Move I40E_MASK macro to i40e_register.h header, I40E_MDIO_CLAUSE* macros > are refactored in subsequent patch. > > Signed-off-by: Ivan Vecera <ivecera@redhat.com> > --- > drivers/net/ethernet/intel/i40e/i40e_register.h | 3 +++ > drivers/net/ethernet/intel/i40e/i40e_type.h | 3 --- > 2 files changed, 3 insertions(+), 3 deletions(-) > Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
diff --git a/drivers/net/ethernet/intel/i40e/i40e_register.h b/drivers/net/ethernet/intel/i40e/i40e_register.h index 7339003aa17c..eebb5735772b 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_register.h +++ b/drivers/net/ethernet/intel/i40e/i40e_register.h @@ -4,6 +4,9 @@ #ifndef _I40E_REGISTER_H_ #define _I40E_REGISTER_H_ +/* I40E_MASK is a macro used on 32 bit registers */ +#define I40E_MASK(mask, shift) ((u32)(mask) << (shift)) + #define I40E_GL_ATQLEN_ATQCRIT_SHIFT 30 #define I40E_GL_ATQLEN_ATQCRIT_MASK I40E_MASK(0x1, I40E_GL_ATQLEN_ATQCRIT_SHIFT) #define I40E_PF_ARQBAH 0x00080180 /* Reset: EMPR */ diff --git a/drivers/net/ethernet/intel/i40e/i40e_type.h b/drivers/net/ethernet/intel/i40e/i40e_type.h index 658bc8913278..60b55d66d648 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_type.h +++ b/drivers/net/ethernet/intel/i40e/i40e_type.h @@ -11,9 +11,6 @@ #include "i40e_lan_hmc.h" #include "i40e_devids.h" -/* I40E_MASK is a macro used on 32 bit registers */ -#define I40E_MASK(mask, shift) ((u32)(mask) << (shift)) - #define I40E_MAX_VSI_QP 16 #define I40E_MAX_VF_VSI 4 #define I40E_MAX_CHAINED_RX_BUFFERS 5