Skip to content

Commit 5ef213f

Browse files
Eric DumazetDavid S. Miller
authored andcommitted
[IPV4]: Restore multipath routing after rt_next changes.
I forgot to test build this part of the networking code... Sorry guys. This patch renames u.rt_next to u.dst.rt_next Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent bda390d commit 5ef213f

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎net/ipv4/multipath_drr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static void drr_select_route(const struct flowi *flp,
143143
result = NULL;
144144
cur_min = NULL;
145145
for (nh = rcu_dereference(first); nh;
146-
nh = rcu_dereference(nh->u.rt_next)) {
146+
nh = rcu_dereference(nh->u.dst.rt_next)) {
147147
if ((nh->u.dst.flags & DST_BALANCED) != 0 &&
148148
multipath_comparekeys(&nh->fl, flp)) {
149149
int nh_ifidx = nh->u.dst.dev->ifindex;

‎net/ipv4/multipath_random.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static void random_select_route(const struct flowi *flp,
7474

7575
/* count all candidate */
7676
for (rt = rcu_dereference(first); rt;
77-
rt = rcu_dereference(rt->u.rt_next)) {
77+
rt = rcu_dereference(rt->u.dst.rt_next)) {
7878
if ((rt->u.dst.flags & DST_BALANCED) != 0 &&
7979
multipath_comparekeys(&rt->fl, flp))
8080
++candidate_count;
@@ -90,7 +90,7 @@ static void random_select_route(const struct flowi *flp,
9090
/* find chosen candidate and adjust GC data for all candidates
9191
* to ensure they stay in cache
9292
*/
93-
for (rt = first; rt; rt = rt->u.rt_next) {
93+
for (rt = first; rt; rt = rt->u.dst.rt_next) {
9494
if ((rt->u.dst.flags & DST_BALANCED) != 0 &&
9595
multipath_comparekeys(&rt->fl, flp)) {
9696
rt->u.dst.lastuse = jiffies;

‎net/ipv4/multipath_rr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static void rr_select_route(const struct flowi *flp,
5858
*/
5959
result = NULL;
6060
for (nh = rcu_dereference(first); nh;
61-
nh = rcu_dereference(nh->u.rt_next)) {
61+
nh = rcu_dereference(nh->u.dst.rt_next)) {
6262
if ((nh->u.dst.flags & DST_BALANCED) != 0 &&
6363
multipath_comparekeys(&nh->fl, flp)) {
6464
nh->u.dst.lastuse = jiffies;

‎net/ipv4/multipath_wrandom.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static void wrandom_select_route(const struct flowi *flp,
167167

168168
/* collect all candidates and identify their weights */
169169
for (rt = rcu_dereference(first); rt;
170-
rt = rcu_dereference(rt->u.rt_next)) {
170+
rt = rcu_dereference(rt->u.dst.rt_next)) {
171171
if ((rt->u.dst.flags & DST_BALANCED) != 0 &&
172172
multipath_comparekeys(&rt->fl, flp)) {
173173
struct multipath_candidate* mpc =

0 commit comments

Comments
 (0)