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 54173A0C45; Wed, 20 Oct 2021 09:55:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3EBAA40687; Wed, 20 Oct 2021 09:55:00 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2062.outbound.protection.outlook.com [40.107.244.62]) by mails.dpdk.org (Postfix) with ESMTP id 9437840150 for ; Wed, 20 Oct 2021 09:54:58 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P1L4DZOzl0R8zsgQkrMqfw/vFmNpktR+/fr0PTu8wFjKECvaodELKlyXLLroLtHOvGLsSwJN76M+DfGTIT7pgOCTVpse8mLnhcjpUwLc0O5OjLxAaVvcujNvLIed20TlTw5eo2PPwfX3/bKg++QQKfBJfqrMRhSj9YsbY1VrAMubSRJMBpTGQ9UDLGKIOcEXN4PKVUdpYzF0OqVcKXb7ojSjLFN8ABd1yeuPsf7YJ+qI1h4FVVmJYCnbeoQE0hIOIQtqGzX2g7NrG1+sf/EyFr8DmycyRSSeJOzmcx99qUClimA04dRdnYR3bRLbDJ//Yl4Yw4sN+cPUIQX+yLTOCA== 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=N0Y9nMHqXRWyeH5Sxtl9EyYzNUVGzRrOXTXtvvdIThecN43F2qo9w5p+iJzYyHuLtwSdZqtWFcd6gXPWwjg1CmRK8WMMtcqgurTGCCwPLWweOCKqXchPNELIODI/FN1ArHlXGgNVTYRAUJHZGU/C0wFatlqlJlp/S9HhroQarj/eCWmuR457CJDtnjESY/mW3LYI0V+X21zIYFBfzoCtN+SpASh9BvyXuhmn6k2rMFTIPJoc0sYN3M2Mk7+TTcOFor7jnGrIwhiOfI4pt/pVTMVNLnlXBMO+f/4jYjgx8P/ZQepQDTObqW4B0JiKyVr9Ml0OemE4uN8X8zKVinz22w== 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=bNWAH8F4qn0DESxXbecuCHiioQXmmNoYmkq0hiX+cjs/qwnjYeOkLGVa0LgosxodCf+GwF/xwSp52LSOWLFwn8k1XvCAsvMC8zfpQ3qyChkqTT9owQkCLnA3UfkvGnMtx1nkWHAJPn0q9CK2DuJi7suYROLdHRSL4mRvsoxmOKurK80dEHyrzVbKjQ2qnbv4n+vSDtX4iZfpbRduKh3MnHSu/XStqeqgvs2YgDNbmzw8Dyqnx1KDCnFDSV2dx2qs4HeTuano4GrNWIMslpTuJtHzfZ2O4ZPaTif1vI41B7V8MDuzjXPQViEl54lpSDbPHpApU5pFg7taMpWXnUYACw== Received: from DM6PR08CA0045.namprd08.prod.outlook.com (2603:10b6:5:1e0::19) by BN8PR12MB4770.namprd12.prod.outlook.com (2603:10b6:408:a1::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Wed, 20 Oct 2021 07:54:56 +0000 Received: from DM6NAM11FT015.eop-nam11.prod.protection.outlook.com (2603:10b6:5:1e0:cafe::72) by DM6PR08CA0045.outlook.office365.com (2603:10b6:5:1e0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Wed, 20 Oct 2021 07:54:56 +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 DM6NAM11FT015.mail.protection.outlook.com (10.13.172.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4628.16 via Frontend Transport; Wed, 20 Oct 2021 07:54:55 +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; Wed, 20 Oct 2021 07:54:48 +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: Wed, 20 Oct 2021 15:53:17 +0800 Message-ID: <20211020075319.2397551-6-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211020075319.2397551-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211020075319.2397551-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: a1095d82-aec2-4eba-43fe-08d9939ee836 X-MS-TrafficTypeDiagnostic: BN8PR12MB4770: 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: ektEsWApXE2aRQJ9/ac4arcJohvg8E+7IeZqGjyLxeae7f/8dhVbz+VZRhu0vsMk3nXtauNM9XyflicEj23+xKCNYUcSXQm/BU5PkzHcF7hviXtCloLTKHWIxwjkzA3WJSU5A72kD+z7CGUUVroO/pJGpSXEVlx72Z/Zl0Bb2ClXZ7cE+9CxPEQfq/rYiTHvzsxlTNFTBGPzH5u9s0noJObSleYu4XCMN2TLZWvz5T+RmjeWcy6NWN/KGCfHcXa3V0/kvofHJ/Ln75hEpKFZqoQzto7nGaY7krKdaL82aFE8VbDFMR3PGkaPGedhEGum9udBx4F5Yamr3BJ8UHoL2gu2Hq/uC42GldmLtwAWNTLoZb1gVArDEagAqbegniC375PLPmm4CmxmqDbqT52E6eNS+wpCLZxa5bKMhXntfK84wcOJodMChrNqLlngRirqpAahGT5st7UnU5tpZdJNyizQKXjLzaRoYRf2VR2vGye9R42iHVw9JucTHPglcztVtW2J0zzX+h9np7pXJWEuASNICqWywqkAz26wvxqir8qHd+aV6kdEgMm6Xk4GWuNmwtGclWd1UF/OJTRELspgz2+6b7G7mjoHcP10msq0TJ9ttOiAMvg4NbbOQF4ZpZy2dRJbXItlEPHvu2xRZG85jcSZYfLL4rXBu4YgDpjr2tofk6O82tn+18zEgTztw1+Y2xExQ/P4Yj+iX+Ub+TBlGg== 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)(186003)(6666004)(2906002)(83380400001)(86362001)(36756003)(356005)(508600001)(55016002)(6286002)(7696005)(7636003)(110136005)(316002)(4744005)(5660300002)(1076003)(16526019)(70206006)(4326008)(54906003)(47076005)(426003)(8676002)(2616005)(36860700001)(26005)(82310400003)(8936002)(336012)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2021 07:54:55.8202 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a1095d82-aec2-4eba-43fe-08d9939ee836 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: DM6NAM11FT015.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR12MB4770 Subject: [dpdk-dev] [PATCH v11 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