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 08A40A0C43; Mon, 18 Oct 2021 15:00:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D8BE240683; Mon, 18 Oct 2021 15:00:41 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam08on2046.outbound.protection.outlook.com [40.107.101.46]) by mails.dpdk.org (Postfix) with ESMTP id 49BD440141 for ; Mon, 18 Oct 2021 15:00:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RgqovhHodQ8oorU2HUXoOcb8tPdW7jfEw7R2mlL067jf3XlT2sSaVvGNPKAVCNiu+RbvNyxB97KirtC2ZVF78EVA/rJaEI+oYRcSLQdXmmofgwkHZKCFBg1IzYJtnxiPqpNtd5uTyWBabYEdw/oj1hxoTEdwu9FRuxZWZv76gBhLsoiQXy+jBgcBqp1lDg6J5zgpKQaU2F7OoOBQGhW1bHsZn/E0oZIz9qVJ0Eh7T32AEbGlMvt0QhyNzBX/4EhGa3m1oWHsPKvtRDq/P864/r4r/gueH6tRoceo03z05QBWqwHyljgL+qRj/pBEJw8TxjQKiSH+9fXOOb7hgPZF9w== 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=R0ZOnDwC5eF9BEJEGgzU3vesfb9GfWj1J4m+q3sGG9PTXXDIz1D1247N1vFVxCOAwj5WGP+0A3usC9tajhAy/789SkB+Zbjh1/Do1/DzUk1IW4HGRTjt/2RDwrQrzqFQN7tBiyqDwCr2cvlEqCEjURG9Pa0HzY+02vayXikt8SFMCdDjdmo3YhCbkE1rSB5llUxCBEPsbBbhzzIbyDTbDaKBAKrpCFuMwP7YSrnL3Dfu6DC125PjpP6S0QhDNst8dHkN4zc+kaw5TaxOFXK3BtSVlaknCaPKXHDl2ad7cpvtr69dS29yt/THtCpZzJKXfitseeR9C99+2vgRFiz5xA== 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=RIpyJ89n2C7cNtou+tt62tmv6/6W1TKwUy7gakfx7gzZIcK3fu9TUgD+bchNdv8vM+OkVQlSMrLTkVpARrV7V4s42txwp68WZjL0tu/dEESdEGzGsXDW/j79LoRX0CmlV3HMMTjMieOdCB1Jgw7iYU3zeDfw5Y7shTVymEOuhCf33IMbAYqCvJa0gXgYm/cbQJXOVcRbbLZKM9STsxSn6MbzkHA2IDy0ZqtZCqipJVc52PyiBERKbuvcA0w82GtyFLiNeU4SUviB9vn0Gos2Pb5eID0II2WBiHjSsEmHNSH5LXIhb4KQmm/MkPW0DS5aen98bf6uD5i48/IFis4pfA== Received: from MWHPR18CA0036.namprd18.prod.outlook.com (2603:10b6:320:31::22) by CH2PR12MB3781.namprd12.prod.outlook.com (2603:10b6:610:27::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.14; Mon, 18 Oct 2021 13:00:37 +0000 Received: from CO1NAM11FT019.eop-nam11.prod.protection.outlook.com (2603:10b6:320:31:cafe::de) by MWHPR18CA0036.outlook.office365.com (2603:10b6:320:31::22) 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 13:00:37 +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 CO1NAM11FT019.mail.protection.outlook.com (10.13.175.57) 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 13:00:36 +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; Mon, 18 Oct 2021 13:00:25 +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:59:38 +0800 Message-ID: <20211018125942.2067353-3-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211018125942.2067353-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211018125942.2067353-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: 72bc04bc-9f9a-453e-3c94-08d992374782 X-MS-TrafficTypeDiagnostic: CH2PR12MB3781: 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: Pj4CLf0zY0yToJO3rN33su3F8wjze1PRfppZ9YIKzQb7xHSGhaGCaE/xv9xAiUyhUbqIKfTQ7BrlyQtGs2/ToLPC20jIh3/hVEclQMkUymm0zdZEdEeCOXg97Z5V8jZXxI+EyZnNZZye6y5j+AOquIXvENWsXqS7pZyxFrp2kFDBXPoDjuB/st7oIikxlq633rPTQbPr5TS3ca5QdFr5kWFByonQBXw6sEbq673ZeHZW0NPn7B3QHKS6MLGOK+0v0yDryg/DeYEDrK3AZOuW87iQzjHN1nixLAq+qZrC98NLzZDHyTKUJix9Rs3yuF6g374guSvmw3aEn5CZ7ZS/UZAB3tCAJftHq0Y5KHyXN/IE+AQTWBZUiR4ElRh5oIPJRaTQxEbg9TvcdqSLOaJfBwbGDlvmHZO/Lp+i1MxNUIoVfizm+wCH/67zKCz1n65+b5WBRdko5AEDGPW1gKjYMVMJ8w3eLXgQjxBIu+pQux4SJItM9CR0GPZE5+UACMRbutV3sfdYp+L/22M0e322qpOlB73+iC3vz5AeWdkf/TbVIz6cAG/oDa80nDrySozWG9Z3CiQYYcy430Tp/AtKp5Ur8NnePdlWwDCSh5HZRGe2kHDf6cuWMK+5TJfOA4aCQeHgblfjZeyVzfK2RMAJVm2fFReHK0tqaGSkJncfEpzaygddhnyz0ML++5j2eUGmV7BKG1mSyZ6WqghGc4MqmQ== 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)(6286002)(5660300002)(8676002)(55016002)(36756003)(7636003)(8936002)(356005)(47076005)(508600001)(36860700001)(1076003)(54906003)(86362001)(316002)(82310400003)(2616005)(2906002)(6916009)(186003)(6666004)(426003)(26005)(70586007)(70206006)(4326008)(336012)(16526019)(7696005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2021 13:00:36.6611 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 72bc04bc-9f9a-453e-3c94-08d992374782 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: CO1NAM11FT019.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB3781 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