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 B1635A2E1B for ; Wed, 4 Sep 2019 07:57:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BD2DD1EC86; Wed, 4 Sep 2019 07:57:54 +0200 (CEST) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50074.outbound.protection.outlook.com [40.107.5.74]) by dpdk.org (Postfix) with ESMTP id 7005D1EC1D for ; Wed, 4 Sep 2019 07:57:53 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kOAKCLBZVwuUtS3Bz79ox5fsSsG3PuRR9oRLNz9A5/z6yfnXKr3HHV6Bl9bPHhImk2sRm8VPDzldkz3uLcQ3K/3u0x5o69YDTcVVzI5JMXd1MbDeHbhO2QoMmIeLXFjN8AEHUEzsQPk2GxLDbF5fmwgGLUyORFIVBtWnEvwlgNOpMOfPtbNZo+v2NULVrDAtaucZvbwJo76TCT1XAA19GhoX3pyRlu96//euQ0gYDB43UqGP4XWuqFZqbd5Hj0C8AiJB+vpAj/1Q0djc9pVtQZ3DkD33vICNJfH6aadhO8FN3KDlF6KW69szapACBjg21AHWyR84/jWOMfzYudhD9Q== 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-SenderADCheck; bh=7ClF3pfMvpHREwDdvAG/0FacdJC0cywiUzpp0IJvAbw=; b=W8hirVP7AEuewZGEmGTcs9tfu97roYB3eyzmlDrTwOruYa6+OMPQI47Is8luvFg8HA8dxRpfWYK49EkyfjElj3EmP8LTg++s1OTVq4BKenGGd7uaV217qBcz1NRVGZrkx7FHzqXmGNOoId+tkIHmyIfRm6/or6GQHOCPiOhkBzvRm+EHYH+57/CXjbzKUEtP/X7iuww+sJSgvnptV+VY75c2VAsOVYybvXF8e9ZmB8lz1IkxUCDm4HlxEajvhhAl8YNaiUbv/oKXuOu8T3ZR3zQK0eckhbu46X8Rn5Ddg0LrKKEsbjHviBNkoDhRxOvx+lLcP6Ny4ndllMFWt8PhEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7ClF3pfMvpHREwDdvAG/0FacdJC0cywiUzpp0IJvAbw=; b=CQmfgs7XJHlf6cnSlA0CGUfXD8guf8xpN2GE08FqlyW1SccgXngd9OwzXbrEutVJCUb0PB4Q34+o8i5SUdELYxXpcL4DtokCKvq69cO/9nSdEXrpFW0RL3IJ91WqJ0tJGJpvAgBVEMsvhQJkoKP6/kC0vpyxpkdrgNs7ZdcLves= Received: from AM4PR05MB3425.eurprd05.prod.outlook.com (10.171.190.15) by AM4PR05MB3329.eurprd05.prod.outlook.com (10.171.189.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2220.20; Wed, 4 Sep 2019 05:57:52 +0000 Received: from AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::4c32:a34f:5558:a2c6]) by AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::4c32:a34f:5558:a2c6%7]) with mapi id 15.20.2220.021; Wed, 4 Sep 2019 05:57:52 +0000 From: Ori Kam To: Andrew Rybchenko , Marko Kovacevic , Bruce Richardson , Pablo de Lara , Radu Nicolau , Akhil Goyal , Tomasz Kantecki CC: "dev@dpdk.org" , Ivan Ilchenko Thread-Topic: [PATCH v2 28/54] examples/flow_filtering: check status of getting ethdev info Thread-Index: AQHVYl+cVKkRvgsdr0qTY86NOJuZxacbBghg Date: Wed, 4 Sep 2019 05:57:52 +0000 Message-ID: References: <1566915962-5472-1-git-send-email-arybchenko@solarflare.com> <1567519051-28189-1-git-send-email-arybchenko@solarflare.com> <1567519051-28189-29-git-send-email-arybchenko@solarflare.com> In-Reply-To: <1567519051-28189-29-git-send-email-arybchenko@solarflare.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; x-originating-ip: [185.175.35.255] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 485c7e26-79da-4c9d-da1f-08d730fcd2c6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:AM4PR05MB3329; x-ms-traffictypediagnostic: AM4PR05MB3329: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:298; x-forefront-prvs: 0150F3F97D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(376002)(39860400002)(136003)(396003)(366004)(199004)(13464003)(189003)(478600001)(64756008)(66946007)(110136005)(5660300002)(54906003)(71190400001)(71200400001)(66556008)(76176011)(33656002)(81166006)(81156014)(14454004)(8676002)(7696005)(186003)(99286004)(53546011)(55016002)(4326008)(8936002)(316002)(52536014)(102836004)(6506007)(2906002)(26005)(14444005)(256004)(86362001)(6246003)(53936002)(6116002)(3846002)(66066001)(25786009)(486006)(6436002)(9686003)(7736002)(446003)(476003)(66446008)(66476007)(74316002)(11346002)(229853002)(76116006)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3329; H:AM4PR05MB3425.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: vdB+3K+bwnyc7pa9I0zZVjPgkgKmnmQtea8PmlQm2hA0jrJ+NoRqMCcT6K2o1lLOcAohZBA+DjWT8BwF84u7DP3RHsXpLSIsPGzgSHWkal/ThpfOZGuitpkPSyMr+WTmMK/Q6KJfLsG8cR9msWjLeybN8i7N6qs42VoJqwc/a2JP8y5S4KLkYjNsgv/W9uZUCo6GJ/wAK+kw9RKJhA/lQxwmfHmNRPThmADyJ6RUbW8jSagebFhu7iZD1WCP4M6hFEYuoOeOhORztFCqcmFAyRVnqMGTyZtyCufQWXyu4BjUoW0fitfOA8XGK1/3rF3Br8u6Yyw1CA1x3tKJBQgk9vXOLdxqclo7nQFa8p4wxx2V0CXku4SDFdaxeggUCSe3Sl/WKUdHoF1Xgl5A6uYgjGqlcr7CuEgJ0Vpl7bLAzCg= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 485c7e26-79da-4c9d-da1f-08d730fcd2c6 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Sep 2019 05:57:52.1454 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jIlqiJyn6XPXC3f+hU5YYdsJIJq4mYmW2xxYepRpkqHCavQOVsJ4VIArmnF223hp3Dq4YTUgRXCC+ERscm9+hQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3329 Subject: Re: [dpdk-dev] [PATCH v2 28/54] examples/flow_filtering: 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 > Sent: Tuesday, September 3, 2019 4:57 PM > To: Marko Kovacevic ; Ori Kam > ; Bruce Richardson ; > Pablo de Lara ; Radu Nicolau > ; Akhil Goyal ; Tomasz > Kantecki > Cc: dev@dpdk.org; Ivan Ilchenko > Subject: [PATCH v2 28/54] examples/flow_filtering: check status of gettin= g > ethdev 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/flow_filtering according to its new return type. >=20 > Signed-off-by: Ivan Ilchenko > Signed-off-by: Andrew Rybchenko Acked-by: Ori Kam Thanks, Ori Kam > --- > examples/flow_filtering/main.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) >=20 > diff --git a/examples/flow_filtering/main.c b/examples/flow_filtering/mai= n.c > index a0487be..fe064fa 100644 > --- a/examples/flow_filtering/main.c > +++ b/examples/flow_filtering/main.c > @@ -136,7 +136,12 @@ > struct rte_eth_rxconf rxq_conf; > struct rte_eth_dev_info dev_info; >=20 > - rte_eth_dev_info_get(port_id, &dev_info); > + ret =3D rte_eth_dev_info_get(port_id, &dev_info); > + if (ret !=3D 0) > + rte_exit(EXIT_FAILURE, > + "Error during getting device (port %u) info: %s\n", > + port_id, strerror(-ret)); > + > port_conf.txmode.offloads &=3D dev_info.tx_offload_capa; > printf(":: initializing port: %d\n", port_id); > ret =3D rte_eth_dev_configure(port_id, > -- > 1.8.3.1