svn commit: r226241 - stable/8/sys/net

Qing Li qingli at
Mon Oct 10 21:54:19 UTC 2011

Author: qingli
Date: Mon Oct 10 21:54:19 2011
New Revision: 226241

  MFC 225163
  When the RADIX_MPATH kernel option is enabled, the RADIX_MPATH code tries
  to find the first route node of an ECMP chain before executing the route
  command. If the system has a default route, and the specific route argument
  to the command does not exist in the routing table, then the default route
  would be reached. The current code does not verify the reached node matches
  the given route argument, therefore erroneous removed the entry. This patch
  fixes that bug.

Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/net/radix_mpath.c
--- stable/8/sys/net/radix_mpath.c	Mon Oct 10 21:48:40 2011	(r226240)
+++ stable/8/sys/net/radix_mpath.c	Mon Oct 10 21:54:19 2011	(r226241)
@@ -96,10 +96,7 @@ rt_mpath_matchgate(struct rtentry *rt, s
 	struct radix_node *rn;
-	if (!rn_mpath_next((struct radix_node *)rt))
-		return rt;
-	if (!gate)
+	if (!gate || !rt->rt_gateway)
 		return NULL;
 	/* beyond here, we use rn as the master copy */

More information about the svn-src-stable-8 mailing list