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 EFD03A0C41; Tue, 19 Oct 2021 17:29:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD38641248; Tue, 19 Oct 2021 17:29:23 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2077.outbound.protection.outlook.com [40.107.92.77]) by mails.dpdk.org (Postfix) with ESMTP id 5F4B7411C1 for ; Tue, 19 Oct 2021 17:29:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PYxPf95h958/S6bq7ymzBpUG79bFlIYQ1mZoo9gu/DsJAaTcl+Feun8gKHdCm2LqLi0LmzNYIfbsFHps8GmGZhaNSzlV6TlC1kueG05k4cZmtITAGOyZj4duqKi3t5/qDtGViRKgcTox6hzjL/2alrEC98JV0hS3YMZyMPHM8qzJoosX0n8Hu+Oxl8glvwW1dqcj4+kn7ayFXoqqoFnWbYQsqS9+f4qYhnltD5Y85MzsfyE9PQ39E4Z3XhSJL0BwDBJn+xC3NS5QWx3igzCpXH0upbnaZ5DZePUEqUZbRwnj5NjIN70a7G56V9rmw41QMpubdPy1UsPFGulBEr8IQw== 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=IqWTliOEmn9vxRjp9PAR4fhIy8w/WMYOadApMauDTMiV4UcQbjpjodObHV+bOKNL4CnKeees1Sou2OGqIL9yBGeM8XrYjWF1BZMMb8PCIaWZARYHULZflSlv84W3ItYLH49Mv76zcUrJgDgzlDszMniOGRNiU1Gc/ZLwOAfTmn+vRTxhGAVwUIf11D3cdUlRPtNzPD+NiG8u+YseiERJcJDWWpa2qJBSyGw8kdtT4ywZmPzeGZMgjcZphNN6dDx3qwUGTcERH87lXNh9NFoGTVskdPpoKG8hwtm56VdbYBAuKoXfyht6oyF0GkuuMi+tGVJv2A37ZunXeyFY0NRbvQ== 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=RoqLgbiXfM9BHHYK+NnhJI0doumuYO/nEBfAon/kCSQW5n/JxQcRXRWaqhJwPlHm9mA7vAHiFYfGV5pYNLzb9+KeggJWTZfTDarSL76gOtN/7kHx2qC7jzaC09peMN9G9+1iF7NvrR75nfcxu6VL2F8S1/HBw4OQs9VaoTpP0biRYViJrUzJUVrL8JZ5X3Gp/ayPQc4+DxOE46teCrBiOKXBijWsdlsijKqzz6HnqHRK9CsRKqFTePgGWE9XRTq4h9B8relXS4os4yEk1DGhjJIDAiE8qEE8lMB72uy506vMbG1OA/lGYUoLDZ1SOahRBpdYe6VZ8QUMSBnl//2PkQ== Received: from BN6PR17CA0018.namprd17.prod.outlook.com (2603:10b6:404:65::28) by BL1PR12MB5238.namprd12.prod.outlook.com (2603:10b6:208:31e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.15; Tue, 19 Oct 2021 15:29:21 +0000 Received: from BN8NAM11FT044.eop-nam11.prod.protection.outlook.com (2603:10b6:404:65:cafe::de) by BN6PR17CA0018.outlook.office365.com (2603:10b6:404:65::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.17 via Frontend Transport; Tue, 19 Oct 2021 15:29:21 +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 BN8NAM11FT044.mail.protection.outlook.com (10.13.177.219) 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:29:20 +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:29:15 +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:28:07 +0800 Message-ID: <20211019152809.2278464-6-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211019152809.2278464-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211019152809.2278464-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: 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: f33a0236-e39d-4b7d-c14b-08d9931538f6 X-MS-TrafficTypeDiagnostic: BL1PR12MB5238: 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: EZCTVYR0YorIr0wN+EdFQAH5Ic7OJvDkQyP0pU+0slPgWZ+DTwDAAUrxMvLRADDnLafQk6t/DtaTOnNWgZ/vUGlEKNS/yzgmwdLKO+1QwzSIVoVkKkeyZQS+Tqyuf8JHLj3jMLEJx7Lp2UVnXzX2FCtVhTcYgcdqEfkIOaYuvd7afMcv4RrRDqB/lWT/K8etnB+h8H/dtViA3gZTlL/8UsKLLaYT5TWrmBaI/md5IrNVH9f8d04nbcQvLuczfqPARujpuTINBbQq+ooFtRibel0T5L0FBnjFPM013VtyvyFiUnFp6ERwBG6IribfywrNuP3yi5fengRzVcs0yAooMLuEFx/lhPp89DxWyX8c4g9BvxgCANPAn04Eg/I4dO6BR9y17az6YGb2V2IvY4uVqyuO+Lo3vRFVw082WZEGJi+euMOhHv7PWZ/ugpqhvUXsw+H4N8tcXkLyN4YLVnmmMPGEj70CdWqWQoxepjNPkHNMCfs0sF4uqfhsUNAyErIDOetr+mxmKfZLbf93V8DrbNNm0tJZbzKKZ1dw8QxdtW6chI+2UI1/QXAPYk5JE94aO4x+8cvN3Br87U9BKkA4vlIPzJ2YuV9iRIJ+d22H2/1dItxXd0OwDBFBlynpDVwoJ1y3IEUogOY2u/eML5KRMtUd7KWh5ES+bETP+ijSKe3m3vuC+2gmF2H3QtwdJacQ4awPvwgaW21fdcvdz2XSLg== 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)(46966006)(36840700001)(36756003)(83380400001)(36860700001)(82310400003)(7636003)(356005)(47076005)(4744005)(86362001)(1076003)(6666004)(70586007)(6286002)(2616005)(426003)(70206006)(5660300002)(336012)(186003)(8676002)(16526019)(8936002)(4326008)(26005)(7696005)(54906003)(110136005)(55016002)(508600001)(316002)(36906005)(2906002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2021 15:29:20.7328 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f33a0236-e39d-4b7d-c14b-08d9931538f6 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: BN8NAM11FT044.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5238 Subject: [dpdk-dev] [PATCH v10 5/7] 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