Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2011 16:32:45 +0300
From:      Nikolay Denev <ndenev@gmail.com>
To:        Ingo Flaschberger <if@freebsd.org>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Routing enhancement - reduce routing table locking
Message-ID:  <E0E87D94-3DE3-4884-8FBB-CC778486C364@gmail.com>
In-Reply-To: <alpine.LRH.2.00.1104050303140.2152@filebunker.xip.at>
References:  <alpine.LRH.2.00.1104050303140.2152@filebunker.xip.at>

next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 5, 2011, at 4:26 AM, Ingo Flaschberger wrote:

> Hi,
>=20
> I have written a patch to:
> *) reduce locking of routing table to achieve the same speed as with
>   flowtables, which do not scale with many routes:
> 	use of a copy of the route
> 	use rm_lock(9)
> 	(idea of Andre Oppermann)
> *) implement some multipath changes to use a direct attached
>   interface route and a real route, used some OpenBSD code
> *) icmp rate-limiting in forwarding (old code from FreeBSD page)
>=20
> The patch applies at FreeBSD 8.2 stable.
> Comments are welcome, especially if I can reuse "dst" (which seems to =
work):
> 	rtl.rt_gateway =3D (struct sockaddr *)dst;
>=20
> but 'm not shure if I should take same caution with bcopy regarding =
sa_len:
> 	rtlookup_fib(struct sockaddr *dst, u_int fibnum, struct rtlookup =
*rtl,
>=20
> Kind regards,
> 	Ingo Flaschberger
>=20
> Geschaeftsleitung
> ____________________________________
> crossip communications gmbh
> A-1020 Wien, Sebastian Kneipp Gasse 1/3
>=20
> Sitz der Gesellschaft: 1020 Wien, Oesterreich
> Firmenbuchgericht: Handelsgericht Wien, FN 269698 s,
> Umsatzsteueridentifikationsnummer (UID): ATU62080367
>=20
> Haftungsausschluss / Disclaimer =
<http://www.xip.at/content/view/278/><rmlock_8.2_20110405.diff>___________=
____________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


Hi,

Can you say something more about :
   "implement some multipath changes to use a direct attached
     interface route and a real route, used some OpenBSD code"

I've looked at the patch but it's not obvious to me.

P.S.: I've just saw your reply to kern/155772 and was wondering if this =
patch can help.

Regards,
Nikolay





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0E87D94-3DE3-4884-8FBB-CC778486C364>