Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1295902rdb; Fri, 20 Oct 2023 14:30:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGqNdP402/JZy8tMJl3ckyGnGCB4exuQ8pVXXL7Fgl4auIemrGX9nVWRkS9WPOv4s9T0bQ4 X-Received: by 2002:a17:902:f543:b0:1ca:77e9:3863 with SMTP id h3-20020a170902f54300b001ca77e93863mr3784031plf.31.1697837409848; Fri, 20 Oct 2023 14:30:09 -0700 (PDT) Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b11-20020a170902ed0b00b001c370dc4445si2534775pld.210.2023.10.20.14.29.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 14:30:09 -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=aXrLRFe4; 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 D34DF8311BC2; Fri, 20 Oct 2023 14:29:55 -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 S233052AbjJTV3x (ORCPT + 99 others); Fri, 20 Oct 2023 17:29:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232112AbjJTV3w (ORCPT ); Fri, 20 Oct 2023 17:29:52 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25592D75; Fri, 20 Oct 2023 14:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697837387; x=1729373387; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=gRlWsjye81G4mh6QKNqEfATGpGDG1Rr3ZsP+aZPHnkY=; b=aXrLRFe4UcMzMorGCPyIPovYhHX7odMeoapKtcoUK55xl3c8KGl9LI9W aTyk2OvMakXVw8HjohIX+v3wO3O01jj0e8TGPntqJ7oaemuCK8Z1wsS4d SfYD2mfiJm6EFVdRLIcjfN5qTnhbatiCLtKOHYPqtT8I21eT4wv1yisdk 8QWGl1R1wf0OSsACrwOuihhUWOVw4sstheB4eEK7VeuHK52wJS8DU2iLN B22olVL1+/bHU7EiLZBjNBbsnieNweJyRrPgwqCYByViK5Z2h9+uSLReE 9PnRIJZzdEpioEdac12OUFXiuIWcyeBzKzDi4DakPc8yWez00RgetgzoD A==; X-IronPort-AV: E=McAfee;i="6600,9927,10869"; a="366806876" X-IronPort-AV: E=Sophos;i="6.03,239,1694761200"; d="scan'208";a="366806876" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2023 14:29:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10869"; a="874044516" X-IronPort-AV: E=Sophos;i="6.03,239,1694761200"; d="scan'208";a="874044516" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga002.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 20 Oct 2023 14:29:35 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Fri, 20 Oct 2023 14:29:34 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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; Fri, 20 Oct 2023 14:29:34 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Fri, 20 Oct 2023 14:29:34 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Fri, 20 Oct 2023 14:29:34 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EzPAtkClyUV+v2D6RELRpPNyrHk+faaszCxnDhqaRvayCYfk//WdXY/ZKdeKjSzJy8lQ+aehflalFWXAgGTOXYbjVJsB2HZlswvhHOGmhSLz/GyebqhvqThKT5BaYXbulwuVvFS8MSRo+OHV/0JKrZ4KEGUwPZNUSUkht5T9M3EdEd2jd971NMd/Q/mk17ll4hcpd7mAW/5VX2ijsqCyzN8slNmMTQSGt3DuiAH2kET9eGTT8roEEjY+fxlbISpD7OuwQmma6OUMJlcuSKcFvtIp2bcvPev1u5q1ZHOZ+IVZx0BvVmZoxSWtA+EYSazz0WpY/Vh/m8coe7Vk+u9krw== 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=SzCzxkBG5zP1lr+FY7IZlThsYaxHTw4g618oq5b09/o=; b=cJVddG/7b7L1GM6CwR+yR0T0fc9zLyl3O8oKkEogJ74H3de2e7Js4vRHTuT1wl3GxES+V7drAMNlSuI4alxg6+XPaMtXh71UFjbmNEEek6jOLu1qMqyo2GvE+yVAu0J8D0KxdBlVT9hZiDm+eHCgbhiuUTvqoZuLC+7P9ifa+LIwLL0mNdvD7wCjZfMKGsDgDI2bpsyK9khkW95wdZ6PIsGh5zidg2RKry+9owGCEF4jxJ6oKe0me6LR24hukU4KG+o/cV2Bl2y+S+tFyrGiDY7ss0e6HU3WJrA5xNvEObnLibC0kbH8qdHgRUOY23wAd6GB3KdZoUhBdwOv+G+SgA== 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 MN6PR11MB8194.namprd11.prod.outlook.com (2603:10b6:208:477::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.26; Fri, 20 Oct 2023 21:29:30 +0000 Received: from CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::34a7:52c3:3b8b:75f4]) by CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::34a7:52c3:3b8b:75f4%4]) with mapi id 15.20.6907.025; Fri, 20 Oct 2023 21:29:30 +0000 Message-ID: <4e78e68f-139c-4a30-ae7b-60eadab9f13c@intel.com> Date: Fri, 20 Oct 2023 14:29:29 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH iwl-next 4/6] i40e: Use DECLARE_BITMAP for flags field in i40e_hw Content-Language: en-US To: Ivan Vecera , CC: , , , "Jesse Brandeburg" , Tony Nguyen , "David S. Miller" , "Eric Dumazet" , Jakub Kicinski , Paolo Abeni , "moderated list:INTEL ETHERNET DRIVERS" , open list References: <20231020193746.2274379-1-ivecera@redhat.com> <20231020193746.2274379-4-ivecera@redhat.com> From: Jacob Keller In-Reply-To: <20231020193746.2274379-4-ivecera@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4PR04CA0364.namprd04.prod.outlook.com (2603:10b6:303:81::9) To CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB5089:EE_|MN6PR11MB8194:EE_ X-MS-Office365-Filtering-Correlation-Id: 851c1257-4d4f-4bb7-7787-08dbd1b3a506 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: z5+DIYAobKJwneqylMiH/9xRqqeHE3rfuaBlnSXviizQWWTkwv055ZsB+eLlrnrDHHCIsDAWIzNwqgeDjg3+0Ut187C8xsv2LTW7ydFGVxXrpRxjWmuKkk2DsNcinYfa30ioUdBpnJKLN0jjQimxLXC8XgXKRJnRZEp86tcALrDH6hI/QPx4IA9/Jo/jLOROh/yOEpC7OGE7JHo6mMTqm3+5msW4SE86bOySOh2MKJOrj5oY8mgalEw4Hmc4aqtCuVEcgL97Tpyc6vr9bO2Yl4T54s2GFL3tYQrnKggFjMu6gWLknkQw/Gr0vC57/T032IWhOlRjm7Nejzi6bUQt0Lm6lhw8wb7gqE+Q53r6fDw6rqq4EwSYB8QGSzhON4uxkoWFT8y6b/oawsDcmsS/x83L8PrV7R9kyCx1NwSDmfspJPX6Qr+LjIB8J0CBEcCdjt212HKvZEum05QABZbL7sHkhBACwrMIG6Ygpu86Vc4r+ViISZEIuCasJ9VXbC/D85QZ9ocX+9JIqUYBSRE06DjPXOKgs9BvcOTV0brfmapBp7bta2NCdh/hcfr1yIVcaxxLaOfhI+Kvj0TKSzrWu9zChsD+GygYXAc8HIT4eHhS1QKEi0HZ99/r6e1/4FO+UzFlJmfZXMynjoCsa4pJAg== 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)(396003)(136003)(346002)(39860400002)(376002)(366004)(230922051799003)(1800799009)(451199024)(186009)(64100799003)(31686004)(66946007)(54906003)(66556008)(316002)(66476007)(83380400001)(26005)(2616005)(53546011)(6512007)(6506007)(478600001)(8676002)(4326008)(8936002)(36756003)(38100700002)(5660300002)(82960400001)(7416002)(31696002)(41300700001)(86362001)(2906002)(4744005)(6486002)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dUlPM1R1QzFDVm8zaldMS0FmSDB2LzZ4eUd1KzRDaXcvcm9MZXh6MzdibzBv?= =?utf-8?B?TU9qUWdFNTc0NEdsaVlCUzF5RDk5S0RoUENRV2ZLbVRxREpVYnZDbmhlVXhk?= =?utf-8?B?STlNRldFd3ovS0lUeXQ4Rk9MeEppajI1TnhScWVmNGVCbWRBTXd3Q1ZnS3VX?= =?utf-8?B?Qk9uY0d2R2dZTGxweERVcHZ6ajk3dGZGYk5weTAyM3dTVG1mS2lFRVluMWNh?= =?utf-8?B?TFhJV0c3cGxlZXY4WmZnbmFjOUxVWVdnL3RBTHMxY3JMYVlWdUt4QWdWZTNM?= =?utf-8?B?Z2pOOXpNT1h0STl2SlVQek9WWENHc1RaU1MwT3hlZUgzK1dTa1JBUVNwUTly?= =?utf-8?B?SUZ1UCtaVDFnSUUvRjlRdlVyRTI5Ykp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ZDFJ?= =?utf-8?B?Nmc9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 851c1257-4d4f-4bb7-7787-08dbd1b3a506 X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5089.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2023 21:29:30.2151 (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: x7BucpHNFrDKzPpjFYVXfwUlPnbX/OTIkUZZLWJoFxp6Zo0dCCwfdXh1aJtmWkj8fZBoW0Oy6+JMzbnAhMHXFOyGEsBTEwMYmPbE7ZCUyxw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN6PR11MB8194 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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]); Fri, 20 Oct 2023 14:29:56 -0700 (PDT) On 10/20/2023 12:37 PM, Ivan Vecera wrote: > Convert flags field in i40e_hw from u64 to bitmap and its usage > to use bit access functions and rename the field to 'caps' as > this field describes capabilities that are set once on init and > read many times later. > > Changes: > - Convert "hw_ptr->flags & FLAG" to "test_bit(FLAG, ...)" > - Convert "hw_ptr->flags |= FLAG" to "set_bit(FLAG, ...)" > - Convert "hw_ptr->flags &= ~FLAG" to "clear_bit(FLAG, ...)" > - Rename i40e_hw.flags to i40e_hw.caps > - Rename i40e_set_hw_flags() to i40e_set_hw_caps() > - Adjust caps names so they are prefixed by I40E_HW_CAP_ and existing > _CAPABLE suffixes are stripped > > Signed-off-by: Ivan Vecera Reviewed-by: Jacob Keller