Date: Sat, 28 Mar 2015 23:22:16 -0400 From: Benjamin Kaduk <bjkfbsd@gmail.com> To: John-Mark Gurney <jmg@funkthat.com> Cc: "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, Gleb Smirnoff <glebius@freebsd.org>, Slawa Olhovchenkov <slw@zxy.spb.ru>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, Fabien Thomas <fabient@freebsd.org> Subject: Re: svn commit: r280759 - head/sys/netinet Message-ID: <CAJ5_RoBKOA5JFnxupzSKpcA8Mf-H0Ep7mrJEboQ97w-9_AUJ%2Bg@mail.gmail.com> In-Reply-To: <20150329011534.GH51048@funkthat.com> References: <201503271326.t2RDQxd3056112@svn.freebsd.org> <20150328083443.GV64665@FreeBSD.org> <20150328172313.GC51048@funkthat.com> <20150328181833.GX64665@FreeBSD.org> <20150328204333.GF51048@funkthat.com> <20150328213403.GB74532@zxy.spb.ru> <20150329011534.GH51048@funkthat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 28, 2015 at 9:15 PM, John-Mark Gurney <jmg@funkthat.com> wrote: > Slawa Olhovchenkov wrote this message on Sun, Mar 29, 2015 at 00:34 +0300: > > On Sat, Mar 28, 2015 at 01:43:33PM -0700, John-Mark Gurney wrote: > > > > In this case may be do range allocation of ID (per-CPU)? > > For example, allocate 128 ID, not one ID? > > Do you mean what to do in the case of an atomic packet? > > Per RFC: > In atomic datagrams, the IPv4 ID field has no meaning; thus, it can > be set to an arbitrary value, i.e., the requirement for non-repeating > IDs within the source address/destination address/protocol tuple is > no longer required for atomic datagrams: > > You can just set it to 0, or any value we feel like. > My reading was to give each CPU its own range from which to allocate IDs, to guarantee that there are no collisions between CPUs. -Ben
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ5_RoBKOA5JFnxupzSKpcA8Mf-H0Ep7mrJEboQ97w-9_AUJ%2Bg>