pr_warning("%s: Warning: MII and ETHTOOL support not available for interface %s, and arp_interval/arp_ip_target module parameters not specified, thus bonding will not detect link failures! see bonding.txt for details.\n",
pr_warn("%s: Warning: MII and ETHTOOL support not available for interface %s, and arp_interval/arp_ip_target module parameters not specified, thus bonding will not detect link failures! see bonding.txt for details\n",
bond_dev->name,slave_dev->name);
}elseif(link_reporting==-1){
/* unable get link status using mii/ethtool */
pr_warning("%s: Warning: can't get link status from interface %s; the network driver associated with this interface does not support MII or ETHTOOL link status reporting, thus miimon has no effect on this interface.\n",
pr_warn("%s: Warning: can't get link status from interface %s; the network driver associated with this interface does not support MII or ETHTOOL link status reporting, thus miimon has no effect on this interface\n",
bond_dev->name,slave_dev->name);
}
}
@@ -1725,9 +1725,9 @@ static int __bond_release_one(struct net_device *bond_dev,
eth_hw_addr_random(bond_dev);
if(vlan_uses_dev(bond_dev)){
pr_warning("%s: Warning: clearing HW address of %s while it still has VLANs.\n",
pr_warn("%s: Warning: clearing HW address of %s while it still has VLANs\n",
bond_dev->name,bond_dev->name);
pr_warning("%s: When re-adding slaves, make sure the bond's HW address matches its VLANs'.\n",
pr_warn("%s: When re-adding slaves, make sure the bond's HW address matches its VLANs\n",
bond_dev->name);
}
}
@@ -4046,43 +4046,43 @@ static int bond_check_params(struct bond_params *params)
}
params->ad_select=valptr->value;
if(bond_mode!=BOND_MODE_8023AD)
pr_warning("ad_select param only affects 802.3ad mode\n");
pr_warn("ad_select param only affects 802.3ad mode\n");
}else{
params->ad_select=BOND_AD_STABLE;
}
if(max_bonds<0){
pr_warning("Warning: max_bonds (%d) not in range %d-%d, so it was reset to BOND_DEFAULT_MAX_BONDS (%d)\n",
pr_warn("Warning: max_bonds (%d) not in range %d-%d, so it was reset to BOND_DEFAULT_MAX_BONDS (%d)\n",
max_bonds,0,INT_MAX,BOND_DEFAULT_MAX_BONDS);
max_bonds=BOND_DEFAULT_MAX_BONDS;
}
if(miimon<0){
pr_warning("Warning: miimon module parameter (%d), not in range 0-%d, so it was reset to 0\n",
pr_warn("Warning: miimon module parameter (%d), not in range 0-%d, so it was reset to 0\n",
miimon,INT_MAX);
miimon=0;
}
if(updelay<0){
pr_warning("Warning: updelay module parameter (%d), not in range 0-%d, so it was reset to 0\n",
pr_warn("Warning: updelay module parameter (%d), not in range 0-%d, so it was reset to 0\n",
updelay,INT_MAX);
updelay=0;
}
if(downdelay<0){
pr_warning("Warning: downdelay module parameter (%d), not in range 0-%d, so it was reset to 0\n",
pr_warn("Warning: downdelay module parameter (%d), not in range 0-%d, so it was reset to 0\n",
downdelay,INT_MAX);
downdelay=0;
}
if((use_carrier!=0)&&(use_carrier!=1)){
pr_warning("Warning: use_carrier module parameter (%d), not of valid value (0/1), so it was set to 1\n",
pr_warn("Warning: use_carrier module parameter (%d), not of valid value (0/1), so it was set to 1\n",
use_carrier);
use_carrier=1;
}
if(num_peer_notif<0||num_peer_notif>255){
pr_warning("Warning: num_grat_arp/num_unsol_na (%d) not in range 0-255 so it was reset to 1\n",
pr_warn("Warning: num_grat_arp/num_unsol_na (%d) not in range 0-255 so it was reset to 1\n",
num_peer_notif);
num_peer_notif=1;
}
@@ -4090,29 +4090,26 @@ static int bond_check_params(struct bond_params *params)
/* reset values for 802.3ad/TLB/ALB */
if(BOND_NO_USES_ARP(bond_mode)){
if(!miimon){
pr_warning("Warning: miimon must be specified, otherwise bonding will not detect link failure, speed and duplex which are essential for 802.3ad operation\n");
pr_warning("Forcing miimon to 100msec\n");
pr_warn("Warning: miimon must be specified, otherwise bonding will not detect link failure, speed and duplex which are essential for 802.3ad operation\n");
pr_warn("Forcing miimon to 100msec\n");
miimon=BOND_DEFAULT_MIIMON;
}
}
if(tx_queues<1||tx_queues>255){
pr_warning("Warning: tx_queues (%d) should be between "
"1 and 255, resetting to %d\n",
pr_warn("Warning: tx_queues (%d) should be between 1 and 255, resetting to %d\n",
pr_warn("Warning: all_slaves_active module parameter (%d), not of valid value (0/1), so it was set to 0\n",
all_slaves_active);
all_slaves_active=0;
}
if(resend_igmp<0||resend_igmp>255){
pr_warning("Warning: resend_igmp (%d) should be between "
"0 and 255, resetting to %d\n",
pr_warn("Warning: resend_igmp (%d) should be between 0 and 255, resetting to %d\n",
resend_igmp,BOND_DEFAULT_RESEND_IGMP);
resend_igmp=BOND_DEFAULT_RESEND_IGMP;
}
@@ -4134,27 +4131,26 @@ static int bond_check_params(struct bond_params *params)
/* just warn the user the up/down delay will have
* no effect since miimon is zero...
*/
pr_warning("Warning: miimon module parameter not set and updelay (%d) or downdelay (%d) module parameter is set; updelay and downdelay have no effect unless miimon is set\n",
pr_warn("Warning: miimon module parameter not set and updelay (%d) or downdelay (%d) module parameter is set; updelay and downdelay have no effect unless miimon is set\n",
updelay,downdelay);
}
}else{
/* don't allow arp monitoring */
if(arp_interval){
pr_warning("Warning: miimon (%d) and arp_interval (%d) can't be used simultaneously, disabling ARP monitoring\n",
pr_warn("Warning: miimon (%d) and arp_interval (%d) can't be used simultaneously, disabling ARP monitoring\n",
miimon,arp_interval);
arp_interval=0;
}
if((updelay%miimon)!=0){
pr_warning("Warning: updelay (%d) is not a multiple of miimon (%d), updelay rounded to %d ms\n",
updelay,miimon,
(updelay/miimon)*miimon);
pr_warn("Warning: updelay (%d) is not a multiple of miimon (%d), updelay rounded to %d ms\n",
updelay,miimon,(updelay/miimon)*miimon);
}
updelay/=miimon;
if((downdelay%miimon)!=0){
pr_warning("Warning: downdelay (%d) is not a multiple of miimon (%d), downdelay rounded to %d ms\n",
pr_warn("Warning: downdelay (%d) is not a multiple of miimon (%d), downdelay rounded to %d ms\n",
downdelay,miimon,
(downdelay/miimon)*miimon);
}
@@ -4163,7 +4159,7 @@ static int bond_check_params(struct bond_params *params)
}
if(arp_interval<0){
pr_warning("Warning: arp_interval module parameter (%d), not in range 0-%d, so it was reset to 0\n",
pr_warn("Warning: arp_interval module parameter (%d), not in range 0-%d, so it was reset to 0\n",
arp_interval,INT_MAX);
arp_interval=0;
}
@@ -4175,21 +4171,21 @@ static int bond_check_params(struct bond_params *params)