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 95DEBA0C41; Tue, 19 Oct 2021 17:21:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1932D41229; Tue, 19 Oct 2021 17:21:14 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2042.outbound.protection.outlook.com [40.107.244.42]) by mails.dpdk.org (Postfix) with ESMTP id 928F04117E for ; Tue, 19 Oct 2021 17:21:12 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j4Q985c0i31XW6LnKrzKTeRb9CG45YOT5ga9GJ2nsCLAQFba6XvqdmX57/937UBHdrKssvpHaPTLMfQ+WoaQ2oVPeiQp+kdEuVOnO6y9Zngn9tEz8K3I/3FgngHEFh9Qr6JkdlHSq3mbTC3mDwQsa/Tq4QRV7ZdLXgAkP3GL0tITqtrHQJmILefQqqUdMnSq2xj1fQDv2XiFLs5sLTbRfOUpFUh7eP9KF3NvRlstKJkUbd/zk41W4RC1Js4rnMYDidCOwO64eMQ8XN4bjJEvQdH1g+cycPywAlNwt1cga/2H0yCbWjY8qpk74sr/cA0tqgphn4mMN+ChCeuMLYQUuA== 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=AU1KkWTWZHK0kN9ojE4Cq6QEijZqnaWiT7GxDLjdy2LTN/6BbdJsMgiu7InBJFwTvL64sUoZLY5tQ21Tz2voErnG3bvdlfRowdw3mb8uY0gJEUqfjGdPPw0RuJLsOhLRnLGjIte4y4nBp6r8zdab7OVsIyT6cZg6sEL50yURQI/rJSMiVhLTrg7WEKiCLzWhQjZrRgSNiMpEBswXCaxDehd+3k3LXov9ZJyrM2vLZbkWAdtnLBuw3TdsMe088aW9oLo8VyIqEzyloYeGNOYxyBMkyaiZQpQh8qc0H31Rxtb11MdUkqsRtgCyQcvdWz1fBhJlidZTprpzhF+2iMgKEw== 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=Yfisg69KC2/7o0CctoKTy0MFPtRwY+L5XEn401qDQX5Cm+TSA4dExthHjpu7azvAlvvXFrKg1rWcgp18My1xrdfzOfcJe071ysG/DdtfCXq8sHdFhrd1xDMi6iZnx0sfioCmNLBCIl8Nz8ETyb/Or9kAnivsLDivkIWVulOlq1CqUuHQhNiqYDQA6zTf76ilk9D4ruhd16KbozmcXBEG1tJLiuc3g1ocBcYIhmNaBFmLjJTSscICCl8LHlshd0BfFIYLqhTRwJ3aNfbBQXyf/Bz9LoZDdRyv7H0F94sRcgflHVcxJUoTMr+faNLpZmV4Qs2cT3Va/uht57DlMxsbpQ== Received: from DM5PR07CA0046.namprd07.prod.outlook.com (2603:10b6:3:16::32) by DM6PR12MB4748.namprd12.prod.outlook.com (2603:10b6:5:33::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.17; Tue, 19 Oct 2021 15:21:11 +0000 Received: from DM6NAM11FT051.eop-nam11.prod.protection.outlook.com (2603:10b6:3:16:cafe::96) by DM5PR07CA0046.outlook.office365.com (2603:10b6:3:16::32) 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 15:21:11 +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 DM6NAM11FT051.mail.protection.outlook.com (10.13.172.243) 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 15:21:10 +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; Tue, 19 Oct 2021 15:21:03 +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 23:20:22 +0800 Message-ID: <20211019152024.2277527-5-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211019152024.2277527-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211019152024.2277527-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: 847d1df6-1d1b-4db0-9947-08d9931414f8 X-MS-TrafficTypeDiagnostic: DM6PR12MB4748: 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: SvLFZ/gLLrhREhW59Pv3wFRkS5bY0ro5gvE9n97mv5tWv9YSkgmzcbkLTLfUht0YxujzRb16pxdh9RmqQzclb1n6oNR1K6Q1Ikwy6C91/DmVU5pe6E6Z+O1gD7YAzaFQctWCchaexWRYQhDhQpxdv1C0J/dO8hrfqXDc7mb29/28H/Lufaw9mn4WpP8lSVgWT8B7KdPmJT3I4ZD8IpVrQZRsneYG9GKYxWHVsbYpFkd/V5e3qXUE5c9lhh8EvH8YYElu47KSGDBMx8EGUXGJJpKw0864jtCn1EwBQ0UmtZQptVC7fd6FJ3kkcm0FCw8n6OdG8XshwW8D5OPcWzGyhCW9JtHHseuwnphmmPqr+fg73ID6skr3+W+rjKTcWjU+IA0kk+JO9p6kEMvkR6MKFqQCzLRHYYD9rp548GNImILjyVXQHUNZXDB6LDBzxrEFjCWezCthU+4KLoQEVGFE3WBiq3DF71tkcxWGUuFXV6gxq0pU3GR0eplbwZcPFFN5ji0ViLl0NGE8fVmw+dG0AGUIoDgUd3dhutFZ+KEaqTBb2PQ3yO9/FB6GotMIAkUYbmi+W+rCVe88aVREUFolFpLBLhaYRxKhI5X2lcuzX/VGGCT52kfutZGeBoU8U/YwHXrYZDSONvcEr2XXCdl8Gnty2tMaze5cq4Skum0ETC19UWtaTXxOGtGLkQMQvblnpitDJuszzbu5qws+/XVALA== 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)(110136005)(356005)(316002)(54906003)(83380400001)(16526019)(186003)(7696005)(26005)(7636003)(8936002)(8676002)(336012)(55016002)(36906005)(2906002)(5660300002)(70206006)(6666004)(426003)(36756003)(2616005)(4744005)(6286002)(1076003)(70586007)(82310400003)(36860700001)(508600001)(4326008)(86362001)(47076005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2021 15:21:10.5024 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 847d1df6-1d1b-4db0-9947-08d9931414f8 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: DM6NAM11FT051.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4748 Subject: [dpdk-dev] [PATCH v10 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