aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/multipath_random.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/multipath_random.c')
-rw-r--r--net/ipv4/multipath_random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/multipath_random.c b/net/ipv4/multipath_random.c
index b8c289f247cb..047e861f06bd 100644
--- a/net/ipv4/multipath_random.c
+++ b/net/ipv4/multipath_random.c
@@ -74,7 +74,7 @@ static void random_select_route(const struct flowi *flp,
74 74
75 /* count all candidate */ 75 /* count all candidate */
76 for (rt = rcu_dereference(first); rt; 76 for (rt = rcu_dereference(first); rt;
77 rt = rcu_dereference(rt->u.rt_next)) { 77 rt = rcu_dereference(rt->u.dst.rt_next)) {
78 if ((rt->u.dst.flags & DST_BALANCED) != 0 && 78 if ((rt->u.dst.flags & DST_BALANCED) != 0 &&
79 multipath_comparekeys(&rt->fl, flp)) 79 multipath_comparekeys(&rt->fl, flp))
80 ++candidate_count; 80 ++candidate_count;
@@ -90,7 +90,7 @@ static void random_select_route(const struct flowi *flp,
90 /* find chosen candidate and adjust GC data for all candidates 90 /* find chosen candidate and adjust GC data for all candidates
91 * to ensure they stay in cache 91 * to ensure they stay in cache
92 */ 92 */
93 for (rt = first; rt; rt = rt->u.rt_next) { 93 for (rt = first; rt; rt = rt->u.dst.rt_next) {
94 if ((rt->u.dst.flags & DST_BALANCED) != 0 && 94 if ((rt->u.dst.flags & DST_BALANCED) != 0 &&
95 multipath_comparekeys(&rt->fl, flp)) { 95 multipath_comparekeys(&rt->fl, flp)) {
96 rt->u.dst.lastuse = jiffies; 96 rt->u.dst.lastuse = jiffies;