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 A38AEA0C4E; Tue, 19 Oct 2021 10:18:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E67E7410F6; Tue, 19 Oct 2021 10:18:20 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2083.outbound.protection.outlook.com [40.107.220.83]) by mails.dpdk.org (Postfix) with ESMTP id 592AA410F4 for ; Tue, 19 Oct 2021 10:18:20 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P1TD+XP/fASovCmDXnC9y9quCwjbJlkxu1n3jR0os0huyVnFtOb6pak+ntDWXrTea4K4W7jMChGocj86QbD1RGSGk8nWXLRHSEyebOZtPJ6IaEfbrGjW8c6HLo18d2wMMQHENF0xMIzIODoxSjWApeBBoJvm3Thz2tldSrE4TZF5FWISm/0W9Gcrk+KFx9+ffyP6nJOKLnlgN8z2pj9PxkE7nQaDOd7gJV8/Re2lMZOCjuq5O7Brrk2JFZfCg7rNAC0q460OqcLDYD9/+p+Q/jsHyolZ9iSE/UlLXuaP2gEMqDor0v1hRUSU5GZ8GaAHeoWnZcyPbEqJmUHm/ffuHg== 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=ARzYJYirI5vYdhAkrn7VGSz7kstwN4YNGZ+SiVW3Buxs+RvTrHVykMXY+hoYzg+T4rmMQh3Zki1DGoDgbOL71VrfuIlOT4Kza0eUg4EQWE5XIpVUas7UB5+IggZuBo+yR97KcFpJL9V7gIwlx4r8AzZnC0Lx7FRO+XBO0KcHRE/oj92wRXdN7E7PKvzMFMKnSJNzhuvGLwdW/mvV+L18SxvI6ourwkMO1CyBWUoSyXAHqPnRDumIaJvoKvgG/a3MB5TrIw+eGaDbKL7hk+FZRfXU4RXSCfi7oCgzuiHm7xqc2M+0+qDItK9QS9sm6UTewvCpLv9cEuusmVcvGBc3Yg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.com 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=PqCkh7X62P2syfsYgE2ZeQ0dsIssp7IYZan02Rx1T03yTqhyZPqLZw+SYPMcOMzl7FNzHHmreZqNKNhGE1UTQFBWMMk82djw8WWVDX36i3q27Vw6xDpA/J1Fv/YWFfHD2I+iAhClOlHf0ri6ijOdaPj1Gs9sJdInm+pyocMZf0L3xB1zdxQ02ToB1f8ymN+e2lAiQdafqTbcx+jBforJ1FoDy/5cjzFFlwlOQrPcwWPC/eLkDAIiJDD8C4p4sCLT+Uve2ZR7LESr5F59CNyBpVvuHsi35+KptNuqh7hntYyxv2KQH5I6U0E+qOXOE/fPj5vavwZSn0dI4+PCaPbKJg== Received: from DM5PR07CA0095.namprd07.prod.outlook.com (2603:10b6:4:ae::24) by DM5PR12MB1786.namprd12.prod.outlook.com (2603:10b6:3:112::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Tue, 19 Oct 2021 08:18:17 +0000 Received: from DM6NAM11FT031.eop-nam11.prod.protection.outlook.com (2603:10b6:4:ae:cafe::91) by DM5PR07CA0095.outlook.office365.com (2603:10b6:4:ae::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.14 via Frontend Transport; Tue, 19 Oct 2021 08:18:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; 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 DM6NAM11FT031.mail.protection.outlook.com (10.13.172.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4608.15 via Frontend Transport; Tue, 19 Oct 2021 08:18:16 +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, 19 Oct 2021 08:18:04 +0000 From: Xueming Li To: , Zhang Yuying CC: , Jerin Jacob , Ferruh Yigit , Andrew Rybchenko , Viacheslav Ovsiienko , Thomas Monjalon , Lior Margalit , "Ananyev Konstantin" , Ajit Khaparde , Xiaoyun Li Date: Tue, 19 Oct 2021 16:17:34 +0800 Message-ID: <20211019081738.2165150-3-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211019081738.2165150-1-xuemingl@nvidia.com> References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211019081738.2165150-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: 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: bacd7216-97c3-4e9a-61a6-08d992d900ec X-MS-TrafficTypeDiagnostic: DM5PR12MB1786: 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: A7yMuV2MTMiyc0LUFaheu1+EQSx/RCB7SwicpNPwTookufOQQhKTzNo1kSp2iieQwxfWftaYzV6zk/YbDSsUGqg639pBEr0we5LK2dxA55c+UsgU4FlimvU0Im4tyBceXBm4PFxld+0ZN3CsQCX6oiC2fNyIQ5uJmjNxnWKcyqJA8ZRuaIX5yfTuCDMF9IQtXolOQChOH/b4S9cFk0rt6kYL4IFn8MgKNl4/ssGJEh+ZaRV1Fmg5ttxq8u1b2Lghft8f2h0juTusS4MUqZ0q4NZKVHqk1nD/9xF/gC25suL2gdhg9k3DL2E5M6H8GpV0LNqW53dY2qIJadeA5ky9mUcMfi5twP8mXhBEhO5HOQMJaAqwi1+es67vb3NHL4PWgtFv3JmwMTpssSfg7x0VF8nGXg5UrLxn/ukoBq/Iw00jTEHBnVDsBAgl8XUmTN3vxXUddD/NCKfRIGURTYGUZ0cN3W9VwGurjoLecIR+OTf0cmiaJCqze4J0kpiO5LNEu+Ojy9MkKV9nsVn99RmglN5t+Y114XWbgrjaSNb27rxBPU0K8aTS9WsMXY76fz3RC58XaK7YcWenh/PvfH97d3mtfmv/3fGx1irVAifI89cuWPkW+C3BrpX+mlo/Ikdf0naEgSFC90Fb3cYMKbwV4Ws6jlhdwwVDx0p1rV9YPTMKPmP1UM0rcM90+1ytJCV+oXz+yFDi2Vy6Svoi1NxEiA== 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)(356005)(508600001)(426003)(336012)(186003)(26005)(16526019)(8676002)(36756003)(2616005)(1076003)(82310400003)(5660300002)(2906002)(55016002)(6286002)(8936002)(7696005)(47076005)(54906003)(110136005)(6666004)(4326008)(316002)(86362001)(70586007)(36860700001)(7636003)(70206006); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2021 08:18:16.4419 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bacd7216-97c3-4e9a-61a6-08d992d900ec 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: DM6NAM11FT031.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1786 Subject: [dpdk-dev] [PATCH v9 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