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 D74E745AA2; Thu, 3 Oct 2024 22:26:42 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD3E6402B1; Thu, 3 Oct 2024 22:26:41 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2067.outbound.protection.outlook.com [40.107.243.67]) by mails.dpdk.org (Postfix) with ESMTP id A00A840268; Thu, 3 Oct 2024 22:26:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ft5ttAdfL6tv+tL6eDlTRI/wkd46epxM8K+g49OTbfJcY9uAsg9aWi1gQqISWLdbwdnYSGAsy+XVwl9kLa/SrAspDIDMppJbNEM54IYV8sDk8ldsmTpRCSnhvoFF9uJQWrJrgmZLcy2ht0l28Zu5KsjvQBQwAVeFn6yPFcFIXanJzf5IzFG/ITUiOVPdRyxUCYDBzc+LbmgsIyzJSzz8tYyRY3xDwvDNJ5D1IqALVwzX5d3uY33BpwhWxUTlymocAw0kJz99cjYA5AgbU7eAmz3YJg+Uh+7AQXeySsXgN/+niiS++PXFfgx542+f3zGlN7Kwbyc/YhDy+vsUXaryYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=tBvbmpW/PNu59ezsK+Ma+kTFPuMMnIvymAgermwlzVM=; b=BqGAQrw2qAAY9mZmGy2aIP46A7fohL6GKcfGaN8AunieBqgnHzwgKtKwxb/OhAXnu1aWHU5D4OWU2d84E/tcDucoP0G46QDtjts+OAE8XOOGNjOuigcGHOJpX08ZTzTYGQFc/UpDaumd3014OHsD7x/63lEN+RUnvTRk0EZSnht9RaI0vwuUrnE+C9y1uy4r4jdif1E89VhMTQ4FDSO2zlaKm+ZEpDVckYDT+ZANqCC+k+uBjqbTS+YV0MJ1FYHLXR4tyOeLQ5O5bikW6OmLsWNHBVaW49eisQDj0ejBzpRp68FHXJBdGelXKw5x5hsEcTQ/NYr9nSIRbdqD7n/rdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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 (0) 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=tBvbmpW/PNu59ezsK+Ma+kTFPuMMnIvymAgermwlzVM=; b=WaZvcdmBIMsR+AHwSAF4J8NZ3G/9fvMG+0KBvtIrKWu4An74rn5W/txIBRc06ROPg9dR1qi2qFgtNX4mep/ObNpli7Si00d3OXJ9Vz2N+ml3QSyneVfEtRtzsbJD0A5MqgeR23uf4iFYpmqkRdlet7Jcv9DmEF1yMELS3JGbei4Nf7/hIJCtCdqxsMzZbDB/o57/CJKoTs5/hs1SDvKmA8vxIty5hosZiV+iHsP6CoG7F/cXT9lJX4JHkABGBBfnSBx73xCw5SNcy3D6ECXPx8VRGqBmcDB4P7l2I6hijSSGtYysRV/lryz+nZ64NcqbeTCrxDZKNxmqhSyQL8FJKw== Received: from DS7PR03CA0275.namprd03.prod.outlook.com (2603:10b6:5:3ad::10) by SA1PR12MB5615.namprd12.prod.outlook.com (2603:10b6:806:229::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.16; Thu, 3 Oct 2024 20:26:36 +0000 Received: from DS3PEPF0000C37C.namprd04.prod.outlook.com (2603:10b6:5:3ad:cafe::d8) by DS7PR03CA0275.outlook.office365.com (2603:10b6:5:3ad::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.18 via Frontend Transport; Thu, 3 Oct 2024 20:26:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DS3PEPF0000C37C.mail.protection.outlook.com (10.167.23.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.11 via Frontend Transport; Thu, 3 Oct 2024 20:26:35 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 3 Oct 2024 13:26:22 -0700 Received: from pegasus01.mtr.labs.mlnx (10.126.230.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.1544.4; Thu, 3 Oct 2024 13:26:20 -0700 From: Alexander Kozyrev To: CC: , , , , Subject: [PATCH v2] drivers: fix error CQE handling Date: Thu, 3 Oct 2024 23:26:05 +0300 Message-ID: <20241003202605.867419-1-akozyrev@nvidia.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20230502184922.3249201-1-akozyrev@nvidia.com> References: <20230502184922.3249201-1-akozyrev@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.230.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-TrafficTypeDiagnostic: DS3PEPF0000C37C:EE_|SA1PR12MB5615:EE_ X-MS-Office365-Filtering-Correlation-Id: 325909c6-fb39-49da-b612-08dce3e9ad98 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|1800799024|82310400026|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?yE1TrAJUO4KRFoPyT2FU2EP8iEZTHoy/fkTVNzP/J+rhITyF7DWW3XtbaKvv?= =?us-ascii?Q?2f1qFf58gxor9/FcPBgFb1NE0P/jWTeSrjKC3uh0vV1n6PvpCuk9bWOIw8BB?= =?us-ascii?Q?4rHKdggM16aYTZMa4e43dGvfox8rUxtPmGWASpsX7hiJoJzv7lGSDB1GYzll?= =?us-ascii?Q?bg+EhcZndyjO1I5Tg4HfHeWUZspaaJDED5mJQTO4D9MXfa9gpcAKJ5VBWa+a?= =?us-ascii?Q?vKVWl0xaOp78hVWQna1/aj23BF9AUv31zZJZrFdWCbjMuPTt1zR0uT7ho8yM?= =?us-ascii?Q?a3OcBgVqMDQBlR9pw6T8Y1d3AMWnd0+McSKOX2tSiPDBX5jIvoX67r+zxzHD?= =?us-ascii?Q?S7cwZ2L9mZaiDLMcHejoCBzQFyCxU0ualosFvJ4eyDwlcRF69I4Na/vTaFDy?= =?us-ascii?Q?4LQJ872iZhEnX520Gf8N0tQJGVtXWyMIiF8GMvESZzo80vQEHpP+xNfAkEyo?= =?us-ascii?Q?bj2+SLlRhF7Gy8qMzoPvhVf6D+xy8N9sVsk6INs5DKcgM8+uZSU/uRXKL1p0?= =?us-ascii?Q?E4Lqttv8EOHi7u715uuCuaXNoaZ2g+mNuI2LH4EmC69oEhD/Zzp8bgxqnk7E?= =?us-ascii?Q?YHcVqwiVSANWYeocdySW1KkYfvsC4cIfzueOiuvXYaHG0ZvRIUPMliZiC6XC?= =?us-ascii?Q?4YSZt2UigBAHOeVrbFP7O1GZiRHr10NRWW7C4G1eZ4GsrCsZDe7Jw5jFNJS3?= =?us-ascii?Q?1vFaFMVzteJ01GNfoNzCayTJWSUAi3u7KSQNwziJagtYHhr3sXEAet1m3x1G?= =?us-ascii?Q?wpK0knnq3n6YoKUf74Xt4kH9gfaFqv7vp8vAckL8yDdpa9OsVYYCR8jNBfxa?= =?us-ascii?Q?BQJaeHhMpgJxtBOL8UBnUll6XT1HZaMxk2AMfImZHCJj2QtAEkCs0zB5X4rl?= =?us-ascii?Q?gklF8bVbZeuedSkxMIn91UIJREzshqyT5hD+oSS7oeonQfyN4x/+SuPBqANx?= =?us-ascii?Q?CPkG0u5AyuChKhgO0d7JOUIHx8rJWYmuElz6ahVOHJXsea/ay01gHSstieo1?= =?us-ascii?Q?r9DA7637gw280wa6Wt6xBAByGB2rzYjCYCmHLbwuPqmqHd7RxVSuPi0gTb9c?= =?us-ascii?Q?o83hWnhifWL+9GizeNTm1k9cVj2qRInt2HZRXGmyrpZyXGE8f/cMRMXdmnOv?= =?us-ascii?Q?DK35JpTfeqhdUIW2mT7eV22/+38sXYl6Vn4YlhXUpA4Eu1b7VNpcGkdZa223?= =?us-ascii?Q?bWO5d+fEnxNvLlsTxzr1i7lAQpLiAYDnGUAKEwdXxTGQf6Ae7VWPcsV8bIha?= =?us-ascii?Q?U0cqnhUpn/5kDUxRA0/SRY3ss5HxW4L8Xe2lX+MycBsgPY6/4LTi8c3d2OeP?= =?us-ascii?Q?0O90nzGaTqki8v9hA3Y3oBKHMEgv//y+7P7dTcxWKE1hkueRpji8zBAG2Do1?= =?us-ascii?Q?qzJ5zKc=3D?= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230040)(36860700013)(1800799024)(82310400026)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2024 20:26:35.8181 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 325909c6-fb39-49da-b612-08dce3e9ad98 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS3PEPF0000C37C.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB5615 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 The completion queue element size can be independently configured to report either 64 or 128 bytes CQEs by programming cqe_sz parameter at CQ creation. This parameter depends on the cache line size and affects both regular CQEs and error CQEs. But the error handling assumes that an error CQE is 64 bytes and doesn't take the padding into consideration on platforms with 128-byte cache lines. Fix the error CQE size in all error handling routines in mlx5. Fixes: 957e45fb7b ("net/mlx5: handle Tx completion with error") Cc: stable@dpdk.org Signed-off-by: Alexander Kozyrev --- drivers/common/mlx5/mlx5_prm.h | 29 ++++++++++++++++++++- drivers/common/mlx5/windows/mlx5_win_defs.h | 12 --------- drivers/compress/mlx5/mlx5_compress.c | 4 +-- drivers/crypto/mlx5/mlx5_crypto_gcm.c | 2 +- drivers/crypto/mlx5/mlx5_crypto_xts.c | 2 +- drivers/net/mlx5/hws/mlx5dr_send.c | 2 +- drivers/net/mlx5/mlx5_flow_aso.c | 6 ++--- drivers/net/mlx5/mlx5_rx.c | 2 +- drivers/net/mlx5/mlx5_tx.c | 8 +++--- 9 files changed, 41 insertions(+), 26 deletions(-) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h index 359f02f17c..210158350d 100644 --- a/drivers/common/mlx5/mlx5_prm.h +++ b/drivers/common/mlx5/mlx5_prm.h @@ -268,8 +268,12 @@ /* Maximum number of DS in WQE. Limited by 6-bit field. */ #define MLX5_DSEG_MAX 63 -/* The 32 bit syndrome offset in struct mlx5_err_cqe. */ +/* The 32 bit syndrome offset in struct mlx5_error_cqe. */ +#if (RTE_CACHE_LINE_SIZE == 128) +#define MLX5_ERROR_CQE_SYNDROME_OFFSET 116 +#else #define MLX5_ERROR_CQE_SYNDROME_OFFSET 52 +#endif /* The completion mode offset in the WQE control segment line 2. */ #define MLX5_COMP_MODE_OFFSET 2 @@ -415,6 +419,29 @@ struct mlx5_wqe_mprq { #define MLX5_MPRQ_STRIDE_SHIFT_BYTE 2 +struct mlx5_error_cqe { +#if (RTE_CACHE_LINE_SIZE == 128) + uint8_t padding[64]; +#endif + uint8_t rsvd0[2]; + uint16_t eth_wqe_id; + uint8_t rsvd1[16]; + uint16_t ib_stride_index; + uint8_t rsvd2[10]; + uint32_t srqn; + uint8_t rsvd3[8]; + uint32_t byte_cnt; + uint8_t rsvd4[4]; + uint8_t hw_err_synd; + uint8_t hw_synd_type; + uint8_t vendor_err_synd; + uint8_t syndrome; + uint32_t s_wqe_opcode_qpn; + uint16_t wqe_counter; + uint8_t signature; + uint8_t op_own; +}; + /* CQ element structure - should be equal to the cache line size */ struct mlx5_cqe { #if (RTE_CACHE_LINE_SIZE == 128) diff --git a/drivers/common/mlx5/windows/mlx5_win_defs.h b/drivers/common/mlx5/windows/mlx5_win_defs.h index 79e7a7f386..d60df6fd37 100644 --- a/drivers/common/mlx5/windows/mlx5_win_defs.h +++ b/drivers/common/mlx5/windows/mlx5_win_defs.h @@ -219,18 +219,6 @@ struct mlx5_action { } dest_tir; }; -struct mlx5_err_cqe { - uint8_t rsvd0[32]; - uint32_t srqn; - uint8_t rsvd1[18]; - uint8_t vendor_err_synd; - uint8_t syndrome; - uint32_t s_wqe_opcode_qpn; - uint16_t wqe_counter; - uint8_t signature; - uint8_t op_own; -}; - struct mlx5_wqe_srq_next_seg { uint8_t rsvd0[2]; rte_be16_t next_wqe_index; diff --git a/drivers/compress/mlx5/mlx5_compress.c b/drivers/compress/mlx5/mlx5_compress.c index 5998d060e4..82105bfebd 100644 --- a/drivers/compress/mlx5/mlx5_compress.c +++ b/drivers/compress/mlx5/mlx5_compress.c @@ -602,7 +602,7 @@ mlx5_compress_dump_err_objs(volatile uint32_t *cqe, volatile uint32_t *wqe, size_t i; DRV_LOG(ERR, "Error cqe:"); - for (i = 0; i < sizeof(struct mlx5_err_cqe) >> 2; i += 4) + for (i = 0; i < sizeof(struct mlx5_error_cqe) >> 2; i += 4) DRV_LOG(ERR, "%08X %08X %08X %08X", cqe[i], cqe[i + 1], cqe[i + 2], cqe[i + 3]); DRV_LOG(ERR, "\nError wqe:"); @@ -620,7 +620,7 @@ mlx5_compress_cqe_err_handle(struct mlx5_compress_qp *qp, struct rte_comp_op *op) { const uint32_t idx = qp->ci & (qp->entries_n - 1); - volatile struct mlx5_err_cqe *cqe = (volatile struct mlx5_err_cqe *) + volatile struct mlx5_error_cqe *cqe = (volatile struct mlx5_error_cqe *) &qp->cq.cqes[idx]; volatile struct mlx5_gga_wqe *wqes = (volatile struct mlx5_gga_wqe *) qp->qp.wqes; diff --git a/drivers/crypto/mlx5/mlx5_crypto_gcm.c b/drivers/crypto/mlx5/mlx5_crypto_gcm.c index f598273873..cd21605bd2 100644 --- a/drivers/crypto/mlx5/mlx5_crypto_gcm.c +++ b/drivers/crypto/mlx5/mlx5_crypto_gcm.c @@ -877,7 +877,7 @@ mlx5_crypto_gcm_cqe_err_handle(struct mlx5_crypto_qp *qp, struct rte_crypto_op * { uint8_t op_code; const uint32_t idx = qp->cq_ci & (qp->entries_n - 1); - volatile struct mlx5_err_cqe *cqe = (volatile struct mlx5_err_cqe *) + volatile struct mlx5_error_cqe *cqe = (volatile struct mlx5_error_cqe *) &qp->cq_obj.cqes[idx]; op_code = rte_be_to_cpu_32(cqe->s_wqe_opcode_qpn) >> MLX5_CQ_INDEX_WIDTH; diff --git a/drivers/crypto/mlx5/mlx5_crypto_xts.c b/drivers/crypto/mlx5/mlx5_crypto_xts.c index d4e1dd718c..b9214711ac 100644 --- a/drivers/crypto/mlx5/mlx5_crypto_xts.c +++ b/drivers/crypto/mlx5/mlx5_crypto_xts.c @@ -363,7 +363,7 @@ static __rte_noinline void mlx5_crypto_xts_cqe_err_handle(struct mlx5_crypto_qp *qp, struct rte_crypto_op *op) { const uint32_t idx = qp->ci & (qp->entries_n - 1); - volatile struct mlx5_err_cqe *cqe = (volatile struct mlx5_err_cqe *) + volatile struct mlx5_error_cqe *cqe = (volatile struct mlx5_error_cqe *) &qp->cq_obj.cqes[idx]; op->status = RTE_CRYPTO_OP_STATUS_ERROR; diff --git a/drivers/net/mlx5/hws/mlx5dr_send.c b/drivers/net/mlx5/hws/mlx5dr_send.c index e9abf3dddb..e121c7f7ed 100644 --- a/drivers/net/mlx5/hws/mlx5dr_send.c +++ b/drivers/net/mlx5/hws/mlx5dr_send.c @@ -599,7 +599,7 @@ static void mlx5dr_send_engine_poll_cq(struct mlx5dr_send_engine *queue, return; if (unlikely(cqe_opcode != MLX5_CQE_REQ)) { - struct mlx5_err_cqe *err_cqe = (struct mlx5_err_cqe *)cqe; + struct mlx5_error_cqe *err_cqe = (struct mlx5_error_cqe *)cqe; DR_LOG(ERR, "CQE ERR:0x%x, Vendor_ERR:0x%x, OP:0x%x, QPN:0x%x, WQE_CNT:0x%x", err_cqe->syndrome, err_cqe->vendor_err_synd, cqe_opcode, diff --git a/drivers/net/mlx5/mlx5_flow_aso.c b/drivers/net/mlx5/mlx5_flow_aso.c index a94b228396..feca8c3e89 100644 --- a/drivers/net/mlx5/mlx5_flow_aso.c +++ b/drivers/net/mlx5/mlx5_flow_aso.c @@ -489,7 +489,7 @@ mlx5_aso_dump_err_objs(volatile uint32_t *cqe, volatile uint32_t *wqe) int i; DRV_LOG(ERR, "Error cqe:"); - for (i = 0; i < 16; i += 4) + for (i = 0; i < (int)sizeof(struct mlx5_error_cqe) / 4; i += 4) DRV_LOG(ERR, "%08X %08X %08X %08X", cqe[i], cqe[i + 1], cqe[i + 2], cqe[i + 3]); DRV_LOG(ERR, "\nError wqe:"); @@ -509,8 +509,8 @@ mlx5_aso_cqe_err_handle(struct mlx5_aso_sq *sq) { struct mlx5_aso_cq *cq = &sq->cq; uint32_t idx = cq->cq_ci & ((1 << cq->log_desc_n) - 1); - volatile struct mlx5_err_cqe *cqe = - (volatile struct mlx5_err_cqe *)&cq->cq_obj.cqes[idx]; + volatile struct mlx5_error_cqe *cqe = + (volatile struct mlx5_error_cqe *)&cq->cq_obj.cqes[idx]; cq->errors++; idx = rte_be_to_cpu_16(cqe->wqe_counter) & (1u << sq->log_desc_n); diff --git a/drivers/net/mlx5/mlx5_rx.c b/drivers/net/mlx5/mlx5_rx.c index f241809e08..5e58eb8bc9 100644 --- a/drivers/net/mlx5/mlx5_rx.c +++ b/drivers/net/mlx5/mlx5_rx.c @@ -459,7 +459,7 @@ mlx5_rx_err_handle(struct mlx5_rxq_data *rxq, uint8_t vec, container_of(rxq, struct mlx5_rxq_ctrl, rxq); union { volatile struct mlx5_cqe *cqe; - volatile struct mlx5_err_cqe *err_cqe; + volatile struct mlx5_error_cqe *err_cqe; } u = { .cqe = &(*rxq->cqes)[(rxq->cq_ci - vec) & cqe_mask], }; diff --git a/drivers/net/mlx5/mlx5_tx.c b/drivers/net/mlx5/mlx5_tx.c index 04f80bb9bd..2f48bbc82e 100644 --- a/drivers/net/mlx5/mlx5_tx.c +++ b/drivers/net/mlx5/mlx5_tx.c @@ -55,7 +55,7 @@ tx_recover_qp(struct mlx5_txq_ctrl *txq_ctrl) /* Return 1 if the error CQE is signed otherwise, sign it and return 0. */ static int -check_err_cqe_seen(volatile struct mlx5_err_cqe *err_cqe) +check_err_cqe_seen(volatile struct mlx5_error_cqe *err_cqe) { static const uint8_t magic[] = "seen"; int ret = 1; @@ -83,7 +83,7 @@ check_err_cqe_seen(volatile struct mlx5_err_cqe *err_cqe) */ static int mlx5_tx_error_cqe_handle(struct mlx5_txq_data *__rte_restrict txq, - volatile struct mlx5_err_cqe *err_cqe) + volatile struct mlx5_error_cqe *err_cqe) { if (err_cqe->syndrome != MLX5_CQE_SYNDROME_WR_FLUSH_ERR) { const uint16_t wqe_m = ((1 << txq->wqe_n) - 1); @@ -107,7 +107,7 @@ mlx5_tx_error_cqe_handle(struct mlx5_txq_data *__rte_restrict txq, mlx5_dump_debug_information(name, "MLX5 Error CQ:", (const void *)((uintptr_t) txq->cqes), - sizeof(struct mlx5_cqe) * + sizeof(struct mlx5_error_cqe) * (1 << txq->cqe_n)); mlx5_dump_debug_information(name, "MLX5 Error SQ:", (const void *)((uintptr_t) @@ -206,7 +206,7 @@ mlx5_tx_handle_completion(struct mlx5_txq_data *__rte_restrict txq, */ rte_wmb(); ret = mlx5_tx_error_cqe_handle - (txq, (volatile struct mlx5_err_cqe *)cqe); + (txq, (volatile struct mlx5_error_cqe *)cqe); if (unlikely(ret < 0)) { /* * Some error occurred on queue error -- 2.18.2