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 70C1DA0C43; Mon, 18 Oct 2021 15:01:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B613410F7; Mon, 18 Oct 2021 15:00:51 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2041.outbound.protection.outlook.com [40.107.223.41]) by mails.dpdk.org (Postfix) with ESMTP id A8A80410F8 for ; Mon, 18 Oct 2021 15:00:49 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g3a1vifczgwnDKqCGTSLRwK1oAVobZdsvZAwgSuck49ZryqY0TlYkTo1tUmM+6CpU1X+7qf+z3stCVljLvr4qE6QHuhZPyji+kO7ASK+Uv4V6ifXmBHFtZYXdQX9hzZp+Lie7kicSV+746rHkyKpONfFsnBo9FuMqhWNTsKW5N08hbCwt5R70hJIbAtFCkppqcVJcA8Pw4BMrKnAHWS4TVJSG5xOO/pRE1eY72++RU7SH8yTJ8dKcvhQAyXG0VnkfsGzDB/SWqDQtN4omCHvf/y2m5LEFEmDgtvmsvruw+gA2HCaMTmxjfSiPbO9m1BeCoBUBD0+WJByqplHi1dmUw== 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=C7hlUBTVRw6ldZoQgczPFWdrz2b3jtIBhPWurTOxSsz5xpMArbzsAJ68VS0fDcZlwVPfItVjwlENemd/4pRGgIqfOCK3D17w4Ky+JCup6r9RpP/lwcWWsgA6cQlOhnssUIkWI5nMP2tRYiXUNJcdn8mvYu/ZPAGuQKtC8wQWB2IjwbHzTYDbr2fd+Kf51whFc+MXRWMT9D914sJhCQYHqUvcrK0xkNvrMJ0uBbhrYPXyylqLimJKefsAo6LjO9wzbPfibRERtRflFkSDI5khyFBX2JR8BrK3I/Vr85jgxjExqTMQ/gjNDw6tz9I4MRYfokw65ncgVC00sw9y0u8VHA== 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=WMmdQKxUkb1lg/PnhuxMHrL9QxXzkfBXCCV5SII83A4=; b=gJAIBnzT3+7PH92cRbBm0dEtISkBp2IB+tZghv5CRinhOwpSj6vVn8RBpZVRsDdT6DQShfW0lfTH1bZ89Z7oAV4soJWRmHEHzfO9wmymRdcL247YJQEn/eYBRyjgd4UZy2GiHGvnsn+nqxCdMbzjHH6UmiLhJNsYQ+yKrMPqM6+oThnaNor5i91pNHpV+zGSy0bEpvrsZB0nn5pnFjgY9G//B3gJUpo/l9d3OCPZ45IgfDJy9YJQP0CpNaQZVeBkJZfsXkIyNO9MFp3tVabTlKVYx87a/JiDkO2xh934m1/IEHE0sHY68ULq9yftjQFEjEpSfF4Su8d7/rSHW/1E7Q== Received: from MWHPR18CA0032.namprd18.prod.outlook.com (2603:10b6:320:31::18) by BYAPR12MB2710.namprd12.prod.outlook.com (2603:10b6:a03:68::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15; Mon, 18 Oct 2021 13:00:48 +0000 Received: from CO1NAM11FT019.eop-nam11.prod.protection.outlook.com (2603:10b6:320:31:cafe::e) by MWHPR18CA0032.outlook.office365.com (2603:10b6:320:31::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Mon, 18 Oct 2021 13:00:48 +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 CO1NAM11FT019.mail.protection.outlook.com (10.13.175.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4608.15 via Frontend Transport; Mon, 18 Oct 2021 13:00:47 +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; Mon, 18 Oct 2021 13:00:31 +0000 From: Xueming Li To: CC: , Jerin Jacob , Ferruh Yigit , Andrew Rybchenko , Viacheslav Ovsiienko , Thomas Monjalon , Lior Margalit , "Ananyev Konstantin" , Xiaoyun Li Date: Mon, 18 Oct 2021 20:59:40 +0800 Message-ID: <20211018125942.2067353-5-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211018125942.2067353-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211018125942.2067353-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: 09634e72-2048-4ae4-6260-08d992374de1 X-MS-TrafficTypeDiagnostic: BYAPR12MB2710: 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: WcikEo4V1hecQUfVs+6L08b9CCCr5/7ELN9Opxf4gfaEv1ukXyxOi/iqCEI2ce6hnhgaFVCq6+6WBq3R6OME+SV62SMnA2z2yyipP2aQDkOBxPFLvc+iRxC74PpjIxWg90PoFPivWeorMEfAdeo4lwDalGzDCBjk8JEzDErEAkCgdW6gjdIqPMARWR98AJeANCUH0NmQKpRHEnXpf/+50Lu7icr6fCqGkewpebDsprpZAqNlyh5w2sEdkJwMGUElHhTo+LZ4YaHJnvz3gATQLDW6XPNUlSk0lkxCR4loMr25FNEzhuZ9eT1Xbw8/kFc/eM3cxV8v+XF9evXjoX5cIHZZgay+HBctJpwuN4O/DNicLJTzpVY/gefM+IClU1fs3h+EBrCIevN7UUZ5Wt2PR0g3TiLrt3+dMX5Rrq8TWoyq1V1cinPNAVrmt2h5uQ3LySAQopw7WFp3+w4LyV0c4gKm5tQvdLEgNScloydYVzQyCcvxv5f6ZraKjzCZyRY8B8GiY1fdS+cHbxx0meFrJQ6BT3gqCbTJ6fRKLAlU1ifzwMTz60sTtVekwjRXffsGVK6kij6l0WRIqBMRIj7N45kiC207jaxQTCd+Pr2jFs1TangJdGZEAPyChi+qpL+0C07R8dWYkXmaDyy3gvIuYMrQTRcn0pc7E0xyv82PgUJPuO8GWCa5Ej+/544x8xv5k3oriG8FzYkO0YoQdEmI1g== 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)(426003)(2616005)(4744005)(36756003)(55016002)(8936002)(336012)(70206006)(7696005)(70586007)(16526019)(316002)(54906003)(186003)(8676002)(4326008)(1076003)(356005)(47076005)(86362001)(7636003)(2906002)(6916009)(508600001)(6286002)(6666004)(83380400001)(82310400003)(5660300002)(26005)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2021 13:00:47.1402 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 09634e72-2048-4ae4-6260-08d992374de1 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: CO1NAM11FT019.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB2710 Subject: [dpdk-dev] [PATCH v8 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