On Thu, 2007-09-06 at 17:08 +0200, Hannes Gredler wrote:
[...]
> i have recently stumbled on a interesting problem that causes
> quite some inefficiency wrt malloc churn() and SPF calculations.
> 
> it happens is when a TC message gets striped over two (or more) IP packets.
> this is typically for a TC message at the MTU boundary of a OLSR packet.

Hmm, what's in the RFC about this?

[...]
> patchset producing the debug output above is at
> http://gredler.at/download/olsrd/inplace-spf-1.diff.gz
> 
> any smart thoughts for a fix ? -

Without time and without looking into code, only the generic ones:

On the sender side: Don't send half TC packets.

On the receiver side (which shouldn't be necessary with the above):
Wait with the TC packet processing until we are sure that it is
complete, e.g.
if the next is already seen or some timeout.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services




