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 87063A0C4E; Tue, 19 Oct 2021 10:18:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1E51E410FE; Tue, 19 Oct 2021 10:18:34 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam07on2082.outbound.protection.outlook.com [40.107.95.82]) by mails.dpdk.org (Postfix) with ESMTP id E9712410FC for ; Tue, 19 Oct 2021 10:18:32 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GL1ujDh2kfbsBTVRA5A2Fby/qzcfXc9nC4zMv9Ajt+u6IjXuL7I7RoFVTuzi79DACrZT6zmP4s6q65TIVG6qK1gQLCwa5zgwXs/hWm/kFRM/XqJOpUeX+z/FqB8xfyRD1jC3j/jYETtE5DRqABz1YjbfrPusLITHIX7YECzwfgF4O3v05IqMlWVtBDrWpPJQtcsbohFLKdFv4n+fC7+vENQ2gCSi9NpC6Ei2gNnC0v6XyYluc39M186brrgGl0V1fg4MJXSXo7BlYIoPt02Z6uhUgr0vOiXAelk/lkT1ymaQMUoi+1Gd2DInhpON+A3PWrX2uajXyUD/8Uxkc1HGRQ== 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=WMmdQKxUkb1lg/PnhuxMHrL9QxXzkfBXCCV5SII83A4=; b=e3c0Vg8FCfm6juyT2AmAiRVshWpj3QetTIABGjUlilrbQDAcr5IJJfb1taxwzdC1/NLJpXNtnY4FajbRAKMrSluAvSpc9452XpGN/3iSa8lhOuDJidSKpgKYera2+Cw4D5zeeHZ3Etc8XAXREJtQcqvnQF7UGv1iFUogiueZ0/OIQdOYmqahPwEBg7V6M9ZWGWJ6MTZ2Oy2wPgpVoxAYscPi02Ke1DZfbJPYXJtqxRy87Q5yrFj9Zw5Jz+6w5eP+xP2Z6mNMmPyejMfR4zuQLGD9PyiXJHIKSDMvYE41PRHDUGvLO1pw3T4jnGgHgglqE1Cd2ibg4oupaJSreRfPKA== 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=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=WMmdQKxUkb1lg/PnhuxMHrL9QxXzkfBXCCV5SII83A4=; b=gzAiB/HgBCHniUMTi7h752g1mAMZtmptF/l8/wBtE0pgyRpgyxU60AjN+0XzBn8bcUUrffaMcbN2BLKtMs+YASkQ2+ajpcsVZTycKQuK6ns/T0I2/tmtdZMAH2bWjylqYIDpS/184ZUxQH1xaZmgkwWC15If+M0/J/1KGuIf2JDbxnMWbWoqN4UbuyzqcFOcl7FP+AVF0E1YbZkeEkUsHnPP51eBWH7fEcXLIzW7iyXKJ92gh+K18qYZsM6OxrcN43SRc8QY+ZsJVxhQJRU9LcaOaVZiSUGc+NLp90h7jbHDuKm5xrGrdQhLljGfc+oEdMf5r5mVJb4DmfoTl7ys8g== Received: from DM5PR07CA0086.namprd07.prod.outlook.com (2603:10b6:4:ae::15) by BN6PR12MB1524.namprd12.prod.outlook.com (2603:10b6:405:4::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.18; Tue, 19 Oct 2021 08:18:30 +0000 Received: from DM6NAM11FT031.eop-nam11.prod.protection.outlook.com (2603:10b6:4:ae:cafe::6) by DM5PR07CA0086.outlook.office365.com (2603:10b6:4:ae::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Tue, 19 Oct 2021 08:18:24 +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 DM6NAM11FT031.mail.protection.outlook.com (10.13.172.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4608.15 via Frontend Transport; Tue, 19 Oct 2021 08:18:23 +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; Tue, 19 Oct 2021 08:18:10 +0000 From: Xueming Li To: , Zhang Yuying CC: , Jerin Jacob , Ferruh Yigit , Andrew Rybchenko , Viacheslav Ovsiienko , Thomas Monjalon , Lior Margalit , "Ananyev Konstantin" , Ajit Khaparde , Xiaoyun Li Date: Tue, 19 Oct 2021 16:17:36 +0800 Message-ID: <20211019081738.2165150-5-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211019081738.2165150-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211019081738.2165150-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: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c6c3e841-1453-41d1-d733-08d992d90510 X-MS-TrafficTypeDiagnostic: BN6PR12MB1524: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: 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: sk/NAYajZDulok9qbfHcsjyrHIGH/VzqHYmP7IvtO7Y5xhQA3UJB/kcWA5N72sep4NHyOuy2q89A6jsFJIXBa61w70n/1XZJKE1+Y6jRsFHozU2727uv5d3/lWr4sHa39qtP05XhIfRPN/HHzRVZL3HXmfIFsDL+poUM4krmAvrHGJjOQFt+J32/RXx8nEFqe/Nu4hCR2VZ6JeaYzuucx3Ysq5rkuelLFOd8+6rdrkVEpeXTsYGgm49xl/B0XBeuJWbZKOfm14jzBYt/jsQtHtUYBZmlJD1MtZ6/+jFa8EPRORfDq8VV6XTklGF0Qlae45c5i05eTNka+dAWskHM1MJZUUr2mkN66sP0KR1vLrKa6YF/8/0FdtGcw1czsGBDDpWZE0se/xX2WiOSZCtsvZLVnBX5LzHRr6AeZaRnZwHFpx1ysPeAq3OoEE5qoogUvTNCDtR/pB9Fj4pj1t/svaeKLtIpRuz6Zoy2K0OI8s4+R4+6jURM1CT7uF+yfxWiV3yM0vkZK6ysk8AT/fK5PuaNkrUYLGYWeFE8IIgNtD2ieG1ouG5lm6r48a9Lls0xpVfnxuJb3Chi0iJqg/zIjFzHoJCzC7WTKn9XmrjjsESoKPHvHxNUv+IgS9my38J0oXTjCRkdvG5AL0Vn5IR8SjJmbEUfomTAPLMfok1cQGpvGhNQzQ3CSSNXXLOoIWDjvCYjp2TLyTcu+NLrMftG2g== 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)(26005)(16526019)(70586007)(426003)(186003)(36860700001)(6286002)(7696005)(36756003)(5660300002)(8936002)(2616005)(55016002)(8676002)(4326008)(2906002)(336012)(6666004)(4744005)(316002)(70206006)(47076005)(110136005)(7636003)(508600001)(83380400001)(54906003)(1076003)(86362001)(356005)(82310400003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2021 08:18:23.4167 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c6c3e841-1453-41d1-d733-08d992d90510 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: DM6NAM11FT031.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1524 Subject: [dpdk-dev] [PATCH v9 4/6] 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 --- 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 51506e49404..e98f136d5ed 100644 --- a/app/test-pmd/util.c +++ b/app/test-pmd/util.c @@ -100,6 +100,9 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[], struct rte_flow_restore_info info = { 0, }; 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