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 1583541E9B; Wed, 15 Mar 2023 09:28:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D4F0940A7A; Wed, 15 Mar 2023 09:28:54 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 55957400EF for ; Wed, 15 Mar 2023 09:28:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678868933; x=1710404933; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=PAsHASEqLy+l/zRb0xIImsKmbGuygHIVQb0WDshDelE=; b=lfQQhdVVDrGd7X49y47Kwxb/MaBwCQ7bkjXgWNpsjxmg+kNsiv1ZqIiA JysHyLFCGVtd+V+2sxVyf/AbO8hB4yTTohuk/IXw5ZMqNr6rhJ/lhBpc6 Uz3lHSeAkCCBnbNLr/o+i5+VZK8mM7ZPlaSxa4RDkTUE317heag6RbmJp 0eLUCS1dX/NaIayyM6yda9nnHU/3LSHi09NGPnMPOj7okWHGPN4zkUKom DLeCMcv9AajzaJ+dx8oGIPZLEYA8PU4NYPZTwM/tJ7h0UGGiTXOA+2iLv ZN3t82OvI3jItdlMy3G59Rm0FYBAkoGBAcWebrafmfSPcAxfR5M5eRpwR Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10649"; a="335130590" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="335130590" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2023 01:28:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10649"; a="853524011" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="853524011" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga005.jf.intel.com with ESMTP; 15 Mar 2023 01:28:52 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 15 Mar 2023 01:28:51 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Wed, 15 Mar 2023 01:28:51 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.49) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Wed, 15 Mar 2023 01:28:51 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IWb+8hwpgOvpM02/0ZnFC2v+Xz/4bNf4KumCEJ12jbqA7zf1bhRLuSCFZrzNsKi0gZrrp6Ls9q/+U5drynTj96M+XCj558+7aZLPWGd/399iiYA5kJxnO5k9Y1dd5zcL/Zdechmyentoko4IrCCCNCOBKqC+SnNv/lYrpzPjwqk8CmC7OwKU2J5qvQqOyl8DtiHBSIdIk3SPnZgqzgSqOCDEc3BAW8ltT7oEAKDW+G1tLdarWGKvijiJtBFADDVe3NbuqhEkfic4ijTHgGy19zJ+qckOiezDTrXyQQxMt51I/5k4jKuCll10JH4XRCbovkmJvlYZ7S5VE/xtYru/2Q== 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=AsI6BqRhhEBPPVjzYPFrAW+3KqYsle6/3gH40Ow54UM=; b=aIu1+ZuOhUHBubCb5X6WqmLI6RAdRLKKZGGNc7tcEKhqpd6ADJoZpPh9ESJth3GZEG97MZUknTvK5pXWWObGp0XzWdari42JjQwsujrN+2wxMud+k6XAoLi24s0g/Tmt/HusyC1+geogWBx4PRNhUHyNyW27iv3HwvG0tJt/WzJIpvB7TEoL+ppckAM2PAduv03JphfU5+Rj7R0JHecGH8mvsoMxneArU49CEmc/gSyBHcGPO3zT9bGvwoFz5T7V4jaXDSVhA2KLMWn+c1DsVFxt8r9r4nMN4kiCAKJX9MZ6oNunpnYdprIlPp7zj2Eilc7hirTsuZGYgvLoAURSDg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MWHPR11MB0062.namprd11.prod.outlook.com (2603:10b6:301:67::34) by DM4PR11MB5472.namprd11.prod.outlook.com (2603:10b6:5:39e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.29; Wed, 15 Mar 2023 08:28:50 +0000 Received: from MWHPR11MB0062.namprd11.prod.outlook.com ([fe80::944c:b2ed:2b29:99fd]) by MWHPR11MB0062.namprd11.prod.outlook.com ([fe80::944c:b2ed:2b29:99fd%3]) with mapi id 15.20.6178.026; Wed, 15 Mar 2023 08:28:49 +0000 Message-ID: Date: Wed, 15 Mar 2023 13:58:40 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: [PATCH] app/testpmd: dump private info in 'show port info' Content-Language: en-US To: Chengwen Feng , , , Yuying Zhang CC: References: <20230314115035.33356-1-fengchengwen@huawei.com> <20230315023328.35980-1-fengchengwen@huawei.com> From: "Singh, Aman Deep" In-Reply-To: <20230315023328.35980-1-fengchengwen@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN3PR01CA0043.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:98::19) To MWHPR11MB0062.namprd11.prod.outlook.com (2603:10b6:301:67::34) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR11MB0062:EE_|DM4PR11MB5472:EE_ X-MS-Office365-Filtering-Correlation-Id: 6edb4dfc-774a-4ec1-ca69-08db252f4d55 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vY1uIyftt8/3S3Qo0HBRXw87H+6+f3Z8vi8Ia+K4Xgz2W4stsJoS5qPlIh76Sd8Nz2C4wYWBbL7nsui2iAvMplxKkdIwOjFsYzco62l8/NU2/cqqSaWn6IuktQn2oOtAIPDDSOuqNKhZezxST3TtKo/HoMnN2yjQVDnxXwD5BwkqGMfJImzExIbSQmloBOd+h0d/weXNI/5Ob3blGH+n8rrPOKJ12UufzcmfjYZNCZNkK1RPb9zhKqSz3HFjPrcjoW7wqH+RffaFdrunmhBSt5lFC4WqUUoWZxci2u4lKbtqDPesYusIzxnNc/GAlN1t8Q0R8SE7yTbEoMNJYgevLE8DZQtxl+B9mlLH800qZKZu+BIErfezMYCX3RYal9o7M5V8dSQMUz0yEGMk/N8LKB7OvBs4mRVWCFf1vlO/Xw6hNw+EL1JwtB6g+MkG3jeot0kIt/7Qu3fP2IbaeFWqj4V7zP6V9Eh7Tj3et4gjYIU7pfNVq+IY2Km8P7PX9mmcDfWrI9Yx5ijidsAvMLnbt+JWEVZhYMa5h+tKt8RLdOaTc9BE4NaEzL3/7BMTxc8TwcxCY4uNnmwSolmYZY6Bue7sWotYuIC/CjkRCxczkccoxUzO0cwC4iVTFQckhYZfExbKUJvGObjeasn+uzchHTtZJUqem65AqkyjXbGExtWC7ysixuUhmPXODS6MeHqo3CiFYKjn6Wx9V50FhcpvRx4GTFjbmSlL13kp6J+eNZg= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB0062.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(396003)(366004)(136003)(346002)(376002)(39860400002)(451199018)(82960400001)(31686004)(5660300002)(2906002)(4744005)(36756003)(86362001)(31696002)(8936002)(41300700001)(66476007)(66556008)(66946007)(316002)(110136005)(38100700002)(4326008)(8676002)(478600001)(2616005)(6636002)(186003)(53546011)(6666004)(6486002)(6512007)(6506007)(26005)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OFFWN3N6c3JNSGYza1dyRTBFUWhkdnN0K1NJZ3BJTWVoTHZUalgvR0duNXA2?= =?utf-8?B?SDZDd2hDZXNIODI1WU5vQ3czbnRiSXJPcG1HaFhYeHN2T3Qwd1RpU0hXM09w?= =?utf-8?B?UC9KWmNXNU5MZzB3YTlIemdTUnB2UXlWNEZtV1FwSHg1bHo5d3NWR0l6ejNa?= =?utf-8?B?OXI5RExGcDIrUU1Wc3c0TjhWWERkSEpxZ1hOalRYMGwrZzJxWmxzbWtFcGJV?= =?utf-8?B?Y0twbkJiTWk1aURjdWwzVDdQaVN5OWFWUDlsNFVrRHgyM3VLQi9qM1NrbDEw?= =?utf-8?B?SDNkSzJFck43dFprY21WRlI3VmZJajBGZERLM1BESTcxeGlCTjN5OGFsZWht?= =?utf-8?B?T2NjZnZ5dkplRE5NVXlwQ09RM1pvODg5cWl1Z2RLc1NxYzVQ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= X-MS-Exchange-CrossTenant-Network-Message-Id: 6edb4dfc-774a-4ec1-ca69-08db252f4d55 X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB0062.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2023 08:28:49.6090 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oeW9Mvav/1NHsXToFWMk0DrvfNFkYXShKgnAnFWJNkdhqCPWY2T3RTjx4+uvfrWrtHo+wTQRRKFT9aybObGqm2ALdz4cdOzt4uhLvTMtqR4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5472 X-OriginatorOrg: intel.com 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 On 3/15/2023 8:03 AM, Chengwen Feng wrote: > This patch adds dump private info in 'show port info [port_id]' cmd. > > Signed-off-by: Chengwen Feng Acked-by: Aman Singh > --- > app/test-pmd/config.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c > index 018536f177..ab5199f223 100644 > --- a/app/test-pmd/config.c > +++ b/app/test-pmd/config.c > @@ -938,6 +938,11 @@ port_infos_display(portid_t port_id) > printf("unknown\n"); > break; > } > + printf("Device private info:\n"); > + ret = rte_eth_dev_priv_dump(port_id, stdout); > + if (ret < 0) > + fprintf(stderr, " Failed to dump private info with error (%d): %s\n", > + ret, strerror(-ret)); > } > > void