projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[IPV4]: Restore multipath routing after rt_next changes.
[powerpc.git]
/
net
/
ipv4
/
multipath_drr.c
diff --git
a/net/ipv4/multipath_drr.c
b/net/ipv4/multipath_drr.c
index
252e837
..
cb8fce4
100644
(file)
--- 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,
struct rtable *first, struct rtable **rp)
{
struct rtable *nh, *result, *cur_min;
struct rtable *first, struct rtable **rp)
{
struct rtable *nh, *result, *cur_min;
- int min_usecount = -1;
+ int min_usecount = -1;
int devidx = -1;
int cur_min_devidx = -1;
int devidx = -1;
int cur_min_devidx = -1;
@@
-143,7
+143,7
@@
static void drr_select_route(const struct flowi *flp,
result = NULL;
cur_min = NULL;
for (nh = rcu_dereference(first); nh;
result = NULL;
cur_min = NULL;
for (nh = rcu_dereference(first); nh;
- nh = rcu_dereference(nh->u.rt_next)) {
+ nh = rcu_dereference(nh->u.
dst.
rt_next)) {
if ((nh->u.dst.flags & DST_BALANCED) != 0 &&
multipath_comparekeys(&nh->fl, flp)) {
int nh_ifidx = nh->u.dst.dev->ifindex;
if ((nh->u.dst.flags & DST_BALANCED) != 0 &&
multipath_comparekeys(&nh->fl, flp)) {
int nh_ifidx = nh->u.dst.dev->ifindex;
@@
-161,7
+161,7
@@
static void drr_select_route(const struct flowi *flp,
*/
devidx = __multipath_finddev(nh_ifidx);
if (devidx == -1) {
*/
devidx = __multipath_finddev(nh_ifidx);
if (devidx == -1) {
- /* add the interface to the array
+ /* add the interface to the array
* SMP safe
*/
spin_lock_bh(&state_lock);
* SMP safe
*/
spin_lock_bh(&state_lock);