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 E5019A034F; Sat, 16 Oct 2021 10:43:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 74C7641159; Sat, 16 Oct 2021 10:43:21 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2045.outbound.protection.outlook.com [40.107.92.45]) by mails.dpdk.org (Postfix) with ESMTP id 43F8D4067C for ; Sat, 16 Oct 2021 10:43:18 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c99eTDB6JxaRfWsAhbv4dzaWdw9h2murgTU7g6PnlsaU1pUjVub0pB11ZqncsmMpDNIZn7hC87pB9VSgk2KszgPEdoyV2awOMExCKXvOhpEpW4kHWFZxZU6A58Q2UNQN5ewekLtkAz+Hkd6pLTv0+mKClK0FqM7OEZpZfxT5fZosC8Oue1H/jGdCo3gGhLLJydW19WwgVftUgw7LN3fyZegIpb5Vceblji6UGtZL0tvd8rega+aMle0ym3mRf8zb1Z3TxwvXD3VH4EYADkdjWPDCbjWkfZSLJBPQ+mNAmyAruucaT1CipJFNBuJEdhZkphT6ZOElEpVvlm3p9X9t0A== 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=TJ18S7RCBNFjkF//VTydqKf5aeLjsC7ZxnEoI9lig1XFbrlUx+S+TW9OchEgXdDN2lQGj4OgzGZpbIpUZl2MCvhQU4FwroFY8A1mkPLOJkPqyWvCs94Xa2ZBLAPFAuHgrNGffLVqQl/PrHayj7P7sBAfkTFiwLf+5BGiPbEjehiy6I/z7qxE54chSapT1eHz+3Y6M1ZdjhxNQCqpe9wy+mSg5/CD+CfgyPfotGEBXZDUNLyhV7vUgKHV+exbj6um4Tc2Nq9ec2731EddqhMOIfizsLqHlC2Hoqv3h5IyDTHfug+WMUuYxntPQjdodnLGmNuBIAg8eGlXGlCXAmk2Lw== 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=EGzPw7vTGzDEAAtFJKWn1gj5neD2IXtB8tT+CX/DBUiwKF/3QfGE1slFztQUN9tH0sTFdLQUURs1QGZtMdoArgAYbqYTKlwErYTPAXh1WYVT25l3tjoQa4tbXXANeZYuyRImHdtlzrcCmgK7BULdfbpd+7oRmoby77F8EfE/q6MUoGhRUTubpC6hCWqwk0Cwp2lNsNsC/wgzqv1QaaytBdCfUCpMdm37DK9HYuvBVqfnXZYNmcLsA83PHME956Kz97QnkEuxy2siDD7Gh7yOq6bJGeBuObhD7A5w6GOe60RfN3XXisUZNq95Cxnv7aa8dUnQHo8siZzJSphpquu3Vg== Received: from MW4PR03CA0068.namprd03.prod.outlook.com (2603:10b6:303:b6::13) by MWHPR12MB1903.namprd12.prod.outlook.com (2603:10b6:300:108::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Sat, 16 Oct 2021 08:43:11 +0000 Received: from CO1NAM11FT029.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b6:cafe::be) by MW4PR03CA0068.outlook.office365.com (2603:10b6:303:b6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.14 via Frontend Transport; Sat, 16 Oct 2021 08:43:11 +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 CO1NAM11FT029.mail.protection.outlook.com (10.13.174.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4608.15 via Frontend Transport; Sat, 16 Oct 2021 08:43:11 +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; Sat, 16 Oct 2021 08:43:08 +0000 From: Xueming Li To: CC: , Jerin Jacob , Ferruh Yigit , Andrew Rybchenko , Viacheslav Ovsiienko , Thomas Monjalon , Lior Margalit , "Ananyev Konstantin" , Xiaoyun Li Date: Sat, 16 Oct 2021 16:42:35 +0800 Message-ID: <20211016084237.1808161-4-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211016084237.1808161-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211016084237.1808161-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: c8635f66-a328-485b-856a-08d99080fc54 X-MS-TrafficTypeDiagnostic: MWHPR12MB1903: 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: vtXqpzpinMXoByl69iSiAXigIOTNFBXOTta9UAMjKXlJPTq8RAD+EpClL0Azj7UmO+bD1Cu13jXnvWpxjkm1x8bLMKM9txbiFJgIlGNggamhjtX4HMzgF2QvBeTPcaxsTSYYARNWiw0oNuekmlAiNOz4dkRLRT/EZKel9FKgMOsCeKtlP0G4IVC1Vq5xwEzRNJJpKCywpmt3FBA60hH8PVpR3gXuRUBaPp98hEvSMc2N+M0RCWI10ySSWQFKSpQG/TgySbUHT8tjsD6NQ9wIVbYoRLn5JB7L9dw1P5bJvQQ9Svxq0+CixgjmMqXhlyvjBIqi5dQdvL+0we2Fa8MF3MlaouIdhvsyib9ot0UIV6WWeuvVb9CDwzSLC0h8RjaJOzGsb+06PpS0YIj5lNP+dxyyREVuGucD2U1++5TydlkxmFq40Xko+x+tF9doz0gdYLlWoNZ7eMpiw68zTyLAzQDwcZ+HXkgzcFxoF4EjXwEWLmJwewhqP0mMgHJpDEUDf5TndIko4nDLuD0x5Y2tmDZyfECTbvZU19WxfIpa2xAMAdDjQ5n474gOKA95R32SBHW6b6iC6JwUYkLh7iISrR4q6oaoipjyjEbpUU2UJvUaH0SlJ5lmnwYGn6HV1meVOYWeysxapfllSOyPMjODcSrTWS2VRWce0HBPskLAhjTHCJM0vVcaCwCHyGKhXn6vMO8pmY34nqbengzuJgmdVw== 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)(2906002)(36756003)(6286002)(336012)(16526019)(186003)(55016002)(426003)(4744005)(26005)(7636003)(7696005)(1076003)(2616005)(356005)(6916009)(83380400001)(4326008)(5660300002)(508600001)(86362001)(8676002)(316002)(82310400003)(36860700001)(70586007)(6666004)(47076005)(8936002)(54906003)(70206006); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2021 08:43:11.2187 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c8635f66-a328-485b-856a-08d99080fc54 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: CO1NAM11FT029.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1903 Subject: [dpdk-dev] [PATCH v7 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