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 EF014A0C4B; Thu, 21 Oct 2021 12:42:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD298411E7; Thu, 21 Oct 2021 12:42:47 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2056.outbound.protection.outlook.com [40.107.237.56]) by mails.dpdk.org (Postfix) with ESMTP id 099334116A for ; Thu, 21 Oct 2021 12:42:47 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dbyGINCfSh9tpE9DD2ynEW17+LDGORgBx2GfQ92C/RhwV4T9Gvb3q0sOj4LgC5YMXnjnFy5VmmXx57ScmApmCAd4rO/eaVbgF7dtqmOLKGk6wDG8BIucrp6B5IF6WwI+yJRP2qPbWvdfSTVqQ/w3kfLvvDvJkAyF+FUI4P5UQspwzftCSrp/0mcLwh3h4lYeNXX/PQyt4r1h1wDNLAYNstlIRoTD26WLnowwoh7vjVXsagfzBgyi2Zi8Vl/IhhTorjA1TgAQCfEVsrWSvpcstvZGjNTDSZtYSNELOqVjS6pjo79TYfzrhI9yB9pv72LA/YTCij5w1mGDSSe8RiaKLg== 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=x/uTa0LB5IgPZfSQDpPA23fhHlTiImAh5OEes9Cj4wA=; b=AGOmzNYzy7pKnti/jO6rP2GDNIuLhk2pAbMYwIhcEY0oSQ2th/iK7A/VpYpB8qnEKi3Ta6fxDtKaLyyY+AIjI8jzDFfbOav/V8HmhFun4qxOhUdoNwjAKt1QSQ/1jf35GAWGWEvsNOCCRq1ii4XS6HHZLWPXA648csz0pa5nb+Ot1MJSsvmyqfzaSUSd0aWmlQcR5kC4JlEhF+aYDCfTfaX49Kaj3ht7cTEvW7Q2GdtIC63Zt0B8pXfjlyUWDAUOnIxmvM+F+yfQP9j7OHv9AjDVZ464ucfnoVJuEQHD4eFo5xgqHirUfGSp48p80bJleBvQJFxNjWI83rJFsm605A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine 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=x/uTa0LB5IgPZfSQDpPA23fhHlTiImAh5OEes9Cj4wA=; b=h0L7fruAoMsyLMgM6Vh/CoaA0T012PkjX05qmIX4YL3EihBYzpMAfONcnNMiPIJuYSsrDYfPcpX+AwvXkXa6mVoFcLXYUvHlFQGIKyqtjCW9ClK6LOoDeS0GEl6yOAMzLIupy3x6hFlZCdObjqD5T/fXOH+IY7JxyFAOSgBXVrKIpOra0wwVCu4ggZDHnXVJaWKDOuX4VUM2GRBycf9cSsR8VF0xmYwru/55vMTqv182nR3qMAs9PlP8CJjt/TcPoiihWiQw5Ok/J6sniv2nSJdaYBZX/UEUd8rthugnxd5HE6ihOfKGr/plPC0qaPEw1r6XrySelW11IqJerN6n/Q== Received: from BN9PR03CA0951.namprd03.prod.outlook.com (2603:10b6:408:108::26) by MN2PR12MB3775.namprd12.prod.outlook.com (2603:10b6:208:159::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Thu, 21 Oct 2021 10:42:43 +0000 Received: from BN8NAM11FT032.eop-nam11.prod.protection.outlook.com (2603:10b6:408:108:cafe::f7) by BN9PR03CA0951.outlook.office365.com (2603:10b6:408:108::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16 via Frontend Transport; Thu, 21 Oct 2021 10:42:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; 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 BN8NAM11FT032.mail.protection.outlook.com (10.13.177.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4628.16 via Frontend Transport; Thu, 21 Oct 2021 10:42:42 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 21 Oct 2021 10:42:37 +0000 From: Xueming Li To: , Zhang Yuying , Li Xiaoyun CC: , Jerin Jacob , Ferruh Yigit , Andrew Rybchenko , Viacheslav Ovsiienko , Thomas Monjalon , Lior Margalit , "Ananyev Konstantin" , Ajit Khaparde Date: Thu, 21 Oct 2021 18:41:40 +0800 Message-ID: <20211021104142.2649060-6-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211021104142.2649060-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211021104142.2649060-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 75f74dd3-0665-4199-1af4-08d9947f831a X-MS-TrafficTypeDiagnostic: MN2PR12MB3775: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1468; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qFvqVM5UsPiNbZSIlU/DQFeTLxyHNUXeATBp/udjQfvLRRQsNceKeHQeWfeTmlirqwdQaOqIX42A9TWpcPmkdmV9GSDF0o48jYypKOrhoUIRbyflnGBHLlTu/SMkSAbGw/S18TnJywfihNcHCr+6NlHZWNgpewwEaA3hJLwVL2YN9w4ffUmwZztsYS2f0I8qU/lMvu5mDx2WNHeYawBxnSrtUD1CoUFJuq6BzZmsxCtR6nPPxeYcwqgn/A3J/PpgxHhnt16E8Bcd5yd+Bwj4yycvlZxEkvlQ2fQ7JyPDZFY1IWxwFmDX0zdL9SzGgX7zo7rnFCCwswrqdSbVJ0VwSkLvZS41IG+WV4Bpqd6nHe/MdruuHRExoOV91rip1bjndEt8g78Cf7rltH4blt8PrTgAILncJzEQCan3FoU9riV11Wc+e2n4f9Eri++0wjvnFawyPTsT5KmITY9PU6nNRQbfUBrqzgkMurHtHmm0U38OsasE68AJ9boRbnrr9vpcCRhRfrxfOTRIliGpYNP0Y+/9zJ3popxmMHBZJzeYc/VzQJzANYOP73A2vnifM2R9lwPE2e5GX0petbk9nLiens8OcuMrvAT36tDAYb4l4tyl+J2olijbFdyVw/ey1KixCejDEC5i2YmbmkE8MUBjLxn7XZwEj92+68tv98H741BErCQi9SCxz2r+vFlfn2ZQVaAgxCn8zYVpjs0ZrMu17A== 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)(36840700001)(46966006)(336012)(316002)(426003)(186003)(16526019)(36906005)(5660300002)(47076005)(6666004)(36756003)(82310400003)(2616005)(70586007)(55016002)(8676002)(36860700001)(86362001)(70206006)(8936002)(26005)(2906002)(7696005)(4326008)(4744005)(1076003)(356005)(6286002)(508600001)(7636003)(110136005)(54906003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2021 10:42:42.6002 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 75f74dd3-0665-4199-1af4-08d9947f831a 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: BN8NAM11FT032.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3775 Subject: [dpdk-dev] [PATCH v13 5/7] app/testpmd: dump port info for shared Rx queue 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, source port mbuf from polling result isn't the Rx port of forwarding stream. To provide original port ID, this patch dumps mbuf->port for each packet in verbose mode if shared Rx queue enabled. Signed-off-by: Xueming Li Acked-by: Xiaoyun Li --- app/test-pmd/util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/util.c b/app/test-pmd/util.c index 26dc0c86406..f712f687287 100644 --- a/app/test-pmd/util.c +++ b/app/test-pmd/util.c @@ -101,6 +101,9 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[], struct rte_port *port = &ports[port_id]; mb = pkts[i]; + if (rxq_share > 0) + 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.33.0