@@ -464,7 +464,7 @@ const struct bond_opt_value *bond_opt_get_val(unsigned int option, u64 val)
464
464
465
465
/* Searches for a value in opt's values[] table which matches the flagmask */
466
466
static const struct bond_opt_value * bond_opt_get_flags (const struct bond_option * opt ,
467
- u32 flagmask )
467
+ u32 flagmask )
468
468
{
469
469
int i ;
470
470
@@ -744,14 +744,14 @@ static int bond_option_mode_set(struct bonding *bond,
744
744
const struct bond_opt_value * newval )
745
745
{
746
746
if (!bond_mode_uses_arp (newval -> value ) && bond -> params .arp_interval ) {
747
- netdev_info (bond -> dev , "%s mode is incompatible with arp monitoring, start mii monitoring\n" ,
748
- newval -> string );
747
+ netdev_dbg (bond -> dev , "%s mode is incompatible with arp monitoring, start mii monitoring\n" ,
748
+ newval -> string );
749
749
/* disable arp monitoring */
750
750
bond -> params .arp_interval = 0 ;
751
751
/* set miimon to default value */
752
752
bond -> params .miimon = BOND_DEFAULT_MIIMON ;
753
- netdev_info (bond -> dev , "Setting MII monitoring interval to %d\n" ,
754
- bond -> params .miimon );
753
+ netdev_dbg (bond -> dev , "Setting MII monitoring interval to %d\n" ,
754
+ bond -> params .miimon );
755
755
}
756
756
757
757
/* don't cache arp_validate between modes */
@@ -794,7 +794,7 @@ static int bond_option_active_slave_set(struct bonding *bond,
794
794
block_netpoll_tx ();
795
795
/* check to see if we are clearing active */
796
796
if (!slave_dev ) {
797
- netdev_info (bond -> dev , "Clearing current active slave\n" );
797
+ netdev_dbg (bond -> dev , "Clearing current active slave\n" );
798
798
RCU_INIT_POINTER (bond -> curr_active_slave , NULL );
799
799
bond_select_active_slave (bond );
800
800
} else {
@@ -805,13 +805,13 @@ static int bond_option_active_slave_set(struct bonding *bond,
805
805
806
806
if (new_active == old_active ) {
807
807
/* do nothing */
808
- netdev_info (bond -> dev , "%s is already the current active slave\n" ,
809
- new_active -> dev -> name );
808
+ netdev_dbg (bond -> dev , "%s is already the current active slave\n" ,
809
+ new_active -> dev -> name );
810
810
} else {
811
811
if (old_active && (new_active -> link == BOND_LINK_UP ) &&
812
812
bond_slave_is_up (new_active )) {
813
- netdev_info (bond -> dev , "Setting %s as active slave\n" ,
814
- new_active -> dev -> name );
813
+ netdev_dbg (bond -> dev , "Setting %s as active slave\n" ,
814
+ new_active -> dev -> name );
815
815
bond_change_active_slave (bond , new_active );
816
816
} else {
817
817
netdev_err (bond -> dev , "Could not set %s as active slave; either %s is down or the link is down\n" ,
@@ -833,17 +833,17 @@ static int bond_option_active_slave_set(struct bonding *bond,
833
833
static int bond_option_miimon_set (struct bonding * bond ,
834
834
const struct bond_opt_value * newval )
835
835
{
836
- netdev_info (bond -> dev , "Setting MII monitoring interval to %llu\n" ,
837
- newval -> value );
836
+ netdev_dbg (bond -> dev , "Setting MII monitoring interval to %llu\n" ,
837
+ newval -> value );
838
838
bond -> params .miimon = newval -> value ;
839
839
if (bond -> params .updelay )
840
- netdev_info (bond -> dev , "Note: Updating updelay (to %d) since it is a multiple of the miimon value\n" ,
841
- bond -> params .updelay * bond -> params .miimon );
840
+ netdev_dbg (bond -> dev , "Note: Updating updelay (to %d) since it is a multiple of the miimon value\n" ,
841
+ bond -> params .updelay * bond -> params .miimon );
842
842
if (bond -> params .downdelay )
843
- netdev_info (bond -> dev , "Note: Updating downdelay (to %d) since it is a multiple of the miimon value\n" ,
844
- bond -> params .downdelay * bond -> params .miimon );
843
+ netdev_dbg (bond -> dev , "Note: Updating downdelay (to %d) since it is a multiple of the miimon value\n" ,
844
+ bond -> params .downdelay * bond -> params .miimon );
845
845
if (newval -> value && bond -> params .arp_interval ) {
846
- netdev_info (bond -> dev , "MII monitoring cannot be used with ARP monitoring - disabling ARP monitoring...\n" );
846
+ netdev_dbg (bond -> dev , "MII monitoring cannot be used with ARP monitoring - disabling ARP monitoring...\n" );
847
847
bond -> params .arp_interval = 0 ;
848
848
if (bond -> params .arp_validate )
849
849
bond -> params .arp_validate = BOND_ARP_VALIDATE_NONE ;
@@ -885,8 +885,8 @@ static int bond_option_updelay_set(struct bonding *bond,
885
885
bond -> params .miimon );
886
886
}
887
887
bond -> params .updelay = value / bond -> params .miimon ;
888
- netdev_info (bond -> dev , "Setting up delay to %d\n" ,
889
- bond -> params .updelay * bond -> params .miimon );
888
+ netdev_dbg (bond -> dev , "Setting up delay to %d\n" ,
889
+ bond -> params .updelay * bond -> params .miimon );
890
890
891
891
return 0 ;
892
892
}
@@ -907,17 +907,17 @@ static int bond_option_downdelay_set(struct bonding *bond,
907
907
bond -> params .miimon );
908
908
}
909
909
bond -> params .downdelay = value / bond -> params .miimon ;
910
- netdev_info (bond -> dev , "Setting down delay to %d\n" ,
911
- bond -> params .downdelay * bond -> params .miimon );
910
+ netdev_dbg (bond -> dev , "Setting down delay to %d\n" ,
911
+ bond -> params .downdelay * bond -> params .miimon );
912
912
913
913
return 0 ;
914
914
}
915
915
916
916
static int bond_option_use_carrier_set (struct bonding * bond ,
917
917
const struct bond_opt_value * newval )
918
918
{
919
- netdev_info (bond -> dev , "Setting use_carrier to %llu\n" ,
920
- newval -> value );
919
+ netdev_dbg (bond -> dev , "Setting use_carrier to %llu\n" ,
920
+ newval -> value );
921
921
bond -> params .use_carrier = newval -> value ;
922
922
923
923
return 0 ;
@@ -930,16 +930,16 @@ static int bond_option_use_carrier_set(struct bonding *bond,
930
930
static int bond_option_arp_interval_set (struct bonding * bond ,
931
931
const struct bond_opt_value * newval )
932
932
{
933
- netdev_info (bond -> dev , "Setting ARP monitoring interval to %llu\n" ,
934
- newval -> value );
933
+ netdev_dbg (bond -> dev , "Setting ARP monitoring interval to %llu\n" ,
934
+ newval -> value );
935
935
bond -> params .arp_interval = newval -> value ;
936
936
if (newval -> value ) {
937
937
if (bond -> params .miimon ) {
938
- netdev_info (bond -> dev , "ARP monitoring cannot be used with MII monitoring. Disabling MII monitoring\n" );
938
+ netdev_dbg (bond -> dev , "ARP monitoring cannot be used with MII monitoring. Disabling MII monitoring\n" );
939
939
bond -> params .miimon = 0 ;
940
940
}
941
941
if (!bond -> params .arp_targets [0 ])
942
- netdev_info (bond -> dev , "ARP monitoring has been set up, but no ARP targets have been specified\n" );
942
+ netdev_dbg (bond -> dev , "ARP monitoring has been set up, but no ARP targets have been specified\n" );
943
943
}
944
944
if (bond -> dev -> flags & IFF_UP ) {
945
945
/* If the interface is up, we may need to fire off
@@ -1000,7 +1000,7 @@ static int _bond_option_arp_ip_target_add(struct bonding *bond, __be32 target)
1000
1000
return - EINVAL ;
1001
1001
}
1002
1002
1003
- netdev_info (bond -> dev , "Adding ARP target %pI4\n" , & target );
1003
+ netdev_dbg (bond -> dev , "Adding ARP target %pI4\n" , & target );
1004
1004
1005
1005
_bond_options_arp_ip_target_set (bond , ind , target , jiffies );
1006
1006
@@ -1036,7 +1036,7 @@ static int bond_option_arp_ip_target_rem(struct bonding *bond, __be32 target)
1036
1036
if (ind == 0 && !targets [1 ] && bond -> params .arp_interval )
1037
1037
netdev_warn (bond -> dev , "Removing last arp target with arp_interval on\n" );
1038
1038
1039
- netdev_info (bond -> dev , "Removing ARP target %pI4\n" , & target );
1039
+ netdev_dbg (bond -> dev , "Removing ARP target %pI4\n" , & target );
1040
1040
1041
1041
bond_for_each_slave (bond , slave , iter ) {
1042
1042
targets_rx = slave -> target_last_arp_rx ;
@@ -1088,8 +1088,8 @@ static int bond_option_arp_ip_targets_set(struct bonding *bond,
1088
1088
static int bond_option_arp_validate_set (struct bonding * bond ,
1089
1089
const struct bond_opt_value * newval )
1090
1090
{
1091
- netdev_info (bond -> dev , "Setting arp_validate to %s (%llu)\n" ,
1092
- newval -> string , newval -> value );
1091
+ netdev_dbg (bond -> dev , "Setting arp_validate to %s (%llu)\n" ,
1092
+ newval -> string , newval -> value );
1093
1093
1094
1094
if (bond -> dev -> flags & IFF_UP ) {
1095
1095
if (!newval -> value )
@@ -1105,8 +1105,8 @@ static int bond_option_arp_validate_set(struct bonding *bond,
1105
1105
static int bond_option_arp_all_targets_set (struct bonding * bond ,
1106
1106
const struct bond_opt_value * newval )
1107
1107
{
1108
- netdev_info (bond -> dev , "Setting arp_all_targets to %s (%llu)\n" ,
1109
- newval -> string , newval -> value );
1108
+ netdev_dbg (bond -> dev , "Setting arp_all_targets to %s (%llu)\n" ,
1109
+ newval -> string , newval -> value );
1110
1110
bond -> params .arp_all_targets = newval -> value ;
1111
1111
1112
1112
return 0 ;
@@ -1126,7 +1126,7 @@ static int bond_option_primary_set(struct bonding *bond,
1126
1126
* p = '\0' ;
1127
1127
/* check to see if we are clearing primary */
1128
1128
if (!strlen (primary )) {
1129
- netdev_info (bond -> dev , "Setting primary slave to None\n" );
1129
+ netdev_dbg (bond -> dev , "Setting primary slave to None\n" );
1130
1130
RCU_INIT_POINTER (bond -> primary_slave , NULL );
1131
1131
memset (bond -> params .primary , 0 , sizeof (bond -> params .primary ));
1132
1132
bond_select_active_slave (bond );
@@ -1135,8 +1135,8 @@ static int bond_option_primary_set(struct bonding *bond,
1135
1135
1136
1136
bond_for_each_slave (bond , slave , iter ) {
1137
1137
if (strncmp (slave -> dev -> name , primary , IFNAMSIZ ) == 0 ) {
1138
- netdev_info (bond -> dev , "Setting %s as primary slave\n" ,
1139
- slave -> dev -> name );
1138
+ netdev_dbg (bond -> dev , "Setting %s as primary slave\n" ,
1139
+ slave -> dev -> name );
1140
1140
rcu_assign_pointer (bond -> primary_slave , slave );
1141
1141
strcpy (bond -> params .primary , slave -> dev -> name );
1142
1142
bond_select_active_slave (bond );
@@ -1145,15 +1145,15 @@ static int bond_option_primary_set(struct bonding *bond,
1145
1145
}
1146
1146
1147
1147
if (rtnl_dereference (bond -> primary_slave )) {
1148
- netdev_info (bond -> dev , "Setting primary slave to None\n" );
1148
+ netdev_dbg (bond -> dev , "Setting primary slave to None\n" );
1149
1149
RCU_INIT_POINTER (bond -> primary_slave , NULL );
1150
1150
bond_select_active_slave (bond );
1151
1151
}
1152
1152
strncpy (bond -> params .primary , primary , IFNAMSIZ );
1153
1153
bond -> params .primary [IFNAMSIZ - 1 ] = 0 ;
1154
1154
1155
- netdev_info (bond -> dev , "Recording %s as primary, but it has not been enslaved to %s yet\n" ,
1156
- primary , bond -> dev -> name );
1155
+ netdev_dbg (bond -> dev , "Recording %s as primary, but it has not been enslaved to %s yet\n" ,
1156
+ primary , bond -> dev -> name );
1157
1157
1158
1158
out :
1159
1159
unblock_netpoll_tx ();
@@ -1164,8 +1164,8 @@ static int bond_option_primary_set(struct bonding *bond,
1164
1164
static int bond_option_primary_reselect_set (struct bonding * bond ,
1165
1165
const struct bond_opt_value * newval )
1166
1166
{
1167
- netdev_info (bond -> dev , "Setting primary_reselect to %s (%llu)\n" ,
1168
- newval -> string , newval -> value );
1167
+ netdev_dbg (bond -> dev , "Setting primary_reselect to %s (%llu)\n" ,
1168
+ newval -> string , newval -> value );
1169
1169
bond -> params .primary_reselect = newval -> value ;
1170
1170
1171
1171
block_netpoll_tx ();
@@ -1178,8 +1178,8 @@ static int bond_option_primary_reselect_set(struct bonding *bond,
1178
1178
static int bond_option_fail_over_mac_set (struct bonding * bond ,
1179
1179
const struct bond_opt_value * newval )
1180
1180
{
1181
- netdev_info (bond -> dev , "Setting fail_over_mac to %s (%llu)\n" ,
1182
- newval -> string , newval -> value );
1181
+ netdev_dbg (bond -> dev , "Setting fail_over_mac to %s (%llu)\n" ,
1182
+ newval -> string , newval -> value );
1183
1183
bond -> params .fail_over_mac = newval -> value ;
1184
1184
1185
1185
return 0 ;
@@ -1188,8 +1188,8 @@ static int bond_option_fail_over_mac_set(struct bonding *bond,
1188
1188
static int bond_option_xmit_hash_policy_set (struct bonding * bond ,
1189
1189
const struct bond_opt_value * newval )
1190
1190
{
1191
- netdev_info (bond -> dev , "Setting xmit hash policy to %s (%llu)\n" ,
1192
- newval -> string , newval -> value );
1191
+ netdev_dbg (bond -> dev , "Setting xmit hash policy to %s (%llu)\n" ,
1192
+ newval -> string , newval -> value );
1193
1193
bond -> params .xmit_policy = newval -> value ;
1194
1194
1195
1195
return 0 ;
@@ -1198,8 +1198,8 @@ static int bond_option_xmit_hash_policy_set(struct bonding *bond,
1198
1198
static int bond_option_resend_igmp_set (struct bonding * bond ,
1199
1199
const struct bond_opt_value * newval )
1200
1200
{
1201
- netdev_info (bond -> dev , "Setting resend_igmp to %llu\n" ,
1202
- newval -> value );
1201
+ netdev_dbg (bond -> dev , "Setting resend_igmp to %llu\n" ,
1202
+ newval -> value );
1203
1203
bond -> params .resend_igmp = newval -> value ;
1204
1204
1205
1205
return 0 ;
@@ -1237,8 +1237,8 @@ static int bond_option_all_slaves_active_set(struct bonding *bond,
1237
1237
static int bond_option_min_links_set (struct bonding * bond ,
1238
1238
const struct bond_opt_value * newval )
1239
1239
{
1240
- netdev_info (bond -> dev , "Setting min links value to %llu\n" ,
1241
- newval -> value );
1240
+ netdev_dbg (bond -> dev , "Setting min links value to %llu\n" ,
1241
+ newval -> value );
1242
1242
bond -> params .min_links = newval -> value ;
1243
1243
bond_set_carrier (bond );
1244
1244
@@ -1256,6 +1256,8 @@ static int bond_option_lp_interval_set(struct bonding *bond,
1256
1256
static int bond_option_pps_set (struct bonding * bond ,
1257
1257
const struct bond_opt_value * newval )
1258
1258
{
1259
+ netdev_dbg (bond -> dev , "Setting packets per slave to %llu\n" ,
1260
+ newval -> value );
1259
1261
bond -> params .packets_per_slave = newval -> value ;
1260
1262
if (newval -> value > 0 ) {
1261
1263
bond -> params .reciprocal_packets_per_slave =
@@ -1274,8 +1276,8 @@ static int bond_option_pps_set(struct bonding *bond,
1274
1276
static int bond_option_lacp_rate_set (struct bonding * bond ,
1275
1277
const struct bond_opt_value * newval )
1276
1278
{
1277
- netdev_info (bond -> dev , "Setting LACP rate to %s (%llu)\n" ,
1278
- newval -> string , newval -> value );
1279
+ netdev_dbg (bond -> dev , "Setting LACP rate to %s (%llu)\n" ,
1280
+ newval -> string , newval -> value );
1279
1281
bond -> params .lacp_fast = newval -> value ;
1280
1282
bond_3ad_update_lacp_rate (bond );
1281
1283
@@ -1285,8 +1287,8 @@ static int bond_option_lacp_rate_set(struct bonding *bond,
1285
1287
static int bond_option_ad_select_set (struct bonding * bond ,
1286
1288
const struct bond_opt_value * newval )
1287
1289
{
1288
- netdev_info (bond -> dev , "Setting ad_select to %s (%llu)\n" ,
1289
- newval -> string , newval -> value );
1290
+ netdev_dbg (bond -> dev , "Setting ad_select to %s (%llu)\n" ,
1291
+ newval -> string , newval -> value );
1290
1292
bond -> params .ad_select = newval -> value ;
1291
1293
1292
1294
return 0 ;
@@ -1347,7 +1349,7 @@ static int bond_option_queue_id_set(struct bonding *bond,
1347
1349
return ret ;
1348
1350
1349
1351
err_no_cmd :
1350
- netdev_info (bond -> dev , "invalid input for queue_id set\n" );
1352
+ netdev_dbg (bond -> dev , "invalid input for queue_id set\n" );
1351
1353
ret = - EPERM ;
1352
1354
goto out ;
1353
1355
@@ -1369,20 +1371,20 @@ static int bond_option_slaves_set(struct bonding *bond,
1369
1371
1370
1372
dev = __dev_get_by_name (dev_net (bond -> dev ), ifname );
1371
1373
if (!dev ) {
1372
- netdev_info (bond -> dev , "interface %s does not exist!\n" ,
1373
- ifname );
1374
+ netdev_dbg (bond -> dev , "interface %s does not exist!\n" ,
1375
+ ifname );
1374
1376
ret = - ENODEV ;
1375
1377
goto out ;
1376
1378
}
1377
1379
1378
1380
switch (command [0 ]) {
1379
1381
case '+' :
1380
- netdev_info (bond -> dev , "Adding slave %s\n" , dev -> name );
1382
+ netdev_dbg (bond -> dev , "Adding slave %s\n" , dev -> name );
1381
1383
ret = bond_enslave (bond -> dev , dev );
1382
1384
break ;
1383
1385
1384
1386
case '-' :
1385
- netdev_info (bond -> dev , "Removing slave %s\n" , dev -> name );
1387
+ netdev_dbg (bond -> dev , "Removing slave %s\n" , dev -> name );
1386
1388
ret = bond_release (bond -> dev , dev );
1387
1389
break ;
1388
1390
@@ -1402,8 +1404,8 @@ static int bond_option_slaves_set(struct bonding *bond,
1402
1404
static int bond_option_tlb_dynamic_lb_set (struct bonding * bond ,
1403
1405
const struct bond_opt_value * newval )
1404
1406
{
1405
- netdev_info (bond -> dev , "Setting dynamic-lb to %s (%llu)\n" ,
1406
- newval -> string , newval -> value );
1407
+ netdev_dbg (bond -> dev , "Setting dynamic-lb to %s (%llu)\n" ,
1408
+ newval -> string , newval -> value );
1407
1409
bond -> params .tlb_dynamic_lb = newval -> value ;
1408
1410
1409
1411
return 0 ;
@@ -1412,8 +1414,8 @@ static int bond_option_tlb_dynamic_lb_set(struct bonding *bond,
1412
1414
static int bond_option_ad_actor_sys_prio_set (struct bonding * bond ,
1413
1415
const struct bond_opt_value * newval )
1414
1416
{
1415
- netdev_info (bond -> dev , "Setting ad_actor_sys_prio to %llu\n" ,
1416
- newval -> value );
1417
+ netdev_dbg (bond -> dev , "Setting ad_actor_sys_prio to %llu\n" ,
1418
+ newval -> value );
1417
1419
1418
1420
bond -> params .ad_actor_sys_prio = newval -> value ;
1419
1421
bond_3ad_update_ad_actor_settings (bond );
@@ -1442,7 +1444,7 @@ static int bond_option_ad_actor_system_set(struct bonding *bond,
1442
1444
if (!is_valid_ether_addr (mac ))
1443
1445
goto err ;
1444
1446
1445
- netdev_info (bond -> dev , "Setting ad_actor_system to %pM\n" , mac );
1447
+ netdev_dbg (bond -> dev , "Setting ad_actor_system to %pM\n" , mac );
1446
1448
ether_addr_copy (bond -> params .ad_actor_system , mac );
1447
1449
bond_3ad_update_ad_actor_settings (bond );
1448
1450
@@ -1456,8 +1458,8 @@ static int bond_option_ad_actor_system_set(struct bonding *bond,
1456
1458
static int bond_option_ad_user_port_key_set (struct bonding * bond ,
1457
1459
const struct bond_opt_value * newval )
1458
1460
{
1459
- netdev_info (bond -> dev , "Setting ad_user_port_key to %llu\n" ,
1460
- newval -> value );
1461
+ netdev_dbg (bond -> dev , "Setting ad_user_port_key to %llu\n" ,
1462
+ newval -> value );
1461
1463
1462
1464
bond -> params .ad_user_port_key = newval -> value ;
1463
1465
return 0 ;
0 commit comments