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 F4191A0564; Thu, 11 Mar 2021 21:04:20 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DA920160807; Thu, 11 Mar 2021 21:04:20 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2061.outbound.protection.outlook.com [40.107.94.61]) by mails.dpdk.org (Postfix) with ESMTP id 5160E40141 for ; Thu, 11 Mar 2021 21:04:20 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GVyYYlKqb87CNpDKbEZcmCtRpwHlykXaod4CCeh5WRgnykP9bO+EjU5TEdYs/Za9HPfTMTIqqttW+DpHNiSWLqa5E48JPnsSEv8ZpVGXlhNAgYthhgHO5yLcnqzpeQ8C+z4TB2eqPEQ3DZz26Rv4eCfqQ299Nm3FmWcIkK8LYwcSwpcj8IjxM3NeI/MoUIbxOz31TjJcOj+QpKGlvAP/QjA5QKP8mwzhSXOkWmWspD3W3y4Z/kUQw+Uf0nvZIa9yJCtQWyNt9Sor85IT4MaUSSLXxZW9txf91TCdjCx9yotX+Uo1+6hh9hSybfvhDk0KQAucr3MEvRKisgsqxn9Htw== 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-SenderADCheck; bh=+9E6ltWKkpCcpoyH1ylRm8A0VHzelDuuFmZtqifjW5Y=; b=Tzlmg2k0m4+VkbNZdJFM3sHv5zIlDf7L3Lo1aVlvzKA62zUAZqcTeMPYb4avhHvxQeswH72zokLrJM85uKlimxAGvnuFejxDi2VAXlAzsUGPiE5VqtxpHv9/3885KT/6N83ZZ/z9V+g09vQEvExZQk88GOCLUOkrHdwJ8wo3HN8GIP5MSZs2xRFEZg4/d7gDTBOS//h3dt785pNjubnJNJAlpMAI7BroF30IslXIOs9YPkSnT7JewMVWjEO0jOMcWSWfJstOwgBHiJCZKYSlg0n1OY7m5ymE6n4nv60AgDUGijJkGIkUYhLeSPDEzxZ+8cPiHQHkFjMfaI2z+tyHMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+9E6ltWKkpCcpoyH1ylRm8A0VHzelDuuFmZtqifjW5Y=; b=I8g2O8w6qihr8W88G6QunNYlTYIzIb85rWs/0wuX97IunJmDEx1gulj5OaOVBpnFz4nAk/V63LfErcUN9o0I/sPpuKyqcKl9r5PEsxamuI/L+EVxjWPwMKuASujduRD/MtcPPdTN/VJwPEvw0i1k2ioIG/ib50kH+opIqa8SdQ2Xn8sQUsGXoyP0IIQHyV5rMVzXdrvm0CNcv9Fre6ZIy6zqvBlQfBrf1gruzoKeubO7iKbyIV8jDu3moW582DP7XVjTiScX1ki2Lc457UGhKspNsBvbZ9xRI6QeAfZzLzFfS4NTVBgC+32aJebENV82zb18No7yU0QtgJYmfpvyyA== Received: from MW2PR12MB2492.namprd12.prod.outlook.com (2603:10b6:907:8::19) by MWHPR12MB1712.namprd12.prod.outlook.com (2603:10b6:300:112::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.30; Thu, 11 Mar 2021 20:04:17 +0000 Received: from MW2PR12MB2492.namprd12.prod.outlook.com ([fe80::99f2:8567:2f9e:c351]) by MW2PR12MB2492.namprd12.prod.outlook.com ([fe80::99f2:8567:2f9e:c351%4]) with mapi id 15.20.3890.038; Thu, 11 Mar 2021 20:04:17 +0000 From: Matan Azrad To: NBU-Contact-Thomas Monjalon , "dev@dpdk.org" CC: Shahaf Shuler , Slava Ovsiienko Thread-Topic: [PATCH v2 2/4] common/mlx5: enable debug logs dynamically Thread-Index: AQHXFMl1d1YwQCj53ESpIoOFzCOYRKp/OcBg Date: Thu, 11 Mar 2021 20:04:17 +0000 Message-ID: References: <20210308222855.823670-1-thomas@monjalon.net> <20210309094836.988763-1-thomas@monjalon.net> <20210309094836.988763-3-thomas@monjalon.net> In-Reply-To: <20210309094836.988763-3-thomas@monjalon.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [216.228.117.190] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d9554e0f-b3f9-440e-6ff1-08d8e4c8da2c x-ms-traffictypediagnostic: MWHPR12MB1712: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MMvWDD7Wdg6szyH0aRFVhsh/iPpcD3CPdqIGbAuV+aTn4xJ1ji18d7vtpHPun+ET5qWSrxLAPhH1zbpxmQhCyzkhNldWv0Yx7pgoJp7b+4x5KwQQLjmS2+zFLdUSSVg08iPSs75VVGaG2vMg6Y5QYh1gqF+W87r4thvx9v/B/XgUTk8dc1IWQB7Ib6KHsIJHgi6/cjR1s3l3MJ7X+A1TxpBxjmExRoz4lRvYtl7iaYr9vrHBej6EY6GIJIzMbd0H0EBRwtL7HHY+G7QlDHhE6MRk2ENY+jxYPpdVHtemveYmoNT8PF0J4hiBmAbrhYHFIbLF2LT7zXHTZOn1k1PilfCaZi1CN/p7sPqyJZwbYkM/Fl3r/wKvhR9/I1+YBd15g12KLUhYg0tOJLUWjdHELFehTQdOLun4ExAV8Gvp1Hy+hhJ2qxjYFqFRcUVjgITNZmaULlHoREBvPVdewk/AYJ9ZDpXuoe2Q2EFhVO+qP2w8q5FZKjqIE+KVrfbJvI/UV9mZnBGVczWDBnLyZcj5dA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW2PR12MB2492.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(376002)(346002)(39860400002)(366004)(136003)(110136005)(66946007)(52536014)(54906003)(316002)(86362001)(76116006)(8676002)(6506007)(4326008)(26005)(8936002)(186003)(2906002)(55016002)(9686003)(107886003)(64756008)(66476007)(5660300002)(478600001)(71200400001)(7696005)(33656002)(4744005)(66446008)(66556008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?mx70yxSCAFrOCyABb83s/cbu3suRX+OeSPsFUfTr05xPC0Ew9L5SEnc63FVx?= =?us-ascii?Q?taepdVBKOF3NRXfHMt3IOAglWe/OE4cvyd3YFikjBeI+u34fPi2PwVDegfOr?= =?us-ascii?Q?3y5ZrTO4bxV6HETgT4VQSZJwrd38a2UBupmBINasFOeqUC8lISIjS3YMrle5?= =?us-ascii?Q?+6ppzJeygu4GC6ij/GYaNv0P6CtQvuF4v9xT2gL0/x/4QOgC3dkh3xECf8xf?= =?us-ascii?Q?+Letqm5a4htZTRCL4NMOL836zlDz0lFXFKgprN47o2k0M97teEeVcpdvVzHU?= =?us-ascii?Q?daLtnSY+NSHixwvkNij7Yn31ELoxa5ANra0M0K3yjxSA8hlM1bcSClAOSliK?= =?us-ascii?Q?28sveqgR8XJk7htVhL+KLYX6C6IPDsLR/s87FvQCfNWoUEM4q+AkgXIHdJw/?= =?us-ascii?Q?NDYCJp/sjCwxt70XhDIZPh0GzTCjC+LwTImL3WbB8sJwy6ghy7ip9ChIVUsB?= =?us-ascii?Q?KWwq3j57d9EfIaO8KhD5vDITb9J0wOT2Y/bL3jI1a2815zO9+KEed0E3JBfe?= =?us-ascii?Q?I4wUQCaFGqeJOTn0QvwFXuTh2kwbvIBXH3cAM0DydZd2QGSnIEE5auCSNIR8?= =?us-ascii?Q?TZ194S+7INdYkybSFJSgFu8tlUx6cFz39Z78SKBiMyRXJiufNiDY0BqUQJt0?= =?us-ascii?Q?CdrbHqxMAPds6yZeG9XLO+QCT0Y/ODl8+lHEzykarxfa0Vb6joKhEi86IXrV?= =?us-ascii?Q?yoIXCj0Pux+5dE5WhZ0ZwR+5lHdeHXggbvkCTvUkK8lihTcES0zQrnBcuMvP?= =?us-ascii?Q?016oo+C578NGEYf+een+N5p+uFfcXE0plqcSTTaWVL/3jlBcYUzKBAOwD1qh?= =?us-ascii?Q?1jMd4Hh96Fo71fiOJ3DeveUwNHdJSL+giWmtJTbH7BBdjKFY/TOV+LStfGCh?= =?us-ascii?Q?j+k7pha6IAmjllP5wum35RXxOM9Zh7EZFZ48Yupj7RrXGQjSTdUwG3re5wiL?= =?us-ascii?Q?+yPY3wcOskLueTWjX7JzUDNRmdt+ZeNGWcJDe8C/3+bDdMsOhYpLNBCUq6j1?= =?us-ascii?Q?XP9IJ1iMcClS3092UqInTTJDW2IIJXnySHXxgt06SQZe7rUxV2/9QVq2MseY?= =?us-ascii?Q?TkiRyPYErzTk9AmTVGsG76IV891XPJ2H8iagdWXG6J5ZASHE9KghY/aIGP2y?= =?us-ascii?Q?zF8lGSsA/OES0I1O86hGsdNT1FTphIk8DsfFyhTrQN/EODERrjJTp8ljDa99?= =?us-ascii?Q?nSXDkcVW65s2KFsV1slU8tqFahcBABFCXPGT47pduOjFi5Chd4DY/doflEPS?= =?us-ascii?Q?JUBhmfVowGMBnCUMZwDlDFFXpx8M/TvCKkN6PYkjq49LSB6wsohH9t5JeneF?= =?us-ascii?Q?lnKsVy7TormMMBPS9cn0h4ln?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW2PR12MB2492.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d9554e0f-b3f9-440e-6ff1-08d8e4c8da2c X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2021 20:04:17.7362 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GazkefaDui8xyEUSeXNRFRel5VojTJEFNFCyka2K8xsmEaFK4m6Mxo3j1/SBQOuuskwGqzdGeEN7mqa8NAvdyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1712 Subject: Re: [dpdk-dev] [PATCH v2 2/4] common/mlx5: enable debug logs dynamically 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 Sender: "dev" From: Thomas Monjalon > Most debug logs are using DRV_LOG(DEBUG,) but some were using DEBUG(). > The macro DEBUG is doing nothing if not compiled with > RTE_LIBRTE_MLX5_DEBUG. >=20 > As it is not used in the data path, the macro DEBUG can be replaced with > DRV_LOG. > Then all debug logs can be enabled at runtime with: > --log-level pmd.net.mlx5:debug >=20 > Signed-off-by: Thomas Monjalon Acked-by: Matan Azrad