From owner-svn-src-all@FreeBSD.ORG Mon Mar 30 12:58:32 2015 Return-Path: Delivered-To: svn-src-all@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 42E5917B; Mon, 30 Mar 2015 12:58:32 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EEA59C9A; Mon, 30 Mar 2015 12:58:31 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 5A9321FE023; Mon, 30 Mar 2015 14:58:29 +0200 (CEST) Message-ID: <551948A4.1070408@selasky.org> Date: Mon, 30 Mar 2015 14:59:16 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Gleb Smirnoff Subject: Re: svn commit: r280759 - head/sys/netinet 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> <20150330125115.GI64665@FreeBSD.org> In-Reply-To: <20150330125115.GI64665@FreeBSD.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2015 12:58:32 -0000 On 03/30/15 14:51, Gleb Smirnoff wrote: > Hans, > Gleb: Can you answer my question first: Should the 16-bit IP ID field carry any useful information or not? > 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? > --HPS