Received: from eggs.gnu.org ([2001:4830:134:3::10]:50673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9ZZC-0000kz-VV for qemu-devel@nongnu.org; Wed, 14 Aug 2013 07:48:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9ZZ7-0003vX-00 for qemu-devel@nongnu.org; Wed, 14 Aug 2013 07:48:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9ZZ6-0003v5-OO for qemu-devel@nongnu.org; Wed, 14 Aug 2013 07:48:36 -0400 Date: Wed, 14 Aug 2013 13:48:32 +0200 From: Stefan Hajnoczi Message-ID: <20130814114832.GB21598@stefanha-thinkpad.redhat.com> References: <1376449372-11184-1-git-send-email-pingfank@linux.vnet.ibm.com> <1376449372-11184-3-git-send-email-pingfank@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1376449372-11184-3-git-send-email-pingfank@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH v2 2/3] slirp: define timeout as macro List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liu Ping Fan Cc: Paolo Bonzini , qemu-devel@nongnu.org, Jan Kiszka On Wed, Aug 14, 2013 at 11:02:51AM +0800, Liu Ping Fan wrote: > @@ -47,6 +47,9 @@ static QTAILQ_HEAD(slirp_instances, Slirp) slirp_instances = > static struct in_addr dns_addr; > static u_int dns_addr_time; > > +#define TIMEOUT_FAST 2 > +#define TIMEOUT_SLOW 499 #define TIMEOUT_FAST 2 /* milliseconds */ Actually I'm not sure what the units are but please document them, either as a comment or call the macro itself TIMEOUT_FAST_MS.