From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 459D6A0471 for ; Mon, 9 Sep 2019 09:04:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5FAF31EA1E; Mon, 9 Sep 2019 09:04:21 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id AD35B1EA1A for ; Mon, 9 Sep 2019 09:04:18 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Sep 2019 00:04:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,484,1559545200"; d="scan'208";a="359397834" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by orsmga005.jf.intel.com with ESMTP; 09 Sep 2019 00:04:16 -0700 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.36]) by IRSMSX101.ger.corp.intel.com ([169.254.1.129]) with mapi id 14.03.0439.000; Mon, 9 Sep 2019 08:04:15 +0100 From: "Singh, Jasvinder" To: Andrew Rybchenko , "Dumitrescu, Cristian" CC: "dev@dpdk.org" , Ivan Ilchenko Thread-Topic: [PATCH v3 27/54] examples/qos_sched: check status of getting ethdev info Thread-Index: AQHVZIUwBaoH7vHQvE68fG8p/sdwlaci8Ghw Date: Mon, 9 Sep 2019 07:04:15 +0000 Message-ID: <54CBAA185211B4429112C315DA58FF6D3FDF61E8@IRSMSX103.ger.corp.intel.com> References: <1566915962-5472-1-git-send-email-arybchenko@solarflare.com> <1567755066-31389-1-git-send-email-arybchenko@solarflare.com> <1567755066-31389-28-git-send-email-arybchenko@solarflare.com> In-Reply-To: <1567755066-31389-28-git-send-email-arybchenko@solarflare.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiY2I2YThjMTUtYTY4Zi00MDFhLWJlNTItY2FjYjdiZWM4ZmMyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiM2h4dXVqK3VvdFcyV0wza0ZmTzJhWDZ5aHp6UStpa2UxSTMzR3doWit5TzVhZU55REQ5RHgrRFhGcE9PK0VQZCJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3 27/54] examples/qos_sched: check status of getting ethdev info X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" > -----Original Message----- > From: Andrew Rybchenko [mailto:arybchenko@solarflare.com] > Sent: Friday, September 6, 2019 8:31 AM > To: Dumitrescu, Cristian ; Singh, Jasvinde= r > > Cc: dev@dpdk.org; Ivan Ilchenko > Subject: [PATCH v3 27/54] examples/qos_sched: check status of getting eth= dev > info >=20 > From: Ivan Ilchenko >=20 > rte_eth_dev_info_get() return value was changed from void to int, so this > patch modify rte_eth_dev_info_get() usage across examples/qos_sched > according to its new return type. >=20 > Signed-off-by: Ivan Ilchenko > Signed-off-by: Andrew Rybchenko > --- > examples/qos_sched/init.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) >=20 > diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c index > b05206d5ab..cf9e8f4ac7 100644 > --- a/examples/qos_sched/init.c > +++ b/examples/qos_sched/init.c > @@ -98,7 +98,13 @@ app_init_port(uint16_t portid, struct rte_mempool > *mp) > /* init port */ > RTE_LOG(INFO, APP, "Initializing port %"PRIu16"... ", portid); > fflush(stdout); > - rte_eth_dev_info_get(portid, &dev_info); > + > + ret =3D rte_eth_dev_info_get(portid, &dev_info); > + if (ret !=3D 0) > + rte_exit(EXIT_FAILURE, > + "Error during getting device (port %u) info: %s\n", > + portid, strerror(-ret)); > + > if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE) > local_port_conf.txmode.offloads |=3D > DEV_TX_OFFLOAD_MBUF_FAST_FREE; > -- > 2.17.1 Acked-by: Jasvinder Singh