From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 30E798E7A for ; Fri, 21 Aug 2015 03:23:54 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 20 Aug 2015 18:23:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,718,1432623600"; d="scan'208";a="772811366" Received: from kmsmsx151.gar.corp.intel.com ([172.21.73.86]) by fmsmga001.fm.intel.com with ESMTP; 20 Aug 2015 18:23:52 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by KMSMSX151.gar.corp.intel.com (172.21.73.86) with Microsoft SMTP Server (TLS) id 14.3.224.2; Fri, 21 Aug 2015 09:23:50 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.206]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.210]) with mapi id 14.03.0224.002; Fri, 21 Aug 2015 09:23:49 +0800 From: "Liang, Cunming" To: Robert Sanford , "dev@dpdk.org" Thread-Topic: [PATCH] eal/linux: fix rte_epoll_wait Thread-Index: AQHQ2c5HQXNdc5uEfkK2BjzswGKWGJ4Vq6ww Date: Fri, 21 Aug 2015 01:23:48 +0000 Message-ID: References: <1439913234-1364-1-git-send-email-rsanford@akamai.com> In-Reply-To: <1439913234-1364-1-git-send-email-rsanford@akamai.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] eal/linux: fix rte_epoll_wait X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2015 01:23:54 -0000 Hi, > -----Original Message----- > From: Robert Sanford [mailto:rsanford2@gmail.com] > Sent: Tuesday, August 18, 2015 11:54 PM > To: Liang, Cunming; dev@dpdk.org > Subject: [PATCH] eal/linux: fix rte_epoll_wait >=20 > Function rte_epoll_wait should return when underlying call > to epoll_wait times out. >=20 > Signed-off-by: Robert Sanford > --- > lib/librte_eal/linuxapp/eal/eal_interrupts.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) >=20 > diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c > b/lib/librte_eal/linuxapp/eal/eal_interrupts.c > index 3f87875..25cae6a 100644 > --- a/lib/librte_eal/linuxapp/eal/eal_interrupts.c > +++ b/lib/librte_eal/linuxapp/eal/eal_interrupts.c > @@ -1012,6 +1012,9 @@ rte_epoll_wait(int epfd, struct rte_epoll_event *ev= ents, > strerror(errno)); > rc =3D -1; > break; > + } else { > + /* rc =3D=3D 0, epoll_wait timed out */ > + break; > } > } >=20 > -- > 1.7.1 Acked-by: Cunming Liang