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 A4DCBA0C4D; Thu, 21 Oct 2021 07:09:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8D1BA41186; Thu, 21 Oct 2021 07:09:56 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2064.outbound.protection.outlook.com [40.107.92.64]) by mails.dpdk.org (Postfix) with ESMTP id 1768940142 for ; Thu, 21 Oct 2021 07:09:55 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dsizxHIhfn67MTNGOy6ZvzMQn4PX41Co61eoiN1o2fEuA/SWA5Ss3p82BSCTBP4x7NCYIHP51XMDKJtk6BJ4LsTw5yx5QiHFpeXYzhZVpSWV9cP0uHuQsKo4ZXjVHwn9VUiC0oBosItBUCPgjFndle1D1yrH69aAL8hu8hNFD6en37CA6N9klrQHdqTwIFc+2Qx2GP0jbPvODglXLUWfrQ6uv6xY3eo3yNFrJ6AszQ7w3/+F04Ug4zgDot1ZBtqSOSRVECRgQiPqTcAnah8aCp+cH0+6basuMtOHaAWyEf5+kDQxZgquJxeGoyCLkSJ1ErolQe73Fo6YwbGO7UBBWg== 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=xB0uSRYwlakfJwwPAU1zYi0i2HewLOOMTlIZPce3s6A=; b=A88CcDVEjZ/i1OFFcj47JT3NO0Mgtd4UMfkaLQYLEa6gzECC3n0rqZgR1Ls2eDyroPuKlSPsDq6F+bbmBXv5OTds5ci/H0vSNtr+0nQh6oQlymKgw/37hKAQhanBiOaCX0/hHSsTOqwcsVnALQ04rX7xtCnwhQdsz0vBtEMWMHgJWfTWf5PyuvL6BxJy0C60DhupppsRUPFkD2N3u7UOSnS2tEa+0P6BWnzSEyPWT3s6tMmWF/CYNwC+empJZ6Ci4XeTqkd2TXPIUdmrl04vzxO6+dCEbgb2xptcdpi57jzy1GglgZNoVq6eLOQLRf4mb+R0f7r21KYgU/68ARRQGQ== 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=xB0uSRYwlakfJwwPAU1zYi0i2HewLOOMTlIZPce3s6A=; b=mBt+PrUW67h9TCjpTTcV49sS2bx144jrU99Hisiy9vtjqkDZ00ybBNi8qfLFeyV/5l3H65eJ35CqWexTTpTb639InYFlWyhgh5Zv9jiIyKI/i0SaClbnvKvKxSC+nkSX9GufKR14ZXi7zkO/oLjf1kYCkInTRa2+3qJ62TBvHJY2DWJIxWxrOa/pBHC6+usfG8nzorK/YLeudZ4Fw0UYvw8fMmkpDnBeuzlgDyezJS5iBQ51z3uuGATSLKjFrxAEfdIzVp5+HuCSOUJD+GHsBTBWFo3uMTw4A+2eHGL7T30gdD5zc1+PaZjKbfbtjsHRUiW8sMQmc/+q2/UMOuHquA== Received: from DM6PR06CA0062.namprd06.prod.outlook.com (2603:10b6:5:54::39) by DM4PR12MB5311.namprd12.prod.outlook.com (2603:10b6:5:39f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.17; Thu, 21 Oct 2021 05:09:53 +0000 Received: from DM6NAM11FT011.eop-nam11.prod.protection.outlook.com (2603:10b6:5:54:cafe::2e) by DM6PR06CA0062.outlook.office365.com (2603:10b6:5:54::39) 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 05:09:53 +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 DM6NAM11FT011.mail.protection.outlook.com (10.13.172.108) 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 05:09:52 +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 05:09:46 +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 13:08:30 +0800 Message-ID: <20211021050832.2599691-6-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211021050832.2599691-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211021050832.2599691-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: 9ed057ba-4dcd-4186-25ac-08d9945103d9 X-MS-TrafficTypeDiagnostic: DM4PR12MB5311: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Exchange-Transport-Forked: True X-MS-Oob-TLC-OOBClassifiers: OLM:243; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yeK33h2ciGb0BE28jALhlGq4acZtGVr2AVdDhG55cMVplPS99p4BF62QM6tsKepzVJ8tb4E87zD1wkJNDG7Rqlg9YmdWVRuYdTAmdrNoWzkELDpay/KD+aNuWObLhFjffbnShiJFwmIAQYITxL3aeaj0RNIK/weNqhIGdnLQUfxB6R0VT4c4tlch9QUW8xMwXbqFZ5CiPLgNdDTuWcylzg6jJQDlqhM12UzE2tFGCqbCZMvLA63qCAo7qY/ZJZvwHqPy9BQNz0Fd3XJrKTjGvW21NhGPNKmGUF7cdN2WX2PTYU+UVQuPqbB1SQEHTrYRyM73bZ1GMOne2Q35fhLUB2vQIKPQjfl3a2BmGiymzbvX2LHHRbY20j0YUswPBIJS3w8qiVGsoS2jo8mdghYpDennb1vGB1JA4v2TQWL2XB9eTv3SRxFYWYd+mkzetb0ftjXnIsnURiZMzvVo+3NaOwdIxp5FQHafVBfZU3bJGijozqvI3L2tytv39bJdDbs3J8MWKcnmWJyCTtrmY/jCxGOQn5Ad2cIKVw9CgMa1kVnNsp6rJq2HoCY5ipWAiPUz6sFLsIUT1hot4srAZETNGHFuKzfc+p5/NeBZ5JiQ2u5ZM6hk6amk1Fl/bEhpWF8wHJShRUcNtz8xM+hQnPRezzh4INapqwZOctBU7PnyKUuwCMPBKJNmbTLqpesuBQQ7GBwfm8fPqcjowSp+GkskUQ== 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)(7696005)(4744005)(336012)(82310400003)(426003)(36756003)(8936002)(2906002)(508600001)(5660300002)(110136005)(4326008)(1076003)(70586007)(70206006)(54906003)(6286002)(26005)(6666004)(55016002)(86362001)(7636003)(8676002)(356005)(36860700001)(2616005)(186003)(316002)(16526019)(47076005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2021 05:09:52.2123 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9ed057ba-4dcd-4186-25ac-08d9945103d9 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: DM6NAM11FT011.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5311 Subject: [dpdk-dev] [PATCH v12 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, polling any member port returns mbufs for all members. This patch dumps mbuf->port for each packet. 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