summaryrefslogtreecommitdiffstats
path: root/sys/net/radix_mpath.h
diff options
context:
space:
mode:
authorqingli <qingli@FreeBSD.org>2008-05-30 09:34:35 +0000
committerqingli <qingli@FreeBSD.org>2008-05-30 09:34:35 +0000
commitabbda8507b5aecb2e8c4a237e56eb32f4b2d1308 (patch)
treeb2ef2e06392a8d455ebe083e208b7d8482a6a35f /sys/net/radix_mpath.h
parentca246d7eedc4fac04ad0faa7b5bbce58c287885b (diff)
downloadFreeBSD-src-abbda8507b5aecb2e8c4a237e56eb32f4b2d1308.zip
FreeBSD-src-abbda8507b5aecb2e8c4a237e56eb32f4b2d1308.tar.gz
When RADIX_MPATH is enabled, the route selection is not rotating
through the multipath entries. The hash value was a signed integer and was always giving a -1 value. PR: 123991 Submitted by: Barrett Lyon
Diffstat (limited to 'sys/net/radix_mpath.h')
-rw-r--r--sys/net/radix_mpath.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/radix_mpath.h b/sys/net/radix_mpath.h
index b9224c8..bcb210e 100644
--- a/sys/net/radix_mpath.h
+++ b/sys/net/radix_mpath.h
@@ -46,11 +46,11 @@ struct rtentry;
struct sockaddr;
int rn_mpath_capable(struct radix_node_head *);
struct radix_node *rn_mpath_next(struct radix_node *);
-int rn_mpath_count(struct radix_node *);
+u_int32_t rn_mpath_count(struct radix_node *);
struct rtentry *rt_mpath_matchgate(struct rtentry *, struct sockaddr *);
int rt_mpath_conflict(struct radix_node_head *, struct rtentry *,
struct sockaddr *);
-void rtalloc_mpath_fib(struct route *, int, u_int);
+void rtalloc_mpath_fib(struct route *, u_int32_t, u_int);
#define rtalloc_mpath(_route, _hash) rtalloc_mpath_fib((_route), (_hash), 0)
struct radix_node *rn_mpath_lookup(void *, void *,
struct radix_node_head *);
OpenPOWER on IntegriCloud