Subject: [PATCH] bug-fix in multipath_drr.c

From: pravin <[email-masked]>
Date: Sun, 8 May 2005 17:07:26 +0530

hi
   This patch fixes a small bug in multipath-drr algorithm registration code.
In function drr_init :: multipath_alg_register(..) is called with
wrong algorithm ID (AFAIU).

Regards,
Pravin.
Signed-off by: Pravin B. Shelar <[email-masked]>
This patch fixes a small bug in multipath_drr algorithm registration code.

Index: linux-2.6.12-rc4/net/ipv4/multipath_drr.c
===================================================================
--- linux-2.6.12-rc4.orig/net/ipv4/multipath_drr.c	2005-05-06 22:20:31.000000000 -0700
+++ linux-2.6.12-rc4/net/ipv4/multipath_drr.c	2005-05-08 03:24:02.000000000 -0700
@@ -244,7 +244,7 @@
 	if (err)
 		return err;
 
-	err = multipath_alg_register(&drr_ops, IP_MP_ALG_RR);
+	err = multipath_alg_register(&drr_ops, IP_MP_ALG_DRR);
 	if (err)
 		goto fail;