Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Apr 2005 16:57:16 +0400 (MSD)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        Vijay.Singh@nokia.com
Cc:        andre@freebsd.org
Subject:   Re: ip_reass() - possibly incorrect goto
Message-ID:  <20050408165616.F57581@mp2.macomnet.net>
In-Reply-To: <20050324043742.C47410@odysseus.silby.com>
References:  <E40595640FD457418D8F9005C2BEC8496456D4@mvebe001.americas.nokia.com> <20050324043742.C47410@odysseus.silby.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 24 Mar 2005, 04:46-0600, Mike Silbersack wrote:

>
> On Wed, 23 Mar 2005, Maxim Konovalov wrote:
>
> > On Tue, 22 Mar 2005, 12:08-0800, Vijay.Singh@nokia.com wrote:
> >
> > > Hi hackers, I am looking at the ip_reass() routine. In case of the
> > > 1st fragment we create the reassembly queue. After the queue has
> > > been inserted in the hash bucket, the if () code does a " goto
> > > inserted". Should this be changed to "goto done" instead? Any code
> > > that is executed for the 1st fragment, like frag per packet limiting
> > > and complete reassembly are not valid. Am I mistaken?
> >
> > Yep, it seems you are right.  The second micro optimization - drop the
> > fragment early if maxfragsperpacket == 0.
> >
> > Andre, Mike, what do you think?
>
> Looks good to me.  Please tell us if you come up with any more optimizations
> for the reassembly code, Vijay.
[...]

Committed to HEAD.  Thanks, Vijay!

-- 
Maxim Konovalov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050408165616.F57581>