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 5152EA0C47; Wed, 11 Aug 2021 16:04:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D41D4411EF; Wed, 11 Aug 2021 16:04:52 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2041.outbound.protection.outlook.com [40.107.93.41]) by mails.dpdk.org (Postfix) with ESMTP id A48F040042 for ; Wed, 11 Aug 2021 16:04:50 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gghUQH/s0iILXeK+NLqz4b7uJKhV0u8lD3OEXvQaZxUgxp/hM1YQFCGd+8vlYSGmB5d3sqjTWVh8yDvceiVmY513s1wuziyhr/zI9y6iJ70ejKcLn4+yD4lekKo2UtjWOsD3/0T2R0msS7fdVRLttVh/KFwYSL+UcMhkcemrvZlQhDn08b8ySfGPja7/JlP/NY/axV3tm/ta9R/PUwJIWR/dqCtxRKyrUFgokz4tqDoqMal2t/oMk6hd0YGFg90+2OtWsTNCbKaQwXhGLeXWXJtzIW5oY8i0QAhGPCMQ69TRJ2erZJWwwZr5V5vsxokFUQYZNzQBbLduFNGB00rNiA== 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=0LXSOTcSiDvBTIy1VcOKz5kkIcr+Jt2M5qhqfwvMEDA=; b=Lu5OUe5IjQ3eCbKrLTVlOxqZ0eKGiiVpY9qt53R+mwmr+NNHM7b+gcYkqRJvpHxPPRuedRxUOBM49G0uaOHgXHN+/cgimp/YiHuO7jPil3AXcWuDn+7Q9SLUOkldro5GUhOkXz4/ouqTlEbaesjFmHU2Ch0EMjyWiMaKEDA4fMJBY+y3ZXrrcBdh4qXv1qpn8+7cOqCnVgvRiU90jGCZgaZGPfhKTdtpchwi8hp8X5zTYwco5ukLn+9ZYlBKtSs/vNJDcJnsYXzZ/g6iF6f7nD/IDWaKBRCYHfbgtpaagAzbGNB7Ce/I94iQKn9jxz4pHObDjb7xkbOyVRWRk41D3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none 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=0LXSOTcSiDvBTIy1VcOKz5kkIcr+Jt2M5qhqfwvMEDA=; b=KJM8dyG1HojjM4yrpXV4u6lMOXcPjtcT+Iwa4nZHzgHuxeC/fI2+45oBfdct/Hcwefyv2w5x84sjPGvHe2G86kcsJDF/6tsA/BVhEpmuJrkEJiZcQvjuW5sHkG90IXJ7X0NpnsF/e3rW+W5iphlJZmmHMYlr8Lg/MDmNWDymAoG3yDj1uL+8oryaek6lJzPlAxEuN5frTzeruiBmgSqaEJxg6+pBOfByKGmISzfm0wBWv+SARXmN+UTO2yykshXqEhHChRyY7x00udp0w0DXUPqWoFVYRiZ/U1igOAyLvm2zXhrYex4cBlSXAD3yWFQnYynWbuhocDVdnDhKJeWS1g== Received: from DM5PR07CA0122.namprd07.prod.outlook.com (2603:10b6:3:13e::12) by MN2PR12MB3374.namprd12.prod.outlook.com (2603:10b6:208:c9::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17; Wed, 11 Aug 2021 14:04:48 +0000 Received: from DM6NAM11FT015.eop-nam11.prod.protection.outlook.com (2603:10b6:3:13e:cafe::6b) by DM5PR07CA0122.outlook.office365.com (2603:10b6:3:13e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.14 via Frontend Transport; Wed, 11 Aug 2021 14:04:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT015.mail.protection.outlook.com (10.13.172.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4415.16 via Frontend Transport; Wed, 11 Aug 2021 14:04:48 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 11 Aug 2021 14:04:46 +0000 From: Xueming Li To: CC: , , Xiaoyun Li Date: Wed, 11 Aug 2021 17:04:04 +0300 Message-ID: <20210811140418.393264-2-xuemingl@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210811140418.393264-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20210811140418.393264-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: aaad929f-3655-463b-9f3d-08d95cd0fb1e X-MS-TrafficTypeDiagnostic: MN2PR12MB3374: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:327; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iHzQdDhhnZFDkNhP9TyxiIw6RemQ4SnBbBBjxvNe/g6DlP9OoTJI79QhOo0WOD5hVZnQbhVu6ScugSBLZF5fRPYc0oX548POTVnVjXc+lWvQBrM2WRetghBlWX0v4lkmrLBznFPN+Kh0V+DGs+XCbOA8+P4EKyF/EXrhUW04kZkuBACCPJe+AgwVjwdUpcDgEeGoH7p5e25tSOpzbbmvcbHXfArblNMQhWdqLl6pt264hx5784sAoRTSoNsCldxVKrVMl58G5EmMRD/U69qWZh5Yw5NkxJhvBLkjmk8vyBCLJROYFToJPAkgJ1u+618wpdEKXcWhJ7KdKuygQKxa/sz+E/aV4mQqETSc2pBkxnubel7IGZ/uupgjdJen/SFJpDxWGLsyvEl+9zJM49jaW2I7pj/KvNa/Bn+tY6DtlgHKj5Yh0SzXfYvGc8cVk72cnYB/7bYk1SlPpxLVOsexISy6LYOortWahqR7qlOcjlVQ5ZfahRz045mhc/+w4KFQkZs7Ue1t9nUdq8UolylX+s/7d9TUeCj5PtvwTxxn5nEw+7Ue2zetkefCCnEfSqyg6x1GWSoG676dASprQeSpYYq2B0W9uUKSP2C1f73YgzJm92Vh4VW6rkJkF0EWyAU0eXHTxaMKypGkzq4Qd36moJzudPamWbP0dhTOgr7YXXpebSe+DeZedpEoJJj2IY4WZSnecGSO1a/YXtg+rHadfZb1I2f+Dfe2W/iWB3XQV9U= X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(2906002)(26005)(16526019)(186003)(70586007)(109986005)(508600001)(336012)(36860700001)(8936002)(7696005)(426003)(70206006)(2616005)(55016002)(5660300002)(6286002)(4326008)(36906005)(54906003)(86362001)(36756003)(316002)(83380400001)(356005)(82310400003)(6666004)(7636003)(1076003)(47076005)(8676002)(4744005)(266003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Aug 2021 14:04:48.3558 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aaad929f-3655-463b-9f3d-08d95cd0fb1e X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT015.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3374 Subject: [dpdk-dev] [PATCH v2 02/15] app/testpmd: dump port and queue info for each packet 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" In case of shared Rx queue, port number of mbufs returned from one rx burst could be different. To support shared Rx queue, this patch dumps mbuf->port and queue for each packet. Signed-off-by: Xueming Li --- app/test-pmd/util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/util.c b/app/test-pmd/util.c index 5dd7157947..1733d5e663 100644 --- a/app/test-pmd/util.c +++ b/app/test-pmd/util.c @@ -100,6 +100,7 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[], struct rte_flow_restore_info info = { 0, }; mb = pkts[i]; + MKDUMPSTR(print_buf, buf_size, cur_len, "port %u, ", mb->port); eth_hdr = rte_pktmbuf_read(mb, 0, sizeof(_eth_hdr), &_eth_hdr); eth_type = RTE_BE_TO_CPU_16(eth_hdr->ether_type); packet_type = mb->packet_type; -- 2.25.1