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 4DC43A0C47; Tue, 12 Oct 2021 16:40:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C4AD64113A; Tue, 12 Oct 2021 16:40:25 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2054.outbound.protection.outlook.com [40.107.96.54]) by mails.dpdk.org (Postfix) with ESMTP id D77454113A for ; Tue, 12 Oct 2021 16:40:23 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XIlAhwEaqGdY1lOhXjLUAut4ydZlLMStZ1rW2JC9eJqUHeO0F6Gu7d/v6uZdg7+e9JRJDokp3BGtzS1sM/BE52jhZY4d3kEDXBxD5y7m11FyzkbyjC/NApklUMZMh1Zx33ZDHgHy/jSaUVz8sARkq2DxJd2x0JfDeFRIfqwcCylQe0vHmU4/eYSAr383iUBbf5cVAQAP9xqJ14EhqKfjqzf94gMk0yQuJcYyDaZy1kil0gzsq2n9qoQYLQeyUt7ubq5JPNKKwblhbbyr7KibKo/NfTh2cD3FmiKI2kaeuSuoFCs/MAZg52Kqr2qPy7SOn7NGQ7zhZXsHsVTZ47c5hA== 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=LzrAJqK92gGRDY9WHPj3wz1kO5bUZL5D3aKMnhOooXm4pVsufQkZ94+1djvGeQX2irC2fM2MHLCp79pg0BUKDZ5FH8G9ZfRZD370vJrQDmXB/AAudg4kbU3PHWqg1ixus5ICvontJLaKdaoLrAW6v0LR6kB0fFKpCVBrNosq2YwzFrScRQPWRgkriDq6iZjWLZYaG8Xp7gyESVSpxIMGjsbHnz4JlwdJtXusG/rAVRuSsiUblVTG8COx032mSfj86RrjTbdt4hTnDR529AWh2ZVzjXh2hM0SFF2U89/5rlCGUVSAxk9krmUTB82invF81znfHjAwihSHHcO3UUhobA== 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=UkCzrdI6epP2cuEgVxjqpJhvm3IgeNu2BDZTKFqJ2ks4rRXSzXQOiOhOxfvboUNwjEslb8UmnXPDmBlA541Snsr35fisrcRXY+In3XohiE1e29vGJwqaeGrwA0VdD8uF9yR4jdzK6aWGx3Xprw8R/jWkqFe1SRSV4NVh//pEUKfnlCQnxUYz+R6KPQd00Y1jLuQpHJuJ7YMo59+J+/zAD6DrRztRAHhxneSKgmgLZ4CW6cmF6Bc1HyYJ7H4Te6P/ZJUg4c9pbwkOwIl3MsQlyGPbbmcu3eRMxG5ztwN6mofZAXrsrXwQo6G7m9U+tOFhiz6oA+SQoG45VtP8KeFQog== Received: from MW4PR03CA0220.namprd03.prod.outlook.com (2603:10b6:303:b9::15) by MW3PR12MB4474.namprd12.prod.outlook.com (2603:10b6:303:2e::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.22; Tue, 12 Oct 2021 14:40:16 +0000 Received: from CO1NAM11FT012.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b9:cafe::4c) by MW4PR03CA0220.outlook.office365.com (2603:10b6:303:b9::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.19 via Frontend Transport; Tue, 12 Oct 2021 14:40:16 +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 CO1NAM11FT012.mail.protection.outlook.com (10.13.175.192) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4587.18 via Frontend Transport; Tue, 12 Oct 2021 14:40:15 +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; Tue, 12 Oct 2021 14:40:11 +0000 From: Xueming Li To: CC: , Jerin Jacob , Ferruh Yigit , Andrew Rybchenko , Viacheslav Ovsiienko , Thomas Monjalon , Lior Margalit , "Ananyev Konstantin" , Xiaoyun Li Date: Tue, 12 Oct 2021 22:39:40 +0800 Message-ID: <20211012143942.1133718-4-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211012143942.1133718-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211012143942.1133718-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: 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: 605d5737-d8f5-4cf6-371c-08d98d8e34af X-MS-TrafficTypeDiagnostic: MW3PR12MB4474: 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: GlSk62DDgRpe45EO3N9LAWm9R0MunrgeKeUcdHHGWi670VNY9OsLnZC9BZPSf0EZBRNm8wdm+3CTrfIYm2FX7CO/G5yv/TfsV5TbY/1xqfvkvkfq9zUEmmsQdhCWvDh2Ug3E+32rkZMlLyjX9s+4D4qngnixb5l7oACjN39rxrgIMaywxEWFFL8xsP4B1XOauJQts80G7hfkVldMpjPA0xHh25k2Jg9xznK6H2iRs+/GStXeDUoV5x9LQcZ7tJ3x7VQo49A44NE5+pftm+o2EAZ1V9bvC7JdAd459sF1yPrXyi6MsG13XNsDy/aEiQufDUQrj41Cnb1Sm20xss4Dx4+xPD0nkiKLf4pKXQkW6i4KgqZsK9mfZFmrEfMtjmsyW4mcuOPYqSWig09ssXSDPCO2EhWhTaS97zX0CEF2ZJ5p2V/ccy2P1cHzE6XlefgdHXSK/a7db7aHT6KtV4V2spXVERycx4uMSYc2D1Tg7Q1/3O1dHuRGlINavaadhRhAQsp7LCzf5H0bqe9STv+9RuTbbVp3fiWzctemwhtj3y5lIMqJ2QW6Fza2+fT5NuDWUnQRSfB/0n9dfjMDKEdjoF2UoIvmi3PmRBxpgxORl9jRavQ9Mp6xHKuQNd07T4DwdXKBIwYMVDgx6YL7iXCCWd9wPiyUVNL5eMO18gsaYyHya0SzS3VXxvWCKJqsNls7h8eDm/+sDi+Gm7vhLFKG1g== 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)(70586007)(426003)(83380400001)(86362001)(1076003)(7696005)(6286002)(2616005)(6666004)(5660300002)(4744005)(8936002)(316002)(26005)(356005)(70206006)(54906003)(2906002)(55016002)(186003)(36860700001)(8676002)(16526019)(508600001)(4326008)(82310400003)(336012)(47076005)(36756003)(6916009)(7636003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2021 14:40:15.6477 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 605d5737-d8f5-4cf6-371c-08d98d8e34af 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: CO1NAM11FT012.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4474 Subject: [dpdk-dev] [PATCH v6 3/5] 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