svn commit: r274302 - projects/routing/sys/net

Alexander V. Chernikov melifaro at FreeBSD.org
Sun Nov 9 00:43:15 UTC 2014


Author: melifaro
Date: Sun Nov  9 00:43:14 2014
New Revision: 274302
URL: https://svnweb.freebsd.org/changeset/base/274302

Log:
  Remove unused fields from old radix_node_head.

Modified:
  projects/routing/sys/net/radix.h
  projects/routing/sys/net/radix_mpath.c

Modified: projects/routing/sys/net/radix.h
==============================================================================
--- projects/routing/sys/net/radix.h	Sun Nov  9 00:36:39 2014	(r274301)
+++ projects/routing/sys/net/radix.h	Sun Nov  9 00:43:14 2014	(r274302)
@@ -128,8 +128,6 @@ struct radix_head {
 
 struct radix_node_head {
 	struct radix_head rh;
-	u_int	rnh_gen;		/* generation counter */
-	int	rnh_multipath;		/* multipath capable ? */
 	rn_matchaddr_f_t	*rnh_matchaddr;	/* longest match for sockaddr */
 	rn_addaddr_f_t	*rnh_addaddr;	/* add based on sockaddr*/
 	rn_deladdr_f_t	*rnh_deladdr;	/* remove based on sockaddr */

Modified: projects/routing/sys/net/radix_mpath.c
==============================================================================
--- projects/routing/sys/net/radix_mpath.c	Sun Nov  9 00:36:39 2014	(r274301)
+++ projects/routing/sys/net/radix_mpath.c	Sun Nov  9 00:43:14 2014	(r274302)
@@ -61,7 +61,7 @@ int
 rn_mpath_capable(struct radix_node_head *rnh)
 {
 
-	return rnh->rnh_multipath;
+	return 0;
 }
 
 struct radix_node *
@@ -270,7 +270,6 @@ rn4_mpath_inithead(void **head, int off)
 	hashjitter = arc4random();
 	if (in_inithead(head, off) == 1) {
 		rnh = (struct radix_node_head *)*head;
-		rnh->rnh_multipath = 1;
 		return 1;
 	} else
 		return 0;
@@ -286,7 +285,6 @@ rn6_mpath_inithead(void **head, int off)
 	hashjitter = arc4random();
 	if (in6_inithead(head, off) == 1) {
 		rnh = (struct radix_node_head *)*head;
-		rnh->rnh_multipath = 1;
 		return 1;
 	} else
 		return 0;


More information about the svn-src-projects mailing list