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 DAE23A0540; Wed, 21 Sep 2022 13:22:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA0AB4067C; Wed, 21 Sep 2022 13:22:00 +0200 (CEST) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id 24C354014F for ; Wed, 21 Sep 2022 13:21:59 +0200 (CEST) Received: from kwepemi500017.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MXbVw5wyXzmWHn; Wed, 21 Sep 2022 19:18:00 +0800 (CST) Received: from [10.67.103.235] (10.67.103.235) by kwepemi500017.china.huawei.com (7.221.188.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 21 Sep 2022 19:21:56 +0800 Subject: Re: [PATCH v2 2/6] app/procinfo: add RSS RETA dump To: Stephen Hemminger References: <20220722091236.15469-1-liudongdong3@huawei.com> <20220920105148.7664-1-liudongdong3@huawei.com> <20220920105148.7664-3-liudongdong3@huawei.com> <20220920082405.781c58c1@hermes.local> CC: , , , , , "Min Hu (Connor)" , Maryam Tahhan From: Dongdong Liu Message-ID: <913dabf1-29dc-ad59-7c00-32d70c5010d4@huawei.com> Date: Wed, 21 Sep 2022 19:21:55 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20220920082405.781c58c1@hermes.local> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.103.235] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemi500017.china.huawei.com (7.221.188.110) X-CFilter-Loop: Reflected 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 2022/9/20 23:24, Stephen Hemminger wrote: > On Tue, 20 Sep 2022 18:51:43 +0800 > Dongdong Liu wrote: > >> + ret = rte_eth_dev_info_get(id, &dev_info); >> + if (ret < 0) { >> + printf("Error getting device info, ret = %d\n", ret); > > Proc-info should be showing all errors on stderr, not stdout. > And in case of error should exit with non-zero status. Will fix as below code. ret = rte_eth_dev_info_get(i, &dev_info); if (ret != 0) { fprintf(stderr, "Error during getting device info: %s\n", strerror(-ret)); return; } > > But this maybe a generic problem in lots of places in the application. Yes, we can do this later with a seperate patch. Thanks, Dongdong > . >