Date: Sun, 23 Aug 2015 18:31:46 +0000 (UTC) From: "Alexander V. Chernikov" <melifaro@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r287074 - projects/routing/sys/net Message-ID: <201508231831.t7NIVkKj051537@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: melifaro Date: Sun Aug 23 18:31:46 2015 New Revision: 287074 URL: https://svnweb.freebsd.org/changeset/base/287074 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 Aug 23 18:31:26 2015 (r287073) +++ projects/routing/sys/net/radix.h Sun Aug 23 18:31:46 2015 (r287074) @@ -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 Aug 23 18:31:26 2015 (r287073) +++ projects/routing/sys/net/radix_mpath.c Sun Aug 23 18:31:46 2015 (r287074) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508231831.t7NIVkKj051537>