From owner-svn-src-head@FreeBSD.ORG Mon Mar 30 12:51:19 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E430FEDF; Mon, 30 Mar 2015 12:51:19 +0000 (UTC) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebius.int.ru", Issuer "cell.glebius.int.ru" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6534CBBE; Mon, 30 Mar 2015 12:51:18 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.9/8.14.9) with ESMTP id t2UCpFEX043869 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 30 Mar 2015 15:51:15 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.9/8.14.9/Submit) id t2UCpFt7043868; Mon, 30 Mar 2015 15:51:15 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Mon, 30 Mar 2015 15:51:15 +0300 From: Gleb Smirnoff To: Hans Petter Selasky Subject: Re: svn commit: r280759 - head/sys/netinet Message-ID: <20150330125115.GI64665@FreeBSD.org> References: <20150328191629.GY64665@FreeBSD.org> <5517B433.5010508@selasky.org> <20150329210757.GA64665@FreeBSD.org> <1427666182.82583.4.camel@freebsd.org> <55190EA7.9010905@selasky.org> <20150330105913.GF64665@FreeBSD.org> <551933AF.4080300@selasky.org> <20150330120700.GH64665@FreeBSD.org> <551943B4.90102@selasky.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <551943B4.90102@selasky.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Adrian Chadd , "src-committers@freebsd.org" , Ian Lepore , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" , Fabien Thomas X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2015 12:51:20 -0000 Hans, On Mon, Mar 30, 2015 at 02:38:12PM +0200, Hans Petter Selasky wrote: H> > DELAY() into network stack? Are you serious now or kidding me? H> H> If there should be any useful meaning in the 16-bit IP ID field, the H> value can't be allowed to wrap several times in a millisecond. Given the H> context from where the network code is running, msleep() is not an H> option. A _conditional_ DELAY() of 1-2 us, is maybe all we need to H> prevent the value from wrapping too quickly. It is not perfect and it is H> indeed consuming more CPU. Let me ask again: are you serious? Do you suggest to delay transmitting network packets with a DELAY()? H> Or maybe we can add an IPv4 option to escape a 32-bit IP ID field and H> don't use the 16-bit IP ID field. Is that also serious? Do you suggest to change layout of IP packet? -- Totus tuus, Glebius.