From owner-freebsd-net@FreeBSD.ORG Tue Apr 5 13:55:13 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B629B106567B; Tue, 5 Apr 2011 13:55:13 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0D0388FC1D; Tue, 5 Apr 2011 13:55:12 +0000 (UTC) Received: by wyf23 with SMTP id 23so379300wyf.13 for ; Tue, 05 Apr 2011 06:55:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to:x-mailer; bh=YXy0oaWJMH9hUUJFqC66Khe1Dz9qZutsQ48Tzwnf77o=; b=xRpiAN/NqYbUcsdoSHqO0km+O1AoDpUaVakWl21dR0RUVIGzO/gnCCkQKwWhzhVEUS ytV4psO3HYGpjMRGsji3YRvPV5zbBbBcNUpnyOm/fWqmdUU/H3GP9fbuhIESDtVbmBdY WEAgmUgmnaB+Ip9VoqEG+WHmHOEd3OdqQQPHE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; b=SF/zRWnUvi6ouG954dViMpa4q5VhrGEfkdqmg1pofLMZ3IFDM7lfn3qvgc19J+VbOs mxiQHQrjkrzncwazF+fUL6f+pO3ST6WRk4w1vqNLrB3ejxc8/U4gB+FPUaTD44F9yEVa ethTIjjQxPhynslk17B7FhDVx7ZV4exKOFYzY= Received: by 10.216.60.76 with SMTP id t54mr1059513wec.110.1302010368204; Tue, 05 Apr 2011 06:32:48 -0700 (PDT) Received: from imba-brutale.totalterror.net (93-152-151-19.ddns.onlinedirect.bg [93.152.151.19]) by mx.google.com with ESMTPS id k76sm2775606wej.19.2011.04.05.06.32.45 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Apr 2011 06:32:46 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) From: Nikolay Denev In-Reply-To: Date: Tue, 5 Apr 2011 16:32:45 +0300 Message-Id: References: To: Ingo Flaschberger X-Mailer: Apple Mail (2.1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: Routing enhancement - reduce routing table locking X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2011 13:55:16 -0000 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 = ___________= ____________________________________ > 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