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 2569545B37 for ; Mon, 14 Oct 2024 10:05:42 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1D8C14060B; Mon, 14 Oct 2024 10:05:42 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2051.outbound.protection.outlook.com [40.107.223.51]) by mails.dpdk.org (Postfix) with ESMTP id 3CD0E402F1; Mon, 14 Oct 2024 10:05:39 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=V3ss3AAkbR6kBD55wonW8RSfqq+0AU2yhazJjJXx2saxvglCOf0kNDsPoLbVRx/qepl9c21/qOoCUe6YnghHuSdeW/PcP/uZ2Qh8rLj0JaUcLgSTssM0O9FCwpq3TCKqPrkjY0SqPAsiX6gKNNnTPYj/PgiH9gVmR0kEfyEF6SE7+bi8bUI8A26p7kVHMmM1U1YR8jHRYaFzxlKxpePoGMEaj1htsJsLW/HxzXbtj1cbk6kp5aAJEguqNpwZLpEt6EHSieXu+E+jK01C91cDiGHRf+qRTwh9bzBRX1nfAQAs66ceROuaxpyh7pSy8hXav8xsUb0nOozk8+QrH9QIkw== 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=EdGBBZZ7LjffI9NvSdk7Trzsc6hKUyLR/J+CdT8H1Gk=; b=qHiM67rBNAO40to8l2jeHBldlGiEnJrRJkRpIL/AS33wiM/Uel2VpRkmR7WvEETDMsAB23Y0apgEZ3ZwJzv2dPzqt0EZQNXHZYSXrjq3Fwf/KgQNG5v5hDAyrMkFGTqHJjjS2ClccZdIuZfIp4sZDJk3TwNCWOFagae4mDprNSJKWp9VjD3fpP5i1tAGpnOzbwQ4epflTTOZW4NfDu40XHxKVRRcM+E62eDhQuI0KgKP0L8OPorgTSs4o8QPoqhWBc4+JayZjYKI3iGJy5BeY6xT7QX/Ded132KLoSOT4Sm/Y8qCvBYPy8UnttjVt4uCx47fMGryWiEh2m2UfmkH+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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=EdGBBZZ7LjffI9NvSdk7Trzsc6hKUyLR/J+CdT8H1Gk=; b=mLykhZP4SXuDzBez2cVQgVJM/tlC7ja3Zxul4u4kkYX9Vs+2Le9OUvCNhjjABpgMhhu71hRY2Bqy0b2H0OPCkmyey7lF1HB+WtrKOFz7NwmuFxpBnfQWpMWOfsylfSq9rPBcvez/knDvjqt2cmIg9oZsQqRrAtM11DuiJz3mxscNJqCTSEn3C3eDC5kdU24h2DgDHG8gf/sN1XL3yQ8CXn4yCyZ7TBOl67Ro6FcvxE6Cn6CVk1qxdKQC9olvlFn8lWjFZAPESIqtwmStkkFeJe5bwVCKixJjGjn8oIe986UcZ0sb/BXmZww7nOVqyv0nBRbnyyEiLguJGXR3RpPlNA== Received: from SJ0PR13CA0006.namprd13.prod.outlook.com (2603:10b6:a03:2c0::11) by DM4PR12MB7623.namprd12.prod.outlook.com (2603:10b6:8:108::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.26; Mon, 14 Oct 2024 08:05:34 +0000 Received: from SJ5PEPF000001F5.namprd05.prod.outlook.com (2603:10b6:a03:2c0:cafe::f) by SJ0PR13CA0006.outlook.office365.com (2603:10b6:a03:2c0::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.16 via Frontend Transport; Mon, 14 Oct 2024 08:05:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by SJ5PEPF000001F5.mail.protection.outlook.com (10.167.242.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.13 via Frontend Transport; Mon, 14 Oct 2024 08:05:34 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 14 Oct 2024 01:05:22 -0700 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.1544.4; Mon, 14 Oct 2024 01:05:19 -0700 From: Viacheslav Ovsiienko To: CC: , , , , Subject: [PATCH v2 1/4] net/mlx5/tools: fix trace dump multiple burst completions Date: Mon, 14 Oct 2024 11:04:31 +0300 Message-ID: <20241014080434.1211629-2-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241014080434.1211629-1-viacheslavo@nvidia.com> References: <20241009114028.973284-1-viacheslavo@nvidia.com> <20241014080434.1211629-1-viacheslavo@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ5PEPF000001F5:EE_|DM4PR12MB7623:EE_ X-MS-Office365-Filtering-Correlation-Id: 7bf2126b-3f35-4653-8657-08dcec26faf5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|36860700013|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?r3A8F5yygPIletfP5+vWfYVwWoEcqP+Q4pcHBFj4578m3ofDln7qEC23zVcD?= =?us-ascii?Q?YMxoc8mqcSEaS+AtKepPJ6n0GqX0ibX3kc49Al93RuTJ5pQoSITYWEe89OVC?= =?us-ascii?Q?EE6QJSC9cWW5uQA0BXETBtqchxqrv3gpkXRQs+dOkyTRIQCJ4icdxFD/6R8W?= =?us-ascii?Q?B+0MOwP0+z5Jji8NB/K/QrziAU7Y12UA0dD72WMjvu+ZoacJvb6EVA9MSn8W?= =?us-ascii?Q?2tw1cOXEeivLcaeUk0KmVq42NUAvePyblkydXle+2SrL8iJ8CnwFq+33Es0W?= =?us-ascii?Q?68GPB603NBm4ENNGoEdUVvPp32C/x3nvfBAN79lDLlH/tR1lLIbZvsypeZ3+?= =?us-ascii?Q?x00TRr2VWZzpy9WXJp+xhxAmU4Et4yJSjREtdATVqtX6B+ID7+FByIFg8/k7?= =?us-ascii?Q?dMIf8S6WTJrZ0/Rvtn6E4+MoC+EZzchxitAOV6Jq0OQi/+lLuiWARoW1CyK1?= =?us-ascii?Q?QaZ31jjRyFKLr57KOW3X8lcTUiPgrMXA18mkVlA5tBWKUp9r9Wk1suGauoE2?= =?us-ascii?Q?dVn0enFHaSgpwMTm9F7B244AP15kXgu8g0mOwkxxC2e5X+3yDh+QHSr1wXf6?= =?us-ascii?Q?wKFs4HbhHvVMdO9uJOsYiq5cEHOEgZ8pu5hzKAkE4Z46NlLF1TkFicp22KcK?= =?us-ascii?Q?INvmh6WvO8IwwzmWitrx+BCCwkt9Cg0Ay+TOfUwHX53RTl6cGS6KCpGlX1Gu?= =?us-ascii?Q?TH63lotLH7SGjrqszY2PgjyuL+0+TR0gYEBxvRz6Dtvg47EgtGutImNT//OW?= =?us-ascii?Q?BKyfypjKNDUwSan2urtq1D1h9uGbY68H6vPmWOQZ7GVhwVRVpL4xk8dQyX/w?= =?us-ascii?Q?BhHTdshMkKY3BNi+qwMOfNjvGXtYFJxws2H9I0IO2xm7UzidVu/OFGgGuJFr?= =?us-ascii?Q?P5Evvnop9rbXWQSFeNjfzfM+3l9daGcxTeIuYmiht+cVtCpwEQkyl7QgU0ey?= =?us-ascii?Q?f/gyVQzaIqlzzMf/3sf7iRZdJ9COy6fnNrYopBCJyD8BFpa1a/wzCpDsZjoX?= =?us-ascii?Q?PyVqGQFOk2IKQ3Mj5MV4xnv6n/fbE38WvdHQIMZrZIstITXD/2u2uAATBWmj?= =?us-ascii?Q?g4LuF6QxjIvgpmXUZnjf6vO6wZN5uvOOYXDtPdnHLrzk0mMjAZ0nB3evvip6?= =?us-ascii?Q?P6wwhP51fEeSanRw/W+XcC3WVtGPe3f68ZHtUBsAthwRXwxUGrim+6kKHwDD?= =?us-ascii?Q?+0/6pzbrBhDR80+e0/lSAlCnQHPMEklYNhsgQRBPYIF0su2ieN753nm/P3YM?= =?us-ascii?Q?yrpwk3PvdULnZRqnl/dGabYcizl0jO8949NzYUWU/l9F5KISS5Kt3BjDyPSw?= =?us-ascii?Q?3rnGR3poqnhVeZk/AbsRY8ay1m5yRNGN/ACBPblmB972/lRk7vqa0O3TENAu?= =?us-ascii?Q?u4qcBj3RNP2i4VyQnE25HONJZ2Tj?= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230040)(82310400026)(36860700013)(376014)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2024 08:05:34.2918 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7bf2126b-3f35-4653-8657-08dcec26faf5 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.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SJ5PEPF000001F5.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB7623 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org In case if there were multiple bursts completed in the single completion the first only burst was moved to the done list. The situation is not typical, because usually tracing was used for scheduled traffic debugging and for this case each burst had its own completion requested, and there were no completions with multiple bursts. Fixes: 9725191a7e14 ("net/mlx5: add Tx datapath trace analyzing script") Cc: stable@dpdk.org Signed-off-by: Viacheslav Ovsiienko Acked-by: Dariusz Sosnowski --- drivers/net/mlx5/tools/mlx5_trace.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/tools/mlx5_trace.py b/drivers/net/mlx5/tools/mlx5_trace.py index 8c1fd0a350..67461520a9 100755 --- a/drivers/net/mlx5/tools/mlx5_trace.py +++ b/drivers/net/mlx5/tools/mlx5_trace.py @@ -258,13 +258,14 @@ def do_tx_complete(msg, trace): if burst.comp(wqe_id, wqe_ts) == 0: break rmv += 1 - # mode completed burst to done list + # move completed burst(s) to done list if rmv != 0: idx = 0 while idx < rmv: + burst = queue.wait_burst[idx] queue.done_burst.append(burst) idx += 1 - del queue.wait_burst[0:rmv] + queue.wait_burst = queue.wait_burst[rmv:] def do_tx(msg, trace): -- 2.34.1