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 3D4BBA0C43; Mon, 18 Oct 2021 14:10:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF0CD41102; Mon, 18 Oct 2021 14:09:54 +0200 (CEST) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2060.outbound.protection.outlook.com [40.107.212.60]) by mails.dpdk.org (Postfix) with ESMTP id 54577410F4 for ; Mon, 18 Oct 2021 14:09:52 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RlBGEe95M31QY0iSP/QaykNdlT38xEWxxNoIBabvaFfE+13lj4TXTcUkEOXW0cTdjkFnBvhF04BwQVQ0p7PwAnQd5HDmcyJ3LvSbTlIIf8DpGgtcqBAHGnqCCSZwcf6lnj/dmP5d9IimSyhJVXTuH7R5fBUiwBF8aRMIlURtCEoURMpZnXSSIZdapDUzSTQbWfqCWTmIT5dM6+MB68IuedcLv9lHox4OqamqIV7g0QmXAE6yTeZrjk++UR5E5i5vl3cVQEcfQGv9sZMJ2IfRADOZmPQ0/P7i9etQfMK5JEiwW7kdVl8E7UxbByevdXGUCqqSXM1UTektJaISOB9BNQ== 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=oM4xXrg5OCNTI1qkFc6Lvt9rLt+rAY0e5fK3LHLXtYNM6HTVRYICxel9qQFZDMJ12JpqzJJ4yLhqS7+yPbbmpElvtat3k0AyO9WTDmG9dNkeIWGLHK7xtK0eM7Lmv8Hq3CGNhmSxP00AzFQKz8f45CJf3RNOieSexApNqYQjlcfOJed0zl7uhVQAy+u8sZNflx3xCwKOlKxXnc59/1i7seNo9Krua4HVk/aIc0wRDUCWdR8F3h9e+gcWj7DtHV8BUwoNtsWPMKTVab850I96c+Z5NPfQiJRkymMCIO4n0P5U+pZ6tusmDDIjhm8JtixUQbj0ISHxXTjJjzkmxdUeDQ== 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=ut3k/5swjOln7qgimYycofejHidesvFNZNpLLCkKYWBjHY0nPzNINKWiRjxvywSE18WKScKkj9rQu5e1liKqr8GyBIEOf3REUByCMZtPQvp2zIYQsagHvi8qNiJvw0u9bcDpldghIxZszUAowvQvSgHKxFWZ8vopqWYbx62uuaF1m2ueluTK0Qyy9FvzYzKXif/dqFhnqzkGRmpCrPwooKWjKED3o+EB5tOnC2L87JgJDbO5PyHerRinowvpUV7hP4qt90ps0Xgzwl5Jw1m6wZhTHCFIyRwyBpn2ikh5ULo/9r0YFDv3jk+OmTKtgp+4Lduk3lXDFxYHu7ZgXrX4AQ== Received: from CO2PR04CA0125.namprd04.prod.outlook.com (2603:10b6:104:7::27) by MW3PR12MB4457.namprd12.prod.outlook.com (2603:10b6:303:2e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Mon, 18 Oct 2021 12:09:50 +0000 Received: from CO1NAM11FT040.eop-nam11.prod.protection.outlook.com (2603:10b6:104:7:cafe::24) by CO2PR04CA0125.outlook.office365.com (2603:10b6:104:7::27) 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 12:09:50 +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 CO1NAM11FT040.mail.protection.outlook.com (10.13.174.140) 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 12:09:49 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 18 Oct 2021 12:09:12 +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:08:40 +0800 Message-ID: <20211018120842.2058637-5-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211018120842.2058637-1-xuemingl@nvidia.com> References: <20211018120842.2058637-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] 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: 7ae0625d-3aeb-480a-bd14-08d992302fa0 X-MS-TrafficTypeDiagnostic: MW3PR12MB4457: 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: l/aayH/vOsrYPSX3XahJRFv5nGbUseKZT54OO7qH/FD6DdpAqZfY3VRx8L26ECLK2ydibdpE06ZSuAzmVt1JiGT6zDPPE9ukf2lMXoERtBsMPJlC1ls7LcJSnVmlLmgGelkRRZNB3mhH7nzl7fG4+9dnWEmTr+7fggapk+dhKl6lix21riauGm2gcwy4MeKBrHb82J3LqwjCVFB2QGg/dypMHCBmJtmb0wEWQh3hqpB80E9+fE3ct13/286ainqnRzGvXSgZfRYG8W4pIZLA9rDXvw8A5CWPeq2bEkOvgmz2K6xXpAQBIPjwUMF+LOy94h+E00DEdmH0e5VyYe9Dh9jd7ezBHyLXk31fx9m7Z9PIiTv+sB0XG6oNsv9Is9zaOlQ18su4LErZbMVlQPQ1A6MVTZM1+Qi5xV8DOTCexJ7wRpd2bmmWjHwdG/+oUkLq1tnrrK1Kai/m5h4v316GS0zmjijvB9dGYrS4Rtjwp2MYE7WF68As1yx037Yt3lgYRY9R+kVYg6/3W+EjUm6LJDY6DMC7aQ2yAQMDV8vmchtmA4N5aYYZ1VKfOk/gUPrq8B5R559j6IllLmh9TInwIzFmJjMZ9MuN+sJRTaTMnGQDSpqFeM4w/e04D/gvQd1kMEb4xRF2jePe+up91pIWmL4dwSRVQhO2iuRUT3ByInwLXXbn8B4nw16V88ToDcfTZ3vbnvGErTWINOSz+Bs8vQ== 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)(36756003)(356005)(6666004)(7636003)(426003)(508600001)(316002)(2906002)(336012)(54906003)(16526019)(47076005)(55016002)(2616005)(1076003)(26005)(186003)(8936002)(86362001)(36860700001)(8676002)(83380400001)(82310400003)(4326008)(5660300002)(6286002)(70586007)(4744005)(6916009)(70206006)(7696005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2021 12:09:49.8805 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7ae0625d-3aeb-480a-bd14-08d992302fa0 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: CO1NAM11FT040.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4457 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