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 2CBB1A00C5; Thu, 28 Jul 2022 18:33:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2199142BCD; Thu, 28 Jul 2022 18:33:53 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id D5EA942BCA for ; Thu, 28 Jul 2022 18:33:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659026031; x=1690562031; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=3WLq+dfEuIcwaJ5YfmuD2p7DOC/wd2MdnefJS9dVNcE=; b=N7GRd1ZSXgyDUnu89Lk51enM/yMP3E6zOlKdyiPFG0qvNYCpRFa7qyMP uj+HOr1zCxBQNXLDzuT5OAyXPkx7F1V8MINxaIAerfyjZlgVRO3wRK0sn mmcftTKMeDcT4ESc4gpKeLjm+afSa/d3SpMw1mrqnz/F4SAFq0b+gq7fZ +yps6vACTDIW6qzRZa/Pi0JWQ7CMnViCTCNWPhQpgI8PiGAJSHSku8Hqq Lx0N3mzAeNkxthd24IxsQlxt3SQ/GQJIPKzRmzS8hT5ExBdlJavFpE15l rh+eJF93Kp2ldmlJuD7Dm9e6tdq4k6LkI+QMFjnJfofGee01GTQndFMIt w==; X-IronPort-AV: E=McAfee;i="6400,9594,10422"; a="314350938" X-IronPort-AV: E=Sophos;i="5.93,198,1654585200"; d="scan'208";a="314350938" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2022 09:33:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,198,1654585200"; d="scan'208";a="604641503" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga007.fm.intel.com with ESMTP; 28 Jul 2022 09:33:50 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Thu, 28 Jul 2022 09:33:49 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28 via Frontend Transport; Thu, 28 Jul 2022 09:33:49 -0700 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.42) 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.2375.28; Thu, 28 Jul 2022 09:33:48 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JwyOiatcARVuOY/An/D1PFS/FM68BIWHU6SDENOnP4SULrhiFqntJaxH0ExC47pfyEBa6TROSTsRDZOi30c1bcVWYxG8Fy9sEl+kzIBpntamKpd1cjfOjORTZ36gEZdWq3oh5IC/VCobm1v86XmCAEaM9LNyUSBRzcY1bkRnKBo+9Nl36Kn+/YizHDQ5zUZoSfhuIUD4UFTRj7SgTQNcluL1rokqcFpbrEuOSRyJH7PlNnoQal/sfDAxGXbB860c6HO5CKF3V5BtcwLb72E2YIv5jvsjWHy7jsnThdkLgHWCAyWWyoUtGeFPPFrMgqxwtTB5EjS/bEk00kPVTn7Z9Q== 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=6ACX1HoAZae0AlkNzGYclpvnBGAoAkmMv1MXrgS/hPM=; b=G5r9QpYlXMqBjEcNsylcdviOsmJ2ZDHL7BNohhSg17Ct7b/yJzqOBf7AjgZ9B7a0nezn2vdJGe0PWSSvy09Hfe0J+DI4cyggRgc0kLxoC094jjR7X5Cfrmfsf+uNMAH5TY7AJCYirGkjcRCOANRB4UCF0wa+0TEFkjWTkydyyVk37DqWzjeuKZB9eUF86pKgEaEXca9DETNRzPALyYdaqyvy3IYw0WbGlSTU86j07nDFwMDDwmkhGM6r8rn+R2CJF8wxHJ0EXKoYaSL21k5VDHVJa/I4PQ30stzzjNkJ28F5kGNTCsDRlyCzjqBWkbm6NDpbgoyH/RUp4DtFR/8a6g== 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 MWHPR11MB1629.namprd11.prod.outlook.com (2603:10b6:301:d::21) by PH0PR11MB4949.namprd11.prod.outlook.com (2603:10b6:510:31::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5482.6; Thu, 28 Jul 2022 16:33:47 +0000 Received: from MWHPR11MB1629.namprd11.prod.outlook.com ([fe80::8e4:e1e9:a851:4b0d]) by MWHPR11MB1629.namprd11.prod.outlook.com ([fe80::8e4:e1e9:a851:4b0d%5]) with mapi id 15.20.5458.024; Thu, 28 Jul 2022 16:33:47 +0000 Date: Thu, 28 Jul 2022 17:33:41 +0100 From: Bruce Richardson To: David Marchand CC: , Aman Singh , Yuying Zhang Subject: Re: [RFC v3 07/26] dev: hide debug messages in device iterator Message-ID: References: <20220628144643.1213026-1-david.marchand@redhat.com> <20220728152640.547725-1-david.marchand@redhat.com> <20220728152640.547725-8-david.marchand@redhat.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220728152640.547725-8-david.marchand@redhat.com> X-ClientProxiedBy: LO6P123CA0054.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:310::11) To MWHPR11MB1629.namprd11.prod.outlook.com (2603:10b6:301:d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2a1e578d-0526-49f1-00a8-08da70b6f1ff X-MS-TrafficTypeDiagnostic: PH0PR11MB4949:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /Y/6+yU6CmXAORw0jVBuhSyjE0R6Z1jxcKdcogz2/MN3mi5vM9jiLkl7SCz8h1WdD4PkehnnTq/pIF/YuULsVsNYZ9Tz9FSzk8ElbKK5uTlnA3BQL4gfpeMj/PaSdAx1rKuBNsNX3ULlAA3cX0M7m6Y5TDzeeu85lcsj3ufFgSK3ewmXPrJxkq4Fy0opwKqu6txEt8UJKe7quCpGPgOo7iMsjq4Aq778yRyJ0TUdOr31aE5b31mpr4OYAEOottTV/LC8ZJyLp+TEjxT83a4IOxwmfwhxTioG/+HEHP0rcU1oGQVCgpl0CMuW3xxxL4JP5YmGO/o4dk5oqI1xOJwAA2j8hK9TAcXb2Aw11gBSyVNlfX6cyTE6LoNDd6Hwjg5bX5FaonfnmvwaBEca55Ufe4Vh4ovtR+0Mld3w2UPCzjEJOM/KSi6Ap5Or15wHnA9l1Q3oFMC48TCN7wiCVDXBHu0vmqWMIkb2fjukBmNteuo0zLZdK5/5ollA/qG25DJOqo2mWABuKGjiyqyDRvbsA275Fg5YQDO+azR9URpJ71Z0TPySleM3RXjLMmKsPR1GE8gxJftDBMSmG4uyPQyMNN4AxS77lzLILcAbkMYmmnKUL3emK6H/Q4ibBYlvgnrkq43NbD7XorsZ+3f4hO7Y9S04VvLDZn12olrF6fVMY72TGb0JtOMv/H49Q73cQn/QuCPFW8cm4NvuRV0EZ0qHKZ40LuFxBq9B9ZgMy15zmzuLMZiTLqElSLQUl/0svKDb X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB1629.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(39860400002)(396003)(376002)(366004)(346002)(136003)(316002)(54906003)(6916009)(6512007)(6666004)(478600001)(41300700001)(4326008)(6486002)(26005)(66556008)(4744005)(86362001)(66946007)(8676002)(66476007)(6506007)(8936002)(107886003)(5660300002)(15650500001)(2906002)(83380400001)(44832011)(38100700002)(82960400001)(186003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?p+0BKcgjeUtjYew5r3FPk0s5OuImEqEtNdOR3UeP6ApuzVRBm4Fj5VU6snV6?= =?us-ascii?Q?OOqoFaj4dkALZkrgVpJQj/uhphJChjfVQdLRQg0KPutYfXq9wTTWtiohCWYR?= =?us-ascii?Q?kuxyx6G3nWaRqjlXYxx9PWh1qK/uCsPSRVbnv70yWrAWe4QIB0akoMUpWomN?= =?us-ascii?Q?lUJZ7yEVrMoJFMuTkHKhJvvXqA0/AWs1z40GbuAJzghSe4dhC0fqxQ7dkINQ?= =?us-ascii?Q?ZPU0m/mMljEGg3wjUi4ZQ4I/Fm9sOhRYaMo+WEh+ALz82T8tkqlqy5l+chCR?= =?us-ascii?Q?M3+J8pEpXjaTtlmPdFMTzqiGZPki5Z8Rly6aWk6w0ejwK3Q95FarxjOaUOBg?= =?us-ascii?Q?CS0rC81oMsgovgbvRnre3TWsKVcxuUAoD01Smyz2M9VdljTZR6wtmg0iB6ZW?= =?us-ascii?Q?z5IS1wkP+YrIIXfdobuTPLP8h/mbiW4dVOph7MMUwvsz42GdTwg0sEra1onS?= =?us-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q9OwZlyxBjL5YQqSOezpOWjEMSwxgXO0+?= =?us-ascii?Q?DvYBn9DfL2HQZTM/K3JYG6uXT7uiiRVjMxkrktvGZYHxZVcUtTRWXJGt2LQo?= =?us-ascii?Q?cp/bCstpHDRPCtiJ+zkXvifPAj84K0u0vgRuKNGD8/YvDpdjICJox7y4ko7s?= =?us-ascii?Q?ltacIUwKLnFgDiPbJqnDoqdWx2kB4A4Zf+n0tySeC3uKAQtj+Mhk50jnWznJ?= =?us-ascii?Q?Q97IfpBMXaJSV4dl94drWVBuWxn98UFjuxwZ5j0MltHQiM+8B67HYI1qDPcf?= =?us-ascii?Q?TQ=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 2a1e578d-0526-49f1-00a8-08da70b6f1ff X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1629.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2022 16:33:47.3819 (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: 4Pk7o/yVVrDj0531zygXGU9zgIp8834rXROd+4GilxG372bELMD3MRLrU9BsXlbFvMqH2lFnWrNakd5W2JOQ9bk/dAJYeQbt3wNvLEFDScE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4949 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, Jul 28, 2022 at 05:26:21PM +0200, David Marchand wrote: > For any bus that does not support device iteration, rte_dev_iterator_init > both returned an error code and logged an error message. > An application (like testpmd) that only wants to list devices, would have > no choice but to inspect a bus object to avoid spewing error logs. > > Make those log messages debug level, and remove the check in testpmd. > > Signed-off-by: David Marchand > --- Acked-by: Bruce Richardson