diff options
Diffstat (limited to 'net/ipv4/multipath_drr.c')
-rw-r--r-- | net/ipv4/multipath_drr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/multipath_drr.c b/net/ipv4/multipath_drr.c index 252e837b17a5..cb8fce467349 100644 --- a/net/ipv4/multipath_drr.c +++ b/net/ipv4/multipath_drr.c | |||
@@ -134,7 +134,7 @@ static void drr_select_route(const struct flowi *flp, | |||
134 | struct rtable *first, struct rtable **rp) | 134 | struct rtable *first, struct rtable **rp) |
135 | { | 135 | { |
136 | struct rtable *nh, *result, *cur_min; | 136 | struct rtable *nh, *result, *cur_min; |
137 | int min_usecount = -1; | 137 | int min_usecount = -1; |
138 | int devidx = -1; | 138 | int devidx = -1; |
139 | int cur_min_devidx = -1; | 139 | int cur_min_devidx = -1; |
140 | 140 | ||
@@ -143,7 +143,7 @@ static void drr_select_route(const struct flowi *flp, | |||
143 | result = NULL; | 143 | result = NULL; |
144 | cur_min = NULL; | 144 | cur_min = NULL; |
145 | for (nh = rcu_dereference(first); nh; | 145 | for (nh = rcu_dereference(first); nh; |
146 | nh = rcu_dereference(nh->u.rt_next)) { | 146 | nh = rcu_dereference(nh->u.dst.rt_next)) { |
147 | if ((nh->u.dst.flags & DST_BALANCED) != 0 && | 147 | if ((nh->u.dst.flags & DST_BALANCED) != 0 && |
148 | multipath_comparekeys(&nh->fl, flp)) { | 148 | multipath_comparekeys(&nh->fl, flp)) { |
149 | int nh_ifidx = nh->u.dst.dev->ifindex; | 149 | int nh_ifidx = nh->u.dst.dev->ifindex; |
@@ -161,7 +161,7 @@ static void drr_select_route(const struct flowi *flp, | |||
161 | */ | 161 | */ |
162 | devidx = __multipath_finddev(nh_ifidx); | 162 | devidx = __multipath_finddev(nh_ifidx); |
163 | if (devidx == -1) { | 163 | if (devidx == -1) { |
164 | /* add the interface to the array | 164 | /* add the interface to the array |
165 | * SMP safe | 165 | * SMP safe |
166 | */ | 166 | */ |
167 | spin_lock_bh(&state_lock); | 167 | spin_lock_bh(&state_lock); |