From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 1B12A1B213; Thu, 19 Oct 2017 15:22:33 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EF43B10F28; Thu, 19 Oct 2017 13:22:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com EF43B10F28 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=aconole@redhat.com Received: from dhcp-25-97.bos.redhat.com (unknown [10.18.25.172]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0E536B18E1; Thu, 19 Oct 2017 13:22:31 +0000 (UTC) From: Aaron Conole To: dev@dpdk.org, stable@dpdk.org Cc: =?utf-8?Q?Micha=C5=82_Miros=C5=82aw?= , Jingjing Wu , Luca Boccassi , Yuanhan Liu Date: Thu, 19 Oct 2017 09:22:30 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 19 Oct 2017 13:22:33 +0000 (UTC) Subject: [dpdk-stable] [PATCH branch-16.11] net/i40e: return errno when interrupt setup fails X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Oct 2017 13:22:34 -0000 From: Micha=C5=82 Miros=C5=82aw Signed-off-by: Micha=C5=82 Miros=C5=82aw Reviewed-by: Jingjing Wu --- This is cherry picked from commit d75547718c87 ("net/i40e: return errno when interrupt setup fails") and applies cleanly. This is just a backport request. drivers/net/i40e/i40e_ethdev.c | 5 +++-- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 65e10f3..191e858 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -1704,8 +1704,9 @@ i40e_dev_start(struct rte_eth_dev *dev) !RTE_ETH_DEV_SRIOV(dev).active) && dev->data->dev_conf.intr_conf.rxq !=3D 0) { intr_vector =3D dev->data->nb_rx_queues; - if (rte_intr_efd_enable(intr_handle, intr_vector)) - return -1; + ret =3D rte_intr_efd_enable(intr_handle, intr_vector); + if (ret) + return ret; } =20 if (rte_intr_dp_is_en(intr_handle) && !intr_handle->intr_vec) { diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/= linuxapp/eal/eal_interrupts.c index 368863f..25797e4 100644 --- a/lib/librte_eal/linuxapp/eal/eal_interrupts.c +++ b/lib/librte_eal/linuxapp/eal/eal_interrupts.c @@ -1157,7 +1157,7 @@ rte_intr_efd_enable(struct rte_intr_handle *intr_hand= le, uint32_t nb_efd) RTE_LOG(ERR, EAL, "can't setup eventfd, error %i (%s)\n", errno, strerror(errno)); - return -1; + return -errno; } intr_handle->efds[i] =3D fd; } --=20 2.9.5