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 5077BA0C43; Mon, 18 Oct 2021 14:09:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5A9F5410F7; Mon, 18 Oct 2021 14:09:52 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2085.outbound.protection.outlook.com [40.107.223.85]) by mails.dpdk.org (Postfix) with ESMTP id 2D5D8410E9 for ; Mon, 18 Oct 2021 14:09:49 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fyfvpx0ZncGSl92khQv4Ywz9vTpManLoM33n5UWxUeue0ziMnWVSWj4Ywt0Y/9vu42ulRVbemhDDrCIQOCP8vu5z2+aCuhvdsPELqyC4FYUFHPmBL8l9x1j3/kYScOcZvkpIWYQirUbl2B+My1r2abQ4gdtWC/gflNPw2KTT8zTCwA1dgkaAjqAu/9ag0CtFLMSqIE6dGFQj5gpWYdRF7KJ3S9e8lhqbLfbrLJLGJh6FJ/tquwksxfbmWleWGY8RYn6u6ia/zCZVNiisbtiMrZndBIpHIs67dDLbdZ1+bC4RNJ61RxCsm2Qh2DuXd9+3XzShVvqNeD0fKqyXmKYwRg== 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=crzR44mvUJ8rcXIIYyIUjgQ9E9KtMENR3Lrzhz7E6AU=; b=m3ZH/VrAwyhxrnshWSRASf+SL7yOcQhiWbsMyTvnm50dKiAlh35Y8BLFg7tltB4wxKDl0a6tCS9WPbTnx0OZqZjIGepRG4l2X9H9RMYJYRdXeTrvoBLUOGMwXMu5Dn7D+sG00Cjm8b+NecLjRjX9YmGAdiZ1lF1B1+4A3Gy14Mpx2fx0gNMiQU9Gfo6LBioZ8GhoWGmflBb8JYSD1tSBWtK+MC3LfKv4kp9MxAmWC5an1JZeGJgHbt64dubSpd+Sp4RCgAoyVrr72wQvt8ECEfWT0hQA+zzZer2qHUxZfg6C5sv4l3Kwg2LI3g+x2D4dIz+mOI9XQLR4kMi6EbJxoA== 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=crzR44mvUJ8rcXIIYyIUjgQ9E9KtMENR3Lrzhz7E6AU=; b=gEgplOp80ZPEg7r/EuwtG5vLA55YUqkJlaJ6m85Vgqw1bGVVJ4TH9GZflqezJVMMNu5nr6gIWzsfQl5bTmkkL9I+sgV88Gr68eakyAB20ahv5e74+64hPUgO37Xe8sMBsJkM+d+bHHMkNR5jgx1IJLM5GEobd8YeYQQ/LaUUioh9Izg1QsiYoF90uKW832GB2nqs9pzk09AoA4cp1TnC/Yr5pI7tJO8Y9RZFca00GFys6WavMNvrgiE/wi7UgIYKOPZuWpIXCXHUHNRzpRldLjtcuwrnHV1JDk+sgGmoLstJY+hBIAX315h07/l7o9Lcfjy5XUfm0kz6d/X+W9Hv9Q== Received: from CO2PR04CA0142.namprd04.prod.outlook.com (2603:10b6:104::20) by DM5PR12MB1371.namprd12.prod.outlook.com (2603:10b6:3:78::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.18; Mon, 18 Oct 2021 12:09:47 +0000 Received: from CO1NAM11FT040.eop-nam11.prod.protection.outlook.com (2603:10b6:104:0:cafe::6) by CO2PR04CA0142.outlook.office365.com (2603:10b6:104::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Mon, 18 Oct 2021 12:09:47 +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 CO1NAM11FT040.mail.protection.outlook.com (10.13.174.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4608.15 via Frontend Transport; Mon, 18 Oct 2021 12:09:46 +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; Mon, 18 Oct 2021 12:09:06 +0000 From: Xueming Li To: CC: , Jerin Jacob , Ferruh Yigit , Andrew Rybchenko , Viacheslav Ovsiienko , Thomas Monjalon , Lior Margalit , "Ananyev Konstantin" , Xiaoyun Li Date: Mon, 18 Oct 2021 20:08:38 +0800 Message-ID: <20211018120842.2058637-3-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211018120842.2058637-1-xuemingl@nvidia.com> References: <20211018120842.2058637-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: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 80e7911c-8445-498a-6721-08d992302d52 X-MS-TrafficTypeDiagnostic: DM5PR12MB1371: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:115; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SBqSzhjz6Pyl9pm/rYEbGHXI05F0I8ZngCOAl/xUlnRY1K87HKEV/4ehg6UTYhg4YtADXkQMuXL/eu7z0y5+KqfkVyu6lGk8hR17aclRzT3rnkwnivfVlv9IFn7AYDSxqm3U/DuTlpTbnwmz95aHcjnwTh1G9DLzU0Pzf7dHKs9RL9Rm1xYeA1NApckNUB4gjKexisRXDEMUJR/eirKzNrtjOIu4YaLMJgSjwMEIkFcDIH9OQzbaRqsRhHE+E50t6Ed/vUBjpMNCa9ruZcgsIFHc6RLa+2+luN1RdSPI1BvpqDPqw2rLBWpfyU9IPh3qtLR1pg/jNnx6pJWjcK8me1hOY8uOeg+zFgOgni1mr+Yd8MsgV1eraTs555jCCShLl6JHzx14uSmHcxasN2hqGrJeooTU/+sQmAF5Sb/GxaR8JElGDZH9K9Puw8KABRvJbUEXMxLfaN3zWsXD8QuFe7h2Vs6miYtGD+kvnxQZ0mmA/vZKGJxtQk692lXmYPqv7gUohC5zkJRqbd+WpyNitVcv4b5pu5ex5z32wT8Lz1wlcaR7askmLVEGlkt4Tb9QnufGwp3ORKwrFacerq9Uzm9s/kZlQ4GLxJlMHBftMvvqAFkRVKOL8ermupRsEd3CG0+ayhoYga31f88w/V4rm1mPdE+EOhK2gpY8lN+QOD3+TeeFdpFXiW3C5A9VmoitTxsqaZwgaGQFF5IiFpEUcw== 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)(4326008)(7636003)(8676002)(26005)(47076005)(86362001)(186003)(508600001)(82310400003)(356005)(70586007)(70206006)(6916009)(16526019)(55016002)(426003)(54906003)(336012)(36756003)(2906002)(6666004)(6286002)(316002)(36860700001)(1076003)(2616005)(7696005)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2021 12:09:46.3730 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 80e7911c-8445-498a-6721-08d992302d52 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: CO1NAM11FT040.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1371 Subject: [dpdk-dev] [PATCH v8 2/6] app/testpmd: dump device capability and Rx domain info 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" Dump device capability and Rx domain ID if shared Rx queue is supported by device. Signed-off-by: Xueming Li --- app/test-pmd/config.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 9c66329e96e..c0616dcd2fd 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -733,6 +733,7 @@ port_infos_display(portid_t port_id) printf("Max segment number per MTU/TSO: %hu\n", dev_info.tx_desc_lim.nb_mtu_seg_max); + printf("Device capabilities: 0x%"PRIx64"\n", dev_info.dev_capa); /* Show switch info only if valid switch domain and port id is set */ if (dev_info.switch_info.domain_id != RTE_ETH_DEV_SWITCH_DOMAIN_ID_INVALID) { @@ -743,6 +744,9 @@ port_infos_display(portid_t port_id) dev_info.switch_info.domain_id); printf("Switch Port Id: %u\n", dev_info.switch_info.port_id); + if ((dev_info.dev_capa & RTE_ETH_DEV_CAPA_RXQ_SHARE) != 0) + printf("Switch Rx domain: %u\n", + dev_info.switch_info.rx_domain); } } -- 2.33.0