Skip to contentSkip to conversation

bug-fix in multipath_drr.c

PATCH New pravin 1 participant 1 message May 8, 2005

Subsystems (2)
lore
Share & tools
lore

pravin

author
#0 lore raw

PATCH 1/1 bug-fix in multipath_drr.c

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 protected]>
This patch fixes a small bug in multipath_drr algorithm registration code.

net/ipv4/multipath_drr.c +1 -1
Index: linux-2.6.12-rc4/net/ipv4/multipath_drr.c
===================================================================
@@ -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;