Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 May 2003 15:35:56 +0300
From:      "Petri Helenius" <pete@he.iki.fi>
To:        "Luigi Rizzo" <rizzo@icir.org>, "Mike Silbersack" <silby@silby.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Review needed: Mbuf double-free detection patch
Message-ID:  <003901c30fde$37f2a0f0$932a40c1@PHE>
References:  <20030430142532.F3741@odysseus.silby.com> <20030501041210.A3514@xorpc.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> [on a side note, it is a bit depressing to see the same
> code replicated twice, in m_free() and m_freem(). Couldn't
> one try to make m_freem() just call m_free() in a loop and
> save some code bloat ? I doubt the extra function call
> would harm performance too much.]
> 
Allocating / freeing mbufs is quite expensive already so it probably does not make 
that huge a difference. However the direction should be to improve the perfomance.

Pete



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003901c30fde$37f2a0f0$932a40c1>