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 1A02FA0542; Tue, 5 Jul 2022 16:48:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A62204021D; Tue, 5 Jul 2022 16:48:55 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2082.outbound.protection.outlook.com [40.107.220.82]) by mails.dpdk.org (Postfix) with ESMTP id 8E1EA400D7; Tue, 5 Jul 2022 16:48:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FozzzM5E44KTdXa+mDDqEwcZVVgoCVWUuWqVwAq7wb1xU+pig3cfl0TbBBQBkGjxZlf+WwibX20dqxMmfB1w/o5SZVQc9UF5ugkEu18joDXnIPq2WJeo2O8dmyVuRtBkW9Egzx2Tu3lQ+9yiXJw0/hr6KXSwhfmuTmF19GnQ5xWC9lXPhc5HrcCp/h4qhDQorxMqN2mhc2Ua6LiaZ7Bn7Iv9KlyAaJ1IzpPKh/q7WooCafamG6pivb48PlqWQLmWc7GoiWtAXS94QOCsfSvmGDO/N+xLPE2q7C9vQ0GDEar/ADTtqSotzh1WpbT/9fydelz5bvNbj8oF5bYJf9eIpw== 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=lcxivvuSEH1C1GkBd2so2zTPL5g4K1XfCWK4Ft3MXIg=; b=dms1ukPSOdq7TcnTcrVhfgcU6rG1/3UkpHRSNl5LmoHGx6o/9eFTqaeRZSYF2H9ix+cslALKkALAItY68ghAYRnlWKK6I2L+/GTpbpWmfu6LYQ+NbAZxBAakB+JL+1rREHq83XJHet864dLUCwxDE2tetolqhWJgPxyZShn4YuI9AEO3zmgBeDSMILnbm+kl5CYIPpkReGdAPdr+1SIcX1/oX1AknbPMqV2G1w2wjL/VngWngT6U18i8Hp6msg8S9gBMRqRlNiLDv+SbY0UsBiLr8ugN+P2GR+LX3sIZiVhsIo8YQsuAHIoYKUFp+FM6fo3HjAXpiPkWDLy/BDvBgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.236) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); 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=lcxivvuSEH1C1GkBd2so2zTPL5g4K1XfCWK4Ft3MXIg=; b=nESg2N1l0XcCgYA3wKfH8cCrH2WwlOIHTfF7ToFB31yjTlarINt3nRgwZTeijvpMscti3EiPyF1ga0d7xLhsYsS6eZs9K8lvDeJDCULnD3nInxvJI1XshuquJb6iLIbQH+fJovFku1jkhpFmPqhMYkXVU7aLW4S3c0Wpc7yfOtGGJTV1ZURE1I3ymAiKEF6CppoSOYLsa1tKV1hvyIhOmuXAbySUAWVb3GxaKjvuaHfJSm8Y6FRjPse0FwvmG/gegyUTebdycF5je+tHNCg36quPxSKbVocX8ETxgP7D3yhJVJ2QMWz72ir4oCA5ycz3h4vRjiN9LAg8vUz1SmZ+Ow== Received: from DS7PR03CA0007.namprd03.prod.outlook.com (2603:10b6:5:3b8::12) by BL1PR12MB5873.namprd12.prod.outlook.com (2603:10b6:208:395::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.21; Tue, 5 Jul 2022 14:48:52 +0000 Received: from DM6NAM11FT058.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b8:cafe::5d) by DS7PR03CA0007.outlook.office365.com (2603:10b6:5:3b8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.18 via Frontend Transport; Tue, 5 Jul 2022 14:48:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.236) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.236 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.236; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.236) by DM6NAM11FT058.mail.protection.outlook.com (10.13.172.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5395.17 via Frontend Transport; Tue, 5 Jul 2022 14:48:52 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL109.nvidia.com (10.27.9.19) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Tue, 5 Jul 2022 14:48:51 +0000 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Tue, 5 Jul 2022 07:48:48 -0700 From: Gregory Etelson To: CC: , , , , Viacheslav Ovsiienko Subject: [PATCH] common/mlx5: update DevX error logging Date: Tue, 5 Jul 2022 17:48:31 +0300 Message-ID: <20220705144831.27945-1-getelson@nvidia.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a303a793-3a43-441f-b18c-08da5e957a81 X-MS-TrafficTypeDiagnostic: BL1PR12MB5873:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NXDAqqxh2K6GzPIuOVb0QRHUqTB5zXo7hZysRbyXX2R7RMpkQvawtu6oa1vDxqPm6SR9kC9HmreZK9V5P7f7nInRfsaPNrkGv1/9V8D7xrL71bNY9W+pZ49l3dnoUvf8S4nhGcLYaSdXrtq7pyCo/c6xVQhf0Zea1CG83bb4vAu+3FnWFFQxH8+bTrfsDHdmlmtcsQ7qX1bdQwjt/c9C6LMwRNORdUagm49VHODflq30n+/xbrcL3OrP3rz1aGvSUDVXpbhGNMjnMCJ/t+Hvqav2MSIyJkLU0SutJeuyarEBll9zvVac7E5Do6XZjlkr168Dhl274PlEhqXvSWAwPzymrwK4zSq+qljSnmUHtbdb9PO/3lMcDbO/YtIB8wu/NGjQY8s7lENfyjHuH8IOK2aajco5C3BPBHRnxkGd9kLRiidhzOJX31GYaEYF49jDdVNdusLKsCcr04i4VRWVda16rE1TRtl8JqMgUMpZtlfUbdJr6mCudmyJcuIswC3XHj7HezQerlvviR2O4WeCDqZEWsSMivT1UYMto5CkSa0raxCIhDZBlfy5mBjdTTA3NaL3hq8eMYPDxFhTVnqEPdCgo+PmOMZ2z/pMSom0KFsJ+xRqXp+PpDRz8H3IP0GhRjYQUjwN1YBBvRlYOXtPvMPhGuAtVGNSf0S5mUc1NbWb+12lhHbmiCJm8zLOUA+FjKPMB6eV7+fe4K58h3NPck4S+DqKUpwoHT+a9g5RuMTLUKFEs2N67mSHx+D/LGTVHsdTe2OZ0VG2phCEK7tW1QTSHJnqRh2by/Ro+UBPWmAZDbJ3fguWXDmMFz6l9eR2eUACGqYVK5pxmS3ox2o9IyE6vXNs5tnugC4Umctfv1c= X-Forefront-Antispam-Report: CIP:12.22.5.236; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(376002)(39860400002)(396003)(136003)(346002)(40470700004)(46966006)(36840700001)(107886003)(36860700001)(86362001)(83380400001)(316002)(2906002)(2616005)(70586007)(70206006)(4326008)(47076005)(16526019)(186003)(426003)(336012)(8676002)(7696005)(55016003)(1076003)(450100002)(6666004)(40480700001)(41300700001)(356005)(40460700003)(82740400003)(30864003)(8936002)(6286002)(82310400005)(5660300002)(26005)(6916009)(478600001)(54906003)(36756003)(81166007)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2022 14:48:52.3085 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a303a793-3a43-441f-b18c-08da5e957a81 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.236]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT058.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5873 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 Current PMD logs all DevX errors at RTE_LOG_ERR level. DevX interface can fail queue counters allocation on some hardware types. That is a known issue. PMD fallback to VERB API to allocate queue counters when it detects the fault. That DevX failure should not be logged as PMD error. The patch provides DevX with flexible API that selects log level. cc: stable@dpdk.org Signed-off-by: Gregory Etelson Acked-by: Matan Azrad --- drivers/common/mlx5/mlx5_devx_cmds.c | 90 ++++++++++++++-------------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c index 8880a9f3b5..35d977bfd6 100644 --- a/drivers/common/mlx5/mlx5_devx_cmds.c +++ b/drivers/common/mlx5/mlx5_devx_cmds.c @@ -20,20 +20,21 @@ #define MLX5_DEVX_ERR_RC(x) ((x) > 0 ? -(x) : ((x) < 0 ? (x) : -1)) -static void -mlx5_devx_err_log(void *out, const char *reason, - const char *param, uint32_t value) -{ - rte_errno = errno; - if (!param) - DRV_LOG(ERR, "DevX %s failed errno=%d status=%#x syndrome=%#x", - reason, errno, MLX5_FW_STATUS(out), - MLX5_FW_SYNDROME(out)); - else - DRV_LOG(ERR, "DevX %s %s=%#X failed errno=%d status=%#x syndrome=%#x", - reason, param, value, errno, MLX5_FW_STATUS(out), - MLX5_FW_SYNDROME(out)); -} +#define DEVX_DRV_LOG(level, out, reason, param, value) \ +do { \ + rte_errno = errno; \ + if (!(param)) { \ + DRV_LOG(level, \ + "DevX %s failed errno=%d status=%#x syndrome=%#x", \ + (reason), errno, MLX5_FW_STATUS((out)), \ + MLX5_FW_SYNDROME((out))); \ + } else { \ + DRV_LOG(level, \ + "DevX %s %s=%#X failed errno=%d status=%#x syndrome=%#x",\ + (reason), (const char *)(param), (value), errno, \ + MLX5_FW_STATUS((out)), MLX5_FW_SYNDROME((out))); \ + } \ +} while (0) static void * mlx5_devx_get_hca_cap(void *ctx, uint32_t *in, uint32_t *out, @@ -49,7 +50,7 @@ mlx5_devx_get_hca_cap(void *ctx, uint32_t *in, uint32_t *out, MLX5_SET(query_hca_cap_in, in, op_mod, flags); rc = mlx5_glue->devx_general_cmd(ctx, in, size_in, out, size_out); if (rc || MLX5_FW_STATUS(out)) { - mlx5_devx_err_log(out, "HCA capabilities", "func", flags >> 1); + DEVX_DRV_LOG(ERR, out, "HCA capabilities", "func", flags >> 1); if (err) *err = MLX5_DEVX_ERR_RC(rc); return NULL; @@ -102,7 +103,7 @@ mlx5_devx_cmd_register_read(void *ctx, uint16_t reg_id, uint32_t arg, MLX5_ST_SZ_BYTES(access_register_out) + sizeof(uint32_t) * dw_cnt); if (rc || MLX5_FW_STATUS(out)) { - mlx5_devx_err_log(out, "read access", "NIC register", reg_id); + DEVX_DRV_LOG(ERR, out, "read access", "NIC register", reg_id); return MLX5_DEVX_ERR_RC(rc); } memcpy(data, &out[MLX5_ST_SZ_DW(access_register_out)], @@ -153,7 +154,7 @@ mlx5_devx_cmd_register_write(void *ctx, uint16_t reg_id, uint32_t arg, memcpy(ptr, data, dw_cnt * sizeof(uint32_t)); rc = mlx5_glue->devx_general_cmd(ctx, in, sizeof(in), out, sizeof(out)); if (rc || MLX5_FW_STATUS(out)) { - mlx5_devx_err_log(out, "write access", "NIC register", reg_id); + DEVX_DRV_LOG(ERR, out, "write access", "NIC register", reg_id); return MLX5_DEVX_ERR_RC(rc); } rc = mlx5_glue->devx_general_cmd(ctx, in, @@ -161,7 +162,7 @@ mlx5_devx_cmd_register_write(void *ctx, uint16_t reg_id, uint32_t arg, dw_cnt * sizeof(uint32_t), out, sizeof(out)); if (rc || MLX5_FW_STATUS(out)) { - mlx5_devx_err_log(out, "write access", "NIC register", reg_id); + DEVX_DRV_LOG(ERR, out, "write access", "NIC register", reg_id); return MLX5_DEVX_ERR_RC(rc); } return 0; @@ -199,7 +200,7 @@ mlx5_devx_cmd_flow_counter_alloc(void *ctx, uint32_t bulk_n_128) dcs->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (!dcs->obj) { - mlx5_devx_err_log(out, "allocate counters", NULL, 0); + DEVX_DRV_LOG(ERR, out, "allocate counters", NULL, 0); mlx5_free(dcs); return NULL; } @@ -377,9 +378,8 @@ mlx5_devx_cmd_mkey_create(void *ctx, mkey->obj = mlx5_glue->devx_obj_create(ctx, in, in_size_dw * 4, out, sizeof(out)); if (!mkey->obj) { - mlx5_devx_err_log(out, - klm_num ? "create indirect mkey" : "create direct key", - NULL, 0); + DEVX_DRV_LOG(ERR, out, klm_num ? "create indirect mkey" + : "create direct key", NULL, 0); mlx5_free(mkey); return NULL; } @@ -470,7 +470,7 @@ mlx5_devx_cmd_query_nic_vport_context(void *ctx, in, sizeof(in), out, sizeof(out)); if (rc || MLX5_FW_STATUS(out)) { - mlx5_devx_err_log(out, "query NIC vport context", NULL, 0); + DEVX_DRV_LOG(ERR, out, "query NIC vport context", NULL, 0); return MLX5_DEVX_ERR_RC(rc); } vctx = MLX5_ADDR_OF(query_nic_vport_context_out, out, @@ -717,7 +717,7 @@ mlx5_devx_cmd_create_flex_parser(void *ctx, parse_flex_obj->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (!parse_flex_obj->obj) { - mlx5_devx_err_log(out, "create FLEX PARSE GRAPH", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create FLEX PARSE GRAPH", NULL, 0); mlx5_free(parse_flex_obj); return NULL; } @@ -1292,7 +1292,7 @@ mlx5_devx_cmd_create_rq(void *ctx, rq->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (!rq->obj) { - mlx5_devx_err_log(out, "create RQ", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create RQ", NULL, 0); mlx5_free(rq); return NULL; } @@ -1391,7 +1391,7 @@ mlx5_devx_cmd_create_rmp(void *ctx, rmp->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (!rmp->obj) { - mlx5_devx_err_log(out, "create RMP", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create RMP", NULL, 0); mlx5_free(rmp); return NULL; } @@ -1459,7 +1459,7 @@ mlx5_devx_cmd_create_tir(void *ctx, tir->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (!tir->obj) { - mlx5_devx_err_log(out, "create TIR", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create TIR", NULL, 0); mlx5_free(tir); return NULL; } @@ -1597,7 +1597,7 @@ mlx5_devx_cmd_create_rqt(void *ctx, rqt->obj = mlx5_glue->devx_obj_create(ctx, in, inlen, out, sizeof(out)); mlx5_free(in); if (!rqt->obj) { - mlx5_devx_err_log(out, "create RQT", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create RQT", NULL, 0); mlx5_free(rqt); return NULL; } @@ -1711,7 +1711,7 @@ mlx5_devx_cmd_create_sq(void *ctx, sq->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (!sq->obj) { - mlx5_devx_err_log(out, "create SQ", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create SQ", NULL, 0); mlx5_free(sq); return NULL; } @@ -1794,7 +1794,7 @@ mlx5_devx_cmd_create_tis(void *ctx, tis->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (!tis->obj) { - mlx5_devx_err_log(out, "create TIS", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create TIS", NULL, 0); mlx5_free(tis); return NULL; } @@ -1828,7 +1828,7 @@ mlx5_devx_cmd_create_td(void *ctx) td->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (!td->obj) { - mlx5_devx_err_log(out, "create TIS", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create TIS", NULL, 0); mlx5_free(td); return NULL; } @@ -1948,7 +1948,7 @@ mlx5_devx_cmd_create_cq(void *ctx, struct mlx5_devx_cq_attr *attr) cq_obj->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (!cq_obj->obj) { - mlx5_devx_err_log(out, "create CQ", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create CQ", NULL, 0); mlx5_free(cq_obj); return NULL; } @@ -2024,7 +2024,7 @@ mlx5_devx_cmd_create_virtq(void *ctx, virtq_obj->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (!virtq_obj->obj) { - mlx5_devx_err_log(out, "create VIRTQ", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create VIRTQ", NULL, 0); mlx5_free(virtq_obj); return NULL; } @@ -2257,7 +2257,7 @@ mlx5_devx_cmd_create_qp(void *ctx, qp_obj->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (!qp_obj->obj) { - mlx5_devx_err_log(out, "create QP", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create QP", NULL, 0); mlx5_free(qp_obj); return NULL; } @@ -2378,8 +2378,8 @@ mlx5_devx_cmd_create_virtio_q_counters(void *ctx) couners_obj->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (!couners_obj->obj) { - mlx5_devx_err_log(out, "create virtio queue counters Obj", - NULL, 0); + DEVX_DRV_LOG(ERR, out, "create virtio queue counters Obj", NULL, + 0); mlx5_free(couners_obj); return NULL; } @@ -2461,7 +2461,7 @@ mlx5_devx_cmd_create_flow_hit_aso_obj(void *ctx, uint32_t pd) flow_hit_aso_obj->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (!flow_hit_aso_obj->obj) { - mlx5_devx_err_log(out, "create FLOW_HIT_ASO", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create FLOW_HIT_ASO", NULL, 0); mlx5_free(flow_hit_aso_obj); return NULL; } @@ -2548,7 +2548,7 @@ mlx5_devx_cmd_create_flow_meter_aso_obj(void *ctx, uint32_t pd, ctx, in, sizeof(in), out, sizeof(out)); if (!flow_meter_aso_obj->obj) { - mlx5_devx_err_log(out, "create FLOW_METTER_ASO", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create FLOW_METTER_ASO", NULL, 0); mlx5_free(flow_meter_aso_obj); return NULL; } @@ -2598,7 +2598,7 @@ mlx5_devx_cmd_create_conn_track_offload_obj(void *ctx, uint32_t pd, ct_aso_obj->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (!ct_aso_obj->obj) { - mlx5_devx_err_log(out, "create CONN_TRACK_OFFLOAD", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create CONN_TRACK_OFFLOAD", NULL, 0); mlx5_free(ct_aso_obj); return NULL; } @@ -2650,7 +2650,7 @@ mlx5_devx_cmd_create_geneve_tlv_option(void *ctx, geneve_tlv_opt_obj->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (!geneve_tlv_opt_obj->obj) { - mlx5_devx_err_log(out, "create GENEVE TLV", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create GENEVE TLV", NULL, 0); mlx5_free(geneve_tlv_opt_obj); return NULL; } @@ -2712,7 +2712,7 @@ mlx5_devx_cmd_queue_counter_alloc(void *ctx) dcs->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (!dcs->obj) { - mlx5_devx_err_log(out, "create q counter set", NULL, 0); + DEVX_DRV_LOG(DEBUG, out, "create q counter set", NULL, 0); mlx5_free(dcs); return NULL; } @@ -2799,7 +2799,7 @@ mlx5_devx_cmd_create_dek_obj(void *ctx, struct mlx5_devx_dek_attr *attr) dek_obj->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (dek_obj->obj == NULL) { - mlx5_devx_err_log(out, "create DEK", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create DEK", NULL, 0); mlx5_free(dek_obj); return NULL; } @@ -2846,7 +2846,7 @@ mlx5_devx_cmd_create_import_kek_obj(void *ctx, import_kek_obj->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (import_kek_obj->obj == NULL) { - mlx5_devx_err_log(out, "create IMPORT_KEK", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create IMPORT_KEK", NULL, 0); mlx5_free(import_kek_obj); return NULL; } @@ -2894,7 +2894,7 @@ mlx5_devx_cmd_create_credential_obj(void *ctx, credential_obj->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (credential_obj->obj == NULL) { - mlx5_devx_err_log(out, "create CREDENTIAL", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create CREDENTIAL", NULL, 0); mlx5_free(credential_obj); return NULL; } @@ -2945,7 +2945,7 @@ mlx5_devx_cmd_create_crypto_login_obj(void *ctx, crypto_login_obj->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, sizeof(out)); if (crypto_login_obj->obj == NULL) { - mlx5_devx_err_log(out, "create CRYPTO_LOGIN", NULL, 0); + DEVX_DRV_LOG(ERR, out, "create CRYPTO_LOGIN", NULL, 0); mlx5_free(crypto_login_obj); return NULL; } -- 2.34.1