Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2735985rda; Wed, 25 Oct 2023 10:44:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXoDr9Iev8eB5bR+/1mC1GDMzAumAoPiPtTM9/uwr685m7HRTcgGOBCqBCLCrwErUiDq9f X-Received: by 2002:a25:4257:0:b0:d9b:d0b7:d2a0 with SMTP id p84-20020a254257000000b00d9bd0b7d2a0mr16312072yba.5.1698255893126; Wed, 25 Oct 2023 10:44:53 -0700 (PDT) Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id y201-20020a2532d2000000b00d9caf945694si10769479yby.375.2023.10.25.10.44.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 10:44:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SDngAYDl; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0B55D804C621; Wed, 25 Oct 2023 10:44:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229453AbjJYRoT (ORCPT + 99 others); Wed, 25 Oct 2023 13:44:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232808AbjJYRoQ (ORCPT ); Wed, 25 Oct 2023 13:44:16 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 518E0184; Wed, 25 Oct 2023 10:44:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698255854; x=1729791854; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=t16+fRWOJOxyNhsHaAp4Ts+gfVfPJchkKdMWSoRS+Rw=; b=SDngAYDl17fUMzJ7l+2WQboaj/bIeMMrKe6yGUQhD8eY/kl8EQjBx4PY 6ek9q29EzO0FYyZpA5PxD42IAMcE4AJnZHTQjvCqXq/sae/2yI8TiZWKX QpxZK3uezB34NVBh+MCZwetucjjEBxMjRk8Meh5j4+EPMHB2HjvppvZIC exioagF/ChN3To3ynTNLlkC02gzbkID7y9GqcYOHxvEqSAe71q+ohjGjm ZwQxIBOTh84YWAnDuF075PzVQq6JjNr1NNmo+7ugSeB4nIMvupcrm9h6z eOhqCY/v0pMIgyjNYrgeS4aChU1yuO7BA/352uEHRXET0Jc+VbooyIiQz Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="377730060" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="377730060" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 10:44:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="1090298175" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="1090298175" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga005.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 25 Oct 2023 10:44:13 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Wed, 25 Oct 2023 10:44:13 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Wed, 25 Oct 2023 10:44:12 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Wed, 25 Oct 2023 10:44:12 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.169) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Wed, 25 Oct 2023 10:44:11 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gKjRF5w7io/iS4pK4SIxy2Vf0GpvzyzlQWlBO4EOJYt1uKOqJtwEJEA1d5EIv5irdUYzSh7KlYG7xndWPjOF9Pn1UOCNRpSDB0UUqBUDCyYIxfoNQSauN89hOcYEkEs8X9Vk4S2+KIIU7Y/xdfwUCtoJdaTcp1s+YtnYdxmLBcTHf3D2rh1N2BvniIbHBba48MiIQ0lZzdu0CbSnIshvy2ZX1RkHYMyv0tsUM1lTANj5CN6fNCr57srrvrDv/YJBisu3bxAUEbuKPdlach8jorwTLrXT/SLKUDtTAzrkKIEfyetjdihCYDIM3PkDvx9UXzMvMmHgMeIsdmXZ3lG8jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ai8nHKyavG0P4dQYBRpKAkUjGblFrBV/rFJakgn/6+c=; b=VUFm4q1kgIqFbfasfO4bInku/U7dfHTl8Dhilr+mxG60VtJODJhjl/LZDdpHk++9fXnB434ccSLnMGGVtgA0HUnmcApHTkOUl9Yi74ZEj2OHid+QJrZBHGlBvhmX81PihYtovBhQVfRW5o6k1unUeTs33bb6FlK2WXXOTWGGR+5yL27fkF+C6NVsOatBlkftKcb5bfJAp2LX9SIbfFpqQ4sL3WvK3XJMv+D1ETYa5UIaHaxKn27LDESV8gxEv7L3lwNRJPZNktfzs33ULsiO4Ejgs/IYHKBmDM2l+Rl1761dcLuahPse0v+HXDPajeIrKugZfzEbOGlxRHcLrddd/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) by DS7PR11MB6038.namprd11.prod.outlook.com (2603:10b6:8:75::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33; Wed, 25 Oct 2023 17:44:08 +0000 Received: from CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::f216:6b2b:3af0:35c1]) by CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::f216:6b2b:3af0:35c1%4]) with mapi id 15.20.6907.032; Wed, 25 Oct 2023 17:44:08 +0000 Message-ID: <022960b9-dfd1-4ed8-9b46-9cc11ba060e2@intel.com> Date: Wed, 25 Oct 2023 10:44:07 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH iwl-next 1/2] i40e: Remove VF MAC types Content-Language: en-US To: Ivan Vecera , Wojciech Drewek , CC: Jesse Brandeburg , Tony Nguyen , "David S. Miller" , "Eric Dumazet" , Jakub Kicinski , Paolo Abeni , , References: <20231025103315.1149589-1-ivecera@redhat.com> <20231025103315.1149589-2-ivecera@redhat.com> <8a8f54a8-1a18-4797-a592-b57bc6fc45c1@intel.com> From: Jacob Keller In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4PR03CA0079.namprd03.prod.outlook.com (2603:10b6:303:b6::24) To CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB5089:EE_|DS7PR11MB6038:EE_ X-MS-Office365-Filtering-Correlation-Id: 0ca96753-b06b-47e7-39e4-08dbd581fd70 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fv1lqqqQpGY93qS8AXotloe+U2dBk1DXMvzjf6an6OtuH87a6e5B7BKAfmv1DNTImntyDcwBgnfEYVhUGJFq/Lmxuihi5w2/qQTGpyQT/e56QTX4smKjuk63CCGBZRqMTUGfky0uecVbovbkZHJWwLo2LN06yynQgBqLDYhtApTgwI3j7v/kPBcYGdVjNtYhhouQsKBLxiTrP1orRa5kOXnZAgqEyKWdzuj1ChRhiZnnX/bWanHFat3VnUz8Dl3jRGxLcD2RQ72AtwCSgZtJUQOsqhLClWiq1P395AwgQG9WfLtO6HQI2067/ifmnJLs+bsPXfU4/MbWnuPG+rrwObbf3PlaesbIzZf5QVb+FVi9EaG2DEVEWrBlWj6XduQUdvq1QITJ2GYYPeRLxfKClpcdSH7buGLfxxy8ufm8Amm1ckSO9AuYKQs63kEGnK8+2sOoXp/OTo3pRMAP5R66FN6vzTxprz0DIXOJPzNM5gBLoDHxgDkQBnSO68BH3kQmmiOzCgGZxIKPgMeXzwxBrErSq8T99JvQzmFpdmxEIE7/wu+xoOeZBpblqPO/H/2Og+Z95VHKAwrkT90Vj8hlS/aFb8eGvFrszfVDTXOWzM7wlg7lpM/z/uA+uXAb81tPmqjJPfePLhMT3RN7dMMFkw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB5089.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(346002)(136003)(396003)(366004)(39860400002)(230922051799003)(64100799003)(451199024)(186009)(1800799009)(6486002)(6512007)(6506007)(53546011)(478600001)(8676002)(4326008)(8936002)(41300700001)(82960400001)(31696002)(86362001)(31686004)(36756003)(2616005)(26005)(38100700002)(83380400001)(54906003)(66946007)(66556008)(66476007)(316002)(5660300002)(110136005)(2906002)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NnMyL1NDTnAwTG1UUnFITE1SSHg0YzZTKzUzVzVDSHgzazFHVjlwd05JQmNj?= =?utf-8?B?djFGSVltQWtCZG1NTlNIdVdPbGxpRFMvYzJxaUgzUUxJVmc5MXZLOWdzVkVI?= =?utf-8?B?ajg2aWxvenV6dk1VZXNybi9BSGh0ZUVRclpzWmk0UzhFTG1zMmFiUXM3OTNV?= =?utf-8?B?M2svYjNWQ1FkZ0ZYM0VkLzBuWVNaWkVUY3plSjFmQzdLTHBGdW1zMmk0T3JU?= =?utf-8?B?ZWdWaXkvTFlZUmpGQ09NRzVsRWxLMGx0TmpjcGdwUkZPM2pQNVAvT3YxUGI4?= =?utf-8?B?NGJxcDQ0WDBSWW9PR0lEdlkxOEMybzNKS2dwU1Z2VVA0MHBsNi90VEIrVklT?= =?utf-8?B?dUVwSUc0eFVQTnBkZWZDUkZnYzZ1bHpFdmh2dVlmdWo2OFJoU0xJS1huaG1y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MS-Exchange-CrossTenant-Network-Message-Id: 0ca96753-b06b-47e7-39e4-08dbd581fd70 X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5089.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2023 17:44:08.3665 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +3qxKq9e0wSevBC+k/kD6Mya/3WA2Z0uuIJHNxT88ZYJtgu+QhMGzG+Hw/IyfqXeufbgbKCc4GoSg+cVeQqhs8JAfJWkg1OHAhNV5d0B5QA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB6038 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Wed, 25 Oct 2023 10:44:22 -0700 (PDT) On 10/25/2023 7:39 AM, Ivan Vecera wrote: > > > On 25. 10. 23 12:48, Wojciech Drewek wrote: >> >> On 25.10.2023 12:33, Ivan Vecera wrote: >>> The i40e_hw.mac.type cannot to be equal to I40E_MAC_VF or >>> I40E_MAC_X722_VF so remove helper i40e_is_vf(), simplify >>> i40e_adminq_init_regs() and remove enums for these VF MAC types. >>> >>> Signed-off-by: Ivan Vecera >>> --- >>> drivers/net/ethernet/intel/i40e/i40e_adminq.c | 33 ++++++------------- >>> drivers/net/ethernet/intel/i40e/i40e_type.h | 8 ----- >>> 2 files changed, 10 insertions(+), 31 deletions(-) >>> >>> diff --git a/drivers/net/ethernet/intel/i40e/i40e_adminq.c b/drivers/net/ethernet/intel/i40e/i40e_adminq.c >>> index 29fc46abf690..896c43905309 100644 >>> --- a/drivers/net/ethernet/intel/i40e/i40e_adminq.c >>> +++ b/drivers/net/ethernet/intel/i40e/i40e_adminq.c >>> @@ -17,29 +17,16 @@ static void i40e_resume_aq(struct i40e_hw *hw); >>> static void i40e_adminq_init_regs(struct i40e_hw *hw) >>> { >>> /* set head and tail registers in our local struct */ >>> - if (i40e_is_vf(hw)) { >>> - hw->aq.asq.tail = I40E_VF_ATQT1; >>> - hw->aq.asq.head = I40E_VF_ATQH1; >>> - hw->aq.asq.len = I40E_VF_ATQLEN1; >>> - hw->aq.asq.bal = I40E_VF_ATQBAL1; >>> - hw->aq.asq.bah = I40E_VF_ATQBAH1; >>> - hw->aq.arq.tail = I40E_VF_ARQT1; >>> - hw->aq.arq.head = I40E_VF_ARQH1; >>> - hw->aq.arq.len = I40E_VF_ARQLEN1; >>> - hw->aq.arq.bal = I40E_VF_ARQBAL1; >>> - hw->aq.arq.bah = I40E_VF_ARQBAH1; >> What about removing those I40E_VF_* defines? >> This is their only usage here, right? > > Yes, do you want to remove them in this patch? Or follow-up is sufficient? > > Ivan > > I'm fine with a follow up. Thanks, Jake