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 6E649A0C46; Fri, 17 Sep 2021 10:02:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF93B410F6; Fri, 17 Sep 2021 10:02:30 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2061.outbound.protection.outlook.com [40.107.236.61]) by mails.dpdk.org (Postfix) with ESMTP id E42AD410F5 for ; Fri, 17 Sep 2021 10:02:28 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eIw4taf+8EWeUBBLyvNkReyiKxIcW/NllcPCgnGjXj4xxha8YN+rnmaGC/pW0SJP4Ube1c57rvEuaUUseiJw1HRU7DQEDDxwcmRQG/78BbLc7rPVsg/upOlpYKSrUsZJ1aTYq7BEjpBe1k2eVPyL1EvxOCBu/3H+xBrZ97NgV3e0aZsbAdK12c+3qojfjhKoltIpB9mQH4/3nCCwe1UEQKXknI5gwEJjhRxS6R0+kBPIoyRCt4smuLZj7BGVjy7/oDJtsUrs6moUPabDvDBMIX+f6qZYfsS+w6xffgNTgIowpeL9QDlwNTUODoMuyCH6z8QQbXTlyMXKL/XMN+DhlQ== 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; bh=UKsvJ3pZU56zQJZUn4w48RPTqMNaJq9oXUVNublu8No=; b=lg0UqiGILyKbIYa1WTNbo4UCrFCZPu3Pt2TuV52a/lFVUILcHYVaXqAalyHxeaWOABaI6Hj2puOjPz+C7koYiSLJ7g5Bw8c+Xbd4mjpnujHeAwVzP+66Og/95/0mVcugDH+jxbO6kk4ALERQkPr/noPIrxKIg007NZYvWhzDPtJERwssjmtDJdVhCKMGwAkIgbdrNQJVyELfxlifeNKBQOmhu0+CiEIQDcjSprUc6hkjb0K7hfeJ6jBJxGiqQHlSZK6z0wbX/h0i8vm6K68Y93G9J2DEmk4hl1eCwi05RZQZRrRapxE1b68sIlE4aqRxeM67KR+feIFCFSZLX/4+uA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.32) smtp.rcpttodomain=dpdk.org 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=UKsvJ3pZU56zQJZUn4w48RPTqMNaJq9oXUVNublu8No=; b=B/VXBClIKhD+s8GdTw1szq+2JAi7yiNxf+ykZIjFHrB5WbpjBRHkfHkKqyv3NZUJYslHFYxvdG9xeB7mgY2D+qUrAJoty1NT8Y8nwgmSxXcgHpNvMl0E9hZ9olsSzidxZiYTHgmh01QaNcwdICrv96a9Rdl75sU51re+7LdOmQ+SxR6Y6Va+EtXjchkBp0V1Pji2A7HwEuuZwjBrDOA3hljs7SChb19ZsNSsqYICs5HrfwjL0kEnG52upsGPmpcrNl5eC9TP5QhUVxOlI1KNFo9/8Pq9EsTVWruTVq2wIpPDl9Vl1J5DKy4H/SkKtb55AiKXte+uo0c1Vf6ULmvH8Q== Received: from DM6PR03CA0095.namprd03.prod.outlook.com (2603:10b6:5:333::28) by CH0PR12MB5187.namprd12.prod.outlook.com (2603:10b6:610:ba::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 17 Sep 2021 08:02:26 +0000 Received: from DM6NAM11FT060.eop-nam11.prod.protection.outlook.com (2603:10b6:5:333:cafe::90) by DM6PR03CA0095.outlook.office365.com (2603:10b6:5:333::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14 via Frontend Transport; Fri, 17 Sep 2021 08:02:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.32) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.32 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.32; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.32) by DM6NAM11FT060.mail.protection.outlook.com (10.13.173.63) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4523.14 via Frontend Transport; Fri, 17 Sep 2021 08:02:26 +0000 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Fri, 17 Sep 2021 01:02:25 -0700 Received: from nvidia.com (172.20.187.5) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Fri, 17 Sep 2021 08:02:23 +0000 From: Xueming Li To: CC: , Jerin Jacob , Ferruh Yigit , Andrew Rybchenko , Viacheslav Ovsiienko , Thomas Monjalon , Lior Margalit , Xiaoyun Li Date: Fri, 17 Sep 2021 16:01:16 +0800 Message-ID: <20210917080121.329373-4-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210917080121.329373-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20210917080121.329373-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: HQMAIL101.nvidia.com (172.20.187.10) To DRHQMAIL107.nvidia.com (10.27.9.16) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1dd19b91-b390-44b7-2263-08d979b17d48 X-MS-TrafficTypeDiagnostic: CH0PR12MB5187: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr 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: zfoxjvcVsy34SLlJsANpIcnglqlagIX0ffZjZ1IQPAJWACHeDRnvPiqkq2IAEbKlHIYIwBOrePRq7+rwwVogJge7YDncbfbNT1lrEkT4blou/xBZC5pNXpK4xrf6KmMJyqf4N7H+1P3My9TZkH01eREY9cGWqA1gL0EDKpxAHapsJDyteQHEQBagrfXH981NYpJmA41Fdxz/R2OYMZlIub39Ay7mrNfGnEd9OJ7paQkWj/vNKi2WjkMjJ1wGyfH+0e6Y/3MBvQsRBma1P8vaEsbFTv5Xs6me2pvsWQeQKQiN1OJ6LUkt1aj2b30JyoNglKrOJGb0bVsy19qECYvBXlxtha9X2pm98tqbfk72wcHOY7Br8kdhixNWNGNGUdRgqmvOP5Q/CpCQJhr2KP6zcwsl10aGcikuVZIeScdfJMBSCVz3LhhOJQfSqXK4CmWeu8C1hbYxbTVwwfEKnVjDU0pjJrDR/vw89oW2x6B3mOXqthVSb+osc7GeaTlkGYvZbGw5KAT5qdCtpnAjDSTz4qPm/7l+IEvaH+p5KAki+fOLW3TlIzjehnTH10+RADkZF6DmptWJExUZMeHxgcnQ6KQHJcjd/isNZ+Y7tNJFwPgphusl3wSbXX3Pf+Oh1IuuGLkNfqJvopxpdpMal4p9ekpDfyWXnPOAX0wzmghZW9xBTwZo7D/svX4XKWksgBoIDMOoslQFImxpYyq5MvVy9A== X-Forefront-Antispam-Report: CIP:216.228.112.32; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid01.nvidia.com; CAT:NONE; SFS:(4636009)(396003)(346002)(136003)(376002)(39860400002)(36840700001)(46966006)(47076005)(82310400003)(55016002)(426003)(336012)(16526019)(4744005)(26005)(70586007)(1076003)(70206006)(54906003)(186003)(36756003)(83380400001)(86362001)(6916009)(478600001)(316002)(7636003)(6286002)(7696005)(356005)(6666004)(5660300002)(2616005)(4326008)(82740400003)(8936002)(8676002)(36860700001)(2906002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2021 08:02:26.6198 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1dd19b91-b390-44b7-2263-08d979b17d48 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.32]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT060.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5187 Subject: [dpdk-dev] [PATCH v3 3/8] 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 14a9a251fb..b85fbf75a5 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.33.0