From nobody@FreeBSD.org  Tue Feb  9 17:40:29 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A7654106566B
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <balajig81@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Patch: ECMP Phase 1 fixes for FreeBSD 7.2
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         143704
>Category:       kern
>Synopsis:       [route] [patch] ECMP Phase 1 fixes for FreeBSD 7.2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 09 17:50:01 UTC 2010
>Closed-Date:    Wed Feb 10 15:07:31 UTC 2010
>Last-Modified:  Wed Feb 10 15:07:31 UTC 2010
>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:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Wed Feb 10 15:07:00 UTC 2010 
State-Changed-Why:  
Merged into kern/143703. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143704 
>Unformatted:
