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 C95E9A04B7; Wed, 14 Oct 2020 15:32:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2073E1DE41; Wed, 14 Oct 2020 15:29:31 +0200 (CEST) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 092451DDC4 for ; Wed, 14 Oct 2020 15:29:20 +0200 (CEST) Received: from mx1-us1.ppe-hosted.com (unknown [10.110.50.150]) by dispatch1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id A4C0720081; Wed, 14 Oct 2020 13:29:18 +0000 (UTC) Received: from us4-mdac16-3.at1.mdlocal (unknown [10.110.49.149]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id A3AB1800A7; Wed, 14 Oct 2020 13:29:18 +0000 (UTC) X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (unknown [10.110.49.103]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 3C00E100061; Wed, 14 Oct 2020 13:29:18 +0000 (UTC) Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 01B78980087; Wed, 14 Oct 2020 13:29:18 +0000 (UTC) Received: from ukex01.SolarFlarecom.com (10.17.10.4) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 14 Oct 2020 14:29:13 +0100 Received: from opal.uk.solarflarecom.com (10.17.10.1) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 14 Oct 2020 14:29:13 +0100 Received: from ukv-loginhost.uk.solarflarecom.com (ukv-loginhost.uk.solarflarecom.com [10.17.10.39]) by opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id 09EDTDiA009172; Wed, 14 Oct 2020 14:29:13 +0100 Received: from ukv-loginhost.uk.solarflarecom.com (localhost [127.0.0.1]) by ukv-loginhost.uk.solarflarecom.com (Postfix) with ESMTP id 8199C1613A9; Wed, 14 Oct 2020 14:29:13 +0100 (BST) From: Andrew Rybchenko To: Ferruh Yigit CC: , Ivan Ilchenko Date: Wed, 14 Oct 2020 14:29:01 +0100 Message-ID: <1602682146-4722-7-git-send-email-arybchenko@solarflare.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602682146-4722-1-git-send-email-arybchenko@solarflare.com> References: <1602682146-4722-1-git-send-email-arybchenko@solarflare.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.6.1012-25724.003 X-TM-AS-Result: No-0.385100-8.000000-10 X-TMASE-MatchedRID: URRd+XkY8EzRlxaUc/KTYX4neC0h7SAD3V4UShoTXad+SLLtNOiBhiXD Fxgit6TpGTEKg4xHKqqbHAuQ1dUnuWJZXQNDzktSutvHF25zoU99LQinZ4QefCP/VFuTOXUT3n8 eBZjGmUzkwjHXXC/4I8ZW5ai5WKlypahlEGd2cKgUi0WYpBNca4IR4y5/iVfT+eaNSYcbybwkFC 1nhonUNv0dMi6c2n8KVCgdWKo6QUfnGeH1FLXFUEPKu+DloSNt8OyccFNBL2TKhETi2//sjuP9C b59K8ACZrS+A8PszW/U9h9N881NSQ== X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--0.385100-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.6.1012-25724.003 X-MDID: 1602682158-3T0QFdiK7guq X-PPE-DISP: 1602682158;3T0QFdiK7guq Subject: [dpdk-dev] [PATCH 06/11] kni: check eth dev stop status 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" From: Ivan Ilchenko rte_eth_dev_stop() return value was changed from void to int, so this patch modify usage of this function across kni according to new return type. Signed-off-by: Ivan Ilchenko Signed-off-by: Andrew Rybchenko --- app/test/test_kni.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test/test_kni.c b/app/test/test_kni.c index e47ab36e02..931e8cb67e 100644 --- a/app/test/test_kni.c +++ b/app/test/test_kni.c @@ -755,7 +755,8 @@ test_kni(void) ret = 0; fail: - rte_eth_dev_stop(port_id); + if (rte_eth_dev_stop(port_id) != 0) + printf("Failed to stop port %u\n", port_id); return ret; } -- 2.17.1