From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id D13202C16 for ; Fri, 22 Apr 2016 13:51:29 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 22 Apr 2016 04:51:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,517,1455004800"; d="scan'208";a="790117265" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by orsmga003.jf.intel.com with ESMTP; 22 Apr 2016 04:51:28 -0700 Received: from irsmsx112.ger.corp.intel.com (10.108.20.5) by IRSMSX153.ger.corp.intel.com (163.33.192.75) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 22 Apr 2016 12:51:27 +0100 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.12]) by irsmsx112.ger.corp.intel.com ([169.254.1.151]) with mapi id 14.03.0248.002; Fri, 22 Apr 2016 12:51:27 +0100 From: "Mcnamara, John" To: "Kobylinski, MichalX" , "Richardson, Bruce" , "dev@dpdk.org" CC: "Kobylinski, MichalX" Thread-Topic: [dpdk-dev] [PATCH] examples/netmap_compat: fix infinite loop Thread-Index: AQHRnIhu4GVVablXTkex4SC9+CSPbJ+V4FXA Date: Fri, 22 Apr 2016 11:51:26 +0000 Message-ID: References: <1461322049-30416-1-git-send-email-michalx.kobylinski@intel.com> In-Reply-To: <1461322049-30416-1-git-send-email-michalx.kobylinski@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_PUBLIC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMGIyNDliOTYtMDk1ZC00ZGZiLWIxODItZDhiMmI1NjhlZjM2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX1BVQkxJQyJ9XX1dfSwiU3ViamVjdExhYmVscyI6W10sIlRNQ1ZlcnNpb24iOiIxNS45LjYuNiIsIlRydXN0ZWRMYWJlbEhhc2giOiJHaXFlS0ExNTBkNXJYY3RhN2E0SUFCdHpzK2VTVUFPeG84bElmXC92aXluZz0ifQ== x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] examples/netmap_compat: fix infinite loop 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, 22 Apr 2016 11:51:30 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michal Kobylinski > Sent: Friday, April 22, 2016 11:47 AM > To: Richardson, Bruce ; dev@dpdk.org > Cc: Kobylinski, MichalX > Subject: [dpdk-dev] [PATCH] examples/netmap_compat: fix infinite loop >=20 >=20 > + if (timeout > 0) { > + ret =3D -1; > + return ret; > + } > + return -1; without the braces is probably okay in this case.