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 48A2EA0C41; Thu, 30 Sep 2021 16:57:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C167641159; Thu, 30 Sep 2021 16:56:59 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2084.outbound.protection.outlook.com [40.107.243.84]) by mails.dpdk.org (Postfix) with ESMTP id EC8C741158 for ; Thu, 30 Sep 2021 16:56:58 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZuSLg4DgHp9+XHvTOj1sU9mQj0GWuYiIeQD6FyMPUP+S3hd8yfwuoOoDIRoAe5hu3ALDiyndMhEHNmyTcmyk4E0N+/1SdoZRK1liyge5sGuIekaoE/dGvxSklfEyjLZG+67rpsDr6Aa5ZK2b8ob2CvfiQwuhErEqKFGFAswtbBb7TpErT7qfebEmnmfWortVfLrmU1K16knepnqgPYQgCL2dyZ4IDLWHNShd+D08vYtQb+xrNSSLJ5KXJQw81YJLDYZom3cKhuGccwdDzivCBR4UxXfmwlT9BHQLmBJtM0gNXzj269rUpq28tlOu//Yh/dlM5KoI35fb/FPrPal0qw== 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; bh=R/ETAZJfl728liQJshqw8T6bsscg+TVUFLrKQcW1l9Q=; b=dYw/SjGK1s/Q77FBh5GZX6NtylShdoZkldciUVVleS9a4hD/JP+w6fREh8nvrkpovT+bfuXNsUTqvCb3JDIrMa3hmdY1d/MX/mFzVHP86VqyM/D0Rint8ROyUuJFsUv9HK0N/m0feLR0TGqvlw2QWRHpXHn/dZSBsW4GSOE9b680sHT0KxB/fZu9KdaFIowMieB0pGVe4T5Pyh6wBGKT9G+L9ToBthPgYNg3dJ43KgtjSI9jfhRx4WewxatWgkMw3HCQ3qZrrEmdRQxSyBtSUF6zM3lfxaPLtJDDHW3CyxjpG3pZuTqXyDzsQ4FSq7zx2L8jO6Zfg+9vft/1GwW/4g== 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=none 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=R/ETAZJfl728liQJshqw8T6bsscg+TVUFLrKQcW1l9Q=; b=ryz77hqQKNwIyXNqfPSAZa3SSIO/bWKAr4FkSObl/Z6shJ3cPmkbO7xa/Y7kPEQ2H5QC83s8+jKoYsS/z7R4odRt+7XDck2VDH3YlfGtZHJ0XT6+iPaZTMv73MDYHapSBRT1tXSNRAdmSW+is2QKtYiCmEpipPMvdd+BYc84iIKDwo8n5ox0NLOYDXRKkQFXZ7fXO+j0f8+MEfP363y7PxqPGnKdVJVgkkON4+YgPjX1xQw2WM0S4ae1kndyyQVc88vMq3nMbmvY4rFFhmuwK+ZH5+2v+yUwCcf5YwXRtBL+RuDaheMEQEQxH1k37+DfYTZVMoX1P1hN5gF9EpAEnA== Received: from MWHPR18CA0046.namprd18.prod.outlook.com (2603:10b6:320:31::32) by MW2PR12MB2492.namprd12.prod.outlook.com (2603:10b6:907:8::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Thu, 30 Sep 2021 14:56:56 +0000 Received: from CO1NAM11FT021.eop-nam11.prod.protection.outlook.com (2603:10b6:320:31:cafe::cd) by MWHPR18CA0046.outlook.office365.com (2603:10b6:320:31::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14 via Frontend Transport; Thu, 30 Sep 2021 14:56:56 +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 CO1NAM11FT021.mail.protection.outlook.com (10.13.175.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4566.14 via Frontend Transport; Thu, 30 Sep 2021 14:56:55 +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; Thu, 30 Sep 2021 14:56:51 +0000 From: Xueming Li To: CC: , Jerin Jacob , Ferruh Yigit , Andrew Rybchenko , Viacheslav Ovsiienko , Thomas Monjalon , Lior Margalit , "Ananyev Konstantin" , Xiaoyun Li Date: Thu, 30 Sep 2021 22:56:00 +0800 Message-ID: <20210930145602.763969-5-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210930145602.763969-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20210930145602.763969-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: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4e035368-87f8-42e2-d472-08d984228b9e X-MS-TrafficTypeDiagnostic: MW2PR12MB2492: 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: feDWVtkV3YX+f/os/Q/Er3BK2HWsvBBBt9jar6Rx8IYlVuNUlRxC3QSb4QT3mDzVsd3WD9XHPKfUzMh5bzV9azkhVTPtSrL6ZmETKO1j8WfD6/MrXguhqP80DUOQ/uIEsIWvztN+RmRxPihwQMTgNHKmvDy+7AVqcMLQy7GHDtZZcokICuxQCF9cuOCGib+JzkeBKNHBoZj0wFMqsbWym/YQITe3z0iqOGQcQGukjHaRigwrLkHf7VuxHnCx/Vy8PO5XNcJPqk30DGnRielU79fXYlGh9UHJorohEbUkHSCYvKs3yj8/eCbGkHzSpmDtSquZ1dWvJZKtYIc07bZ2bfLbXcXmndVIY8qvAsn736CmuxrBRFcpGplVfArqT2Jusimm/LLuJzS74BQsrsGnC83djYLNHoHvY2hAFYDSLt/0BkuXAxZpkgtrq3xPfmuzldksKqZV7mBW2/QEjlLvlUaXKZ1p0tyMo4H0JNdd62Vi23HcniMu1i+l5QTAMGtDtTkLdZJZXSqZhra6fDjaLkRtdEVNUh//BXviJE0aclH7ntlG+Rk9c3Yf/avnpUmpap2w7zlVYt9m1NuVLJBZn6vDKcds4Nn2GNvI4SjUCil2729WGJChLnXwmcqilLH3TFj+D1w6kqKTEdeSWhec3LMRgDIrBPp01DfrujEglA6MjG86YBGHsHh1nMIA/xA9CSLlY//cNrABTgmR1ZRwtA== 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)(8936002)(2906002)(4744005)(186003)(5660300002)(16526019)(336012)(36756003)(7696005)(508600001)(83380400001)(70206006)(4326008)(82310400003)(2616005)(6286002)(26005)(6666004)(356005)(6916009)(8676002)(47076005)(316002)(1076003)(36860700001)(55016002)(7636003)(70586007)(86362001)(426003)(54906003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2021 14:56:55.4869 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4e035368-87f8-42e2-d472-08d984228b9e 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: CO1NAM11FT021.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR12MB2492 Subject: [dpdk-dev] [PATCH v4 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 14a9a251fb9..4c07907c441 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