From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6115742FC4; Thu, 3 Aug 2023 11:50:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E613D4282D; Thu, 3 Aug 2023 11:50:07 +0200 (CEST) Received: from mgamail.intel.com (unknown [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 174CB4161A for ; Thu, 3 Aug 2023 11:50:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691056206; x=1722592206; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=HmgBmnPyyaHyuTV6KEWaDBgHXcEuBixu9BNsqJah7K4=; b=j0piVpFOIUDIhgCyLFBkj+8W2YJiFtSEStwAcdDmw5XTEjFbsT2VFo64 47sfFYl3/kwYrWMNLSdgROGScIoEpxci8SEO5Hhxv0kqjSG0Hsf4n6+N3 ki4kuiId1jpfqchJt+dC0FO3aeoeYtfYAOVIqOy5xzLxNRAfIS4OGs89w Zab7pzaVfD1uXncS1AXjCVR69gw4HO0GkNvEmoLc6GHNO92UFLK98UJVK ITQHPwf4pM6appG2+XMv4NS6b/pFWacLT1TbKnfcQbAKr22jgYvIqWFpN UWzmm9KQmZpP9gsUxD7nq+JuMsm/oQS1EFkR4RgIF49TNU4io0XGmcCTa w==; X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="368728928" X-IronPort-AV: E=Sophos;i="6.01,251,1684825200"; d="scan'208";a="368728928" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2023 02:50:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.01,202,1684825200"; d="scan'208";a="872871293" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga001.fm.intel.com with ESMTP; 03 Aug 2023 02:50:07 -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.27; Thu, 3 Aug 2023 02:50:04 -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.27; Thu, 3 Aug 2023 02:50:04 -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.27 via Frontend Transport; Thu, 3 Aug 2023 02:50:03 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.44) 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.27; Thu, 3 Aug 2023 02:50:03 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OpjOqVhHpZ1sf3B8XHZR95pf7TrqHJG22rvVw8qMxSCDZerf0IgL/0p5ROFY9LlpVdYbcpXs9a/ONwFS/lKjatb+HEZTaSBgfgDQq8B1ImJyiA+bgaSj0HONwO0AwOSPRce+/YlX+hpr8HCtCDRPXFaHnq+LWZZUSBpPAjBW28+jPlv12FVUwQqvbAayIkB/W68SBLL8K6ZXOW/rXLS3nIZQQL2BDpU87eSsUjvYlCONMPRY2gQG+vlc+n/M3HP/8UDbc/tJkKqE5dPMTIVqzKjgBcsIPepk9B/MD2TRMDmI+kLqvI3jDBz6T6wPAnVeVu/Tf+C6/EbpPZrpF9uf+w== 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=EC6s9Hz5sVhXLaTEj8DeaMNCZHIm1LGYAC7dAGnXRvA=; b=BUr8rJz3o4eyCzK0f1FyBk2EwBLYCQYqOYhZ+3d9746reeaMFVm32xt6PGkiu7+XQizxvdRi9ujv6BQuaXzrrAR/PT0mQfMYP5PXZHJGr1TB3yNXR8Ai+hcE++u4UK/izEKqGkdHkjHjNZRSZuVjHm5RJjVZ4j/f/V821Q2ZblWAmxpfi7mbfzSG9PzrZZf4L5fmlUNi6CT/0uPHlZpR8/JtoMZGMxt3pFsodQ8c+ZkjjjJI+/M3F2IxElih/Gm2aXDm7OE7FR8zVOI4V0P43TrR3GnV3ZwH7v4haB03ENQO58jNu6TAogy3rNZj6hlaD15swUwDD4vhhsFE/JExCA== 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 DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by CH3PR11MB8314.namprd11.prod.outlook.com (2603:10b6:610:170::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.47; Thu, 3 Aug 2023 09:50:02 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::9802:65f0:c441:780f]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::9802:65f0:c441:780f%7]) with mapi id 15.20.6631.046; Thu, 3 Aug 2023 09:50:02 +0000 Date: Thu, 3 Aug 2023 10:49:54 +0100 From: Bruce Richardson To: David Marchand CC: , , , , , Anatoly Burakov , Jay Zhou , "Timothy McDaniel" , Julien Aube , Rahul Lakkireddy , Junfeng Guo , Jeroen de Borst , Rushil Gupta , Joshua Washington , Dongdong Liu , Yisen Zhuang , "Maxime Coquelin" , Gaetan Rivet Subject: Re: [PATCH 03/14] bus/pci: find PCI capability Message-ID: References: <20230803075038.307012-1-david.marchand@redhat.com> <20230803075038.307012-4-david.marchand@redhat.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230803075038.307012-4-david.marchand@redhat.com> X-ClientProxiedBy: DUZPR01CA0115.eurprd01.prod.exchangelabs.com (2603:10a6:10:4bc::27) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|CH3PR11MB8314:EE_ X-MS-Office365-Filtering-Correlation-Id: b09d966e-e71d-4a39-ccbf-08db940701fe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VQhA0/seBJ2VWx5cHCUY+Wabo+4sMi8uPsUGlj7OxHEfbp0sIaxEHTPlCGDCao4wcDKJS47bZZ7mVw4CE76QAq1B2NAJrS9NQJPqTLyX2bba51xB3gWbukR6/KLKGKPYZwKFN7T42KIhlHii8faMQ5KKDvtCSAzi25ZiPBRtELKdXDBtT54AKDAx5NLCKq13erwfZopL8WWYbetWbVz29+sobsmUf62yiEA9ek7zumfEF6YA8lgXaNNrt8o1amM95b1GEUzJEJffRo12Km3HJ75Uw4IacCJGuvJ/RTuZdRdhaJCSA3XvA2tIiKQOaLX9Um/0PVhZ5BcUTFuwamdGje8FeM10D8dqbtKFkq0mbiopbqxYDseYVna2qqMPRbZcUI4wKcrQ/qZKUWx2FRbJoUrc9JdJgQFgGQu8iN2AKEEo0PyV9kfmMoVC3Z/EycP1xIhveYUwQhXGNvBZB7eq/WpdvoJlyHB5x5r+guwDnyEhDZHK3kzYNutTF8N5GLFB6p15j+BuFPofF03U+eStMLW5hI5Zvy212rT13Xo+lyogUjOEZbewUKTXUezUCqlt X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(376002)(396003)(366004)(136003)(39860400002)(346002)(451199021)(6506007)(26005)(186003)(41300700001)(4744005)(2906002)(66946007)(4326008)(66476007)(66556008)(5660300002)(6916009)(316002)(44832011)(7416002)(8676002)(8936002)(6666004)(6486002)(6512007)(478600001)(54906003)(38100700002)(82960400001)(86362001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?HlvlQNMrTFPWixEX36Ie8O0CqbdTwg5Pb1dzSSjjzhf19yFnLNgK89CPKo+a?= =?us-ascii?Q?5SPmom7kA1ahdSEf/gYp3jqp7jZyY7XtVu6CYjKvg3F19i9nqxAsELgeGylW?= =?us-ascii?Q?9be6xwxMRAqAnmoD2/9qwuG58KueM/rFTtB8o0Lv4pahQx1QaeArjjFsVVZR?= =?us-ascii?Q?8ApMCE8jdzW+oFUo03rqk1PgLqTihLfhxLgVJ6aGJasRrmZuKr2bsQBdvy0M?= =?us-ascii?Q?XdeWgyWjpLH9XYkRgYbamjotb0EXoBJQ7eIX+Id3kgYtVlG+dmIkI6bScMyE?= =?us-ascii?Q?bb1emhxmAdTQLkl6Q+3wW8w+CaIjSZR8H/Ti8Wg7dQov8zoeHXx9JMNQwiO+?= =?us-ascii?Q?TpEFYUUzZ4soDKaVifcwkCqPR5RNyb5QAT+jxHnU8gnzD9okqivTwtIBEtXV?= =?us-ascii?Q?6VL8FmvNePuQHkmMoql5qCZo504McDrNCC3m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=?us-ascii?Q?MXUOUCHbi/utOVM7xrXfE+fqmFGxyCU25ikmL4evZuyAXUi1P+uTz0ZYEQfC?= =?us-ascii?Q?G935uKoMetrY4QT9yzD78k/gBdbMhR2eWbGZliJ+0TxsBtHpq416JWqZsRi4?= =?us-ascii?Q?eaOxOo3RBO6AGhDJRsdeXFNXid+k94rPoaHDb2aR8FBkEEqJh6nomj1WHdll?= =?us-ascii?Q?kxs7XGyla9tSYQBMw6gldfsEz4i4cP1j97xNKbK3SSaMZSZkn+kSWbHHzoB5?= =?us-ascii?Q?iHMEyMMRMUoiuH9vyyzJGmFo/lic7GRvg+ropJOuJOhm2jCheYYawx6DytNB?= =?us-ascii?Q?cg=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: b09d966e-e71d-4a39-ccbf-08db940701fe X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2023 09:50:02.4059 (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: aGCRKVJOHGb8VwHLVr5vWUxpO1ztj+YXW+bx9GtMI/PmketfAstwGIc6KfkocqDU7OKcy5l2AgvGd0/OkMNmug0yg7jY9UJhq6dZrKN1hvM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB8314 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Thu, Aug 03, 2023 at 09:50:26AM +0200, David Marchand wrote: > Introduce two helpers so that drivers stop reinventing the wheel. > Use it in existing drivers. > Can you give a little more context on the new helpers and the changes in the patch? A lot of the changes are not that self-explanatory. Thanks, /Bruce