Routing enhancement - reduce routing table locking

Nikolay Denev ndenev at gmail.com
Tue Apr 5 13:55:16 UTC 2011


On Apr 5, 2011, at 4:26 AM, Ingo Flaschberger wrote:

> Hi,
> 
> 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)
> 
> The patch applies at FreeBSD 8.2 stable.
> Comments are welcome, especially if I can reuse "dst" (which seems to work):
> 	rtl.rt_gateway = (struct sockaddr *)dst;
> 
> 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,
> 
> Kind regards,
> 	Ingo Flaschberger
> 
> Geschaeftsleitung
> ____________________________________
> crossip communications gmbh
> A-1020 Wien, Sebastian Kneipp Gasse 1/3
> 
> Sitz der Gesellschaft: 1020 Wien, Oesterreich
> Firmenbuchgericht: Handelsgericht Wien, FN 269698 s,
> Umsatzsteueridentifikationsnummer (UID): ATU62080367
> 
> Haftungsausschluss / Disclaimer <http://www.xip.at/content/view/278/><rmlock_8.2_20110405.diff>_______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at 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




More information about the freebsd-net mailing list