@@ -798,7 +798,7 @@ void bond_change_active_slave(struct bonding *bond, struct slave *new_active)
798
798
return ;
799
799
800
800
if (new_active ) {
801
- new_active -> jiffies = jiffies ;
801
+ new_active -> last_link_up = jiffies ;
802
802
803
803
if (new_active -> link == BOND_LINK_BACK ) {
804
804
if (USES_PRIMARY (bond -> params .mode )) {
@@ -1444,7 +1444,7 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)
1444
1444
}
1445
1445
1446
1446
if (new_slave -> link != BOND_LINK_DOWN )
1447
- new_slave -> jiffies = jiffies ;
1447
+ new_slave -> last_link_up = jiffies ;
1448
1448
pr_debug ("Initial state of slave_dev is BOND_LINK_%s\n" ,
1449
1449
new_slave -> link == BOND_LINK_DOWN ? "DOWN" :
1450
1450
(new_slave -> link == BOND_LINK_UP ? "UP" : "BACK" ));
@@ -1891,7 +1891,7 @@ static int bond_miimon_inspect(struct bonding *bond)
1891
1891
* recovered before downdelay expired
1892
1892
*/
1893
1893
slave -> link = BOND_LINK_UP ;
1894
- slave -> jiffies = jiffies ;
1894
+ slave -> last_link_up = jiffies ;
1895
1895
pr_info ("%s: link status up again after %d ms for interface %s\n" ,
1896
1896
bond -> dev -> name ,
1897
1897
(bond -> params .downdelay - slave -> delay ) *
@@ -1966,7 +1966,7 @@ static void bond_miimon_commit(struct bonding *bond)
1966
1966
1967
1967
case BOND_LINK_UP :
1968
1968
slave -> link = BOND_LINK_UP ;
1969
- slave -> jiffies = jiffies ;
1969
+ slave -> last_link_up = jiffies ;
1970
1970
1971
1971
if (bond -> params .mode == BOND_MODE_8023AD ) {
1972
1972
/* prevent it from being the active one */
@@ -2312,7 +2312,7 @@ int bond_arp_rcv(const struct sk_buff *skb, struct bonding *bond,
2312
2312
bond_validate_arp (bond , slave , sip , tip );
2313
2313
else if (bond -> curr_active_slave &&
2314
2314
time_after (slave_last_rx (bond , bond -> curr_active_slave ),
2315
- bond -> curr_active_slave -> jiffies ))
2315
+ bond -> curr_active_slave -> last_link_up ))
2316
2316
bond_validate_arp (bond , slave , tip , sip );
2317
2317
2318
2318
out_unlock :
@@ -2358,9 +2358,9 @@ static void bond_loadbalance_arp_mon(struct work_struct *work)
2358
2358
oldcurrent = ACCESS_ONCE (bond -> curr_active_slave );
2359
2359
/* see if any of the previous devices are up now (i.e. they have
2360
2360
* xmt and rcv traffic). the curr_active_slave does not come into
2361
- * the picture unless it is null. also, slave->jiffies is not needed
2362
- * here because we send an arp on each slave and give a slave as
2363
- * long as it needs to get the tx/rx within the delta.
2361
+ * the picture unless it is null. also, slave->last_link_up is not
2362
+ * needed here because we send an arp on each slave and give a slave
2363
+ * as long as it needs to get the tx/rx within the delta.
2364
2364
* TODO: what about up/down delay in arp mode? it wasn't here before
2365
2365
* so it can wait
2366
2366
*/
@@ -2486,7 +2486,7 @@ static int bond_ab_arp_inspect(struct bonding *bond)
2486
2486
* active. This avoids bouncing, as the last receive
2487
2487
* times need a full ARP monitor cycle to be updated.
2488
2488
*/
2489
- if (bond_time_in_interval (bond , slave -> jiffies , 2 ))
2489
+ if (bond_time_in_interval (bond , slave -> last_link_up , 2 ))
2490
2490
continue ;
2491
2491
2492
2492
/*
@@ -2687,7 +2687,7 @@ static bool bond_ab_arp_probe(struct bonding *bond)
2687
2687
new_slave -> link = BOND_LINK_BACK ;
2688
2688
bond_set_slave_active_flags (new_slave );
2689
2689
bond_arp_send_all (bond , new_slave );
2690
- new_slave -> jiffies = jiffies ;
2690
+ new_slave -> last_link_up = jiffies ;
2691
2691
rcu_assign_pointer (bond -> current_arp_slave , new_slave );
2692
2692
rtnl_unlock ();
2693
2693
0 commit comments