Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Oct 2004 18:23:17 +0200
From:      Max Laier <max@love2party.net>
To:        freebsd-net@freebsd.org
Cc:        Waldemar Kornewald <Waldemar.Kornewald@web.de>
Subject:   Re: modularization
Message-ID:  <200410061823.24492.max@love2party.net>
In-Reply-To: <41640CEE.9070900@web.de>
References:  <41640CEE.9070900@web.de>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2315233.6rBgA3mI02
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Wednesday 06 October 2004 17:19, Waldemar Kornewald wrote:
> Hi,
> are there any plans to mularize the netstack (maybe: protocol+interface
> modules)?
> Would it be difficult to modularize it?

One problem you will hit here, is that you will have to do a lot of additio=
nal=20
locking for structures that do not change right now, but are heavily used.=
=20
The domains list is just one example of the top of my head. There are=20
certainly other places as well. Another issue is the load/unload process. Y=
ou=20
have to make sure that everything that is there already is hooked up=20
correctly and you must protect these subsystems as well. Then there are=20
pieces of code that are used from more than one protocol (e.g. we have a=20
unified tcp stack on top of IPv4 and IPv6). These systems use #ifdefs at th=
e=20
moment. In order to be able to load IPv6 as a module, you'd have to rewrite=
 a=20
lot of code. So it's hard - to say the least.

> I am also interested in your opinion about it:
> Does it make sense to modularize the netstack? Why would a
> monolithic/modular netstack be better?

Given the additional locking requirements and the additional checks, lookup=
s=20
and function calls I hardly believe that it is a good idea. There might be=
=20
protocols that are easily plugged, but you can certainly do them at the=20
netgraph layer as well. Netgraph is a interesting thing to look at in any=20
case, when talking modularity.

=2D-=20
/"\  Best regards,                      | mlaier@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News

--nextPart2315233.6rBgA3mI02
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQBBZBv8XyyEoT62BG0RAvMtAJ45XyoQhZUjwR9nRf4gYmZrEmBOuACfc4wB
IP4drXQWOpR0f4XM2yUDKJA=
=5Sk6
-----END PGP SIGNATURE-----

--nextPart2315233.6rBgA3mI02--



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