From owner-freebsd-bugs@FreeBSD.ORG Tue Feb 9 17:50:02 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1891F106568B for ; Tue, 9 Feb 2010 17:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D1D738FC18 for ; Tue, 9 Feb 2010 17:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o19Ho1uh012770 for ; Tue, 9 Feb 2010 17:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o19Ho1xt012769; Tue, 9 Feb 2010 17:50:01 GMT (envelope-from gnats) Resent-Date: Tue, 9 Feb 2010 17:50:01 GMT Resent-Message-Id: <201002091750.o19Ho1xt012769@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Balaji G Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7654106566B for ; Tue, 9 Feb 2010 17:40:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 976278FC0A for ; Tue, 9 Feb 2010 17:40:29 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o19HeTug013565 for ; Tue, 9 Feb 2010 17:40:29 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o19HeTBc013564; Tue, 9 Feb 2010 17:40:29 GMT (envelope-from nobody) Message-Id: <201002091740.o19HeTBc013564@www.freebsd.org> Date: Tue, 9 Feb 2010 17:40:29 GMT From: Balaji G To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/143704: Patch: ECMP Phase 1 fixes for FreeBSD 7.2 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2010 17:50:02 -0000 >Number: 143704 >Category: misc >Synopsis: Patch: ECMP Phase 1 fixes for FreeBSD 7.2 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Feb 09 17:50:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Balaji G >Release: FreeBSD 7.2 >Organization: Home >Environment: FreeBSD 7.2-RELEASE FreeBSD 7.2-RELEASE #7: Sun Feb 7 13:19:58 IST 2010 root@:/usr/obj/usr/home/balaji/7.2.0/sys/MYKERNEL i386 >Description: The Patch contains the ECMP Phase 1 fixes back ported to 7.2 release. I am working on bringing in the remaining changes too. This patch installs ECMP routes in the RIB >How-To-Repeat: Create two static routes with the same destination and different gateway >Fix: Patch attached with submission follows: diff -u -r /home/balaji/Codes/FreeBSD/7.2.0/7.2.0_unmodified/7.2.0/sys/netinet/in_rmx.c netinet/in_rmx.c --- /home/balaji/Codes/FreeBSD/7.2.0/7.2.0_unmodified/7.2.0/sys/netinet/in_rmx.c 2010-02-04 22:35:07.000000000 +0530 +++ netinet/in_rmx.c 2010-02-09 21:18:58.682874190 +0530 @@ -369,6 +369,7 @@ rnh->rnh_addaddr = in_addroute; rnh->rnh_matchaddr = in_matroute; rnh->rnh_close = in_clsroute; + rnh->rnh_multipath = 1; if (_in_rt_was_here == 0 ) { callout_init(&rtq_timer, CALLOUT_MPSAFE); in_rtqtimo(rnh); /* kick off timeout first time */ >Release-Note: >Audit-Trail: >Unformatted: