aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_alb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bonding/bond_alb.c')
-rw-r--r--drivers/net/bonding/bond_alb.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c
index bf45d2002924..2108706d2f0c 100644
--- a/drivers/net/bonding/bond_alb.c
+++ b/drivers/net/bonding/bond_alb.c
@@ -194,7 +194,7 @@ static int tlb_initialize(struct bonding *bond)
194 194
195 new_hashtbl = kzalloc(size, GFP_KERNEL); 195 new_hashtbl = kzalloc(size, GFP_KERNEL);
196 if (!new_hashtbl) { 196 if (!new_hashtbl) {
197 printk(KERN_ERR DRV_NAME 197 pr_err(DRV_NAME
198 ": %s: Error: Failed to allocate TLB hash table\n", 198 ": %s: Error: Failed to allocate TLB hash table\n",
199 bond->dev->name); 199 bond->dev->name);
200 return -1; 200 return -1;
@@ -510,7 +510,7 @@ static void rlb_update_client(struct rlb_client_info *client_info)
510 client_info->slave->dev->dev_addr, 510 client_info->slave->dev->dev_addr,
511 client_info->mac_dst); 511 client_info->mac_dst);
512 if (!skb) { 512 if (!skb) {
513 printk(KERN_ERR DRV_NAME 513 pr_err(DRV_NAME
514 ": %s: Error: failed to create an ARP packet\n", 514 ": %s: Error: failed to create an ARP packet\n",
515 client_info->slave->dev->master->name); 515 client_info->slave->dev->master->name);
516 continue; 516 continue;
@@ -521,7 +521,7 @@ static void rlb_update_client(struct rlb_client_info *client_info)
521 if (client_info->tag) { 521 if (client_info->tag) {
522 skb = vlan_put_tag(skb, client_info->vlan_id); 522 skb = vlan_put_tag(skb, client_info->vlan_id);
523 if (!skb) { 523 if (!skb) {
524 printk(KERN_ERR DRV_NAME 524 pr_err(DRV_NAME
525 ": %s: Error: failed to insert VLAN tag\n", 525 ": %s: Error: failed to insert VLAN tag\n",
526 client_info->slave->dev->master->name); 526 client_info->slave->dev->master->name);
527 continue; 527 continue;
@@ -605,7 +605,7 @@ static void rlb_req_update_subnet_clients(struct bonding *bond, __be32 src_ip)
605 client_info = &(bond_info->rx_hashtbl[hash_index]); 605 client_info = &(bond_info->rx_hashtbl[hash_index]);
606 606
607 if (!client_info->slave) { 607 if (!client_info->slave) {
608 printk(KERN_ERR DRV_NAME 608 pr_err(DRV_NAME
609 ": %s: Error: found a client with no channel in " 609 ": %s: Error: found a client with no channel in "
610 "the client's hash table\n", 610 "the client's hash table\n",
611 bond->dev->name); 611 bond->dev->name);
@@ -802,7 +802,7 @@ static int rlb_initialize(struct bonding *bond)
802 802
803 new_hashtbl = kmalloc(size, GFP_KERNEL); 803 new_hashtbl = kmalloc(size, GFP_KERNEL);
804 if (!new_hashtbl) { 804 if (!new_hashtbl) {
805 printk(KERN_ERR DRV_NAME 805 pr_err(DRV_NAME
806 ": %s: Error: Failed to allocate RLB hash table\n", 806 ": %s: Error: Failed to allocate RLB hash table\n",
807 bond->dev->name); 807 bond->dev->name);
808 return -1; 808 return -1;
@@ -924,7 +924,7 @@ static void alb_send_learning_packets(struct slave *slave, u8 mac_addr[])
924 924
925 skb = vlan_put_tag(skb, vlan->vlan_id); 925 skb = vlan_put_tag(skb, vlan->vlan_id);
926 if (!skb) { 926 if (!skb) {
927 printk(KERN_ERR DRV_NAME 927 pr_err(DRV_NAME
928 ": %s: Error: failed to insert VLAN tag\n", 928 ": %s: Error: failed to insert VLAN tag\n",
929 bond->dev->name); 929 bond->dev->name);
930 continue; 930 continue;
@@ -954,7 +954,7 @@ static int alb_set_slave_mac_addr(struct slave *slave, u8 addr[], int hw)
954 memcpy(s_addr.sa_data, addr, dev->addr_len); 954 memcpy(s_addr.sa_data, addr, dev->addr_len);
955 s_addr.sa_family = dev->type; 955 s_addr.sa_family = dev->type;
956 if (dev_set_mac_address(dev, &s_addr)) { 956 if (dev_set_mac_address(dev, &s_addr)) {
957 printk(KERN_ERR DRV_NAME 957 pr_err(DRV_NAME
958 ": %s: Error: dev_set_mac_address of dev %s failed! ALB " 958 ": %s: Error: dev_set_mac_address of dev %s failed! ALB "
959 "mode requires that the base driver support setting " 959 "mode requires that the base driver support setting "
960 "the hw address also when the network device's " 960 "the hw address also when the network device's "
@@ -1170,13 +1170,15 @@ static int alb_handle_addr_collision_on_attach(struct bonding *bond, struct slav
1170 alb_set_slave_mac_addr(slave, free_mac_slave->perm_hwaddr, 1170 alb_set_slave_mac_addr(slave, free_mac_slave->perm_hwaddr,
1171 bond->alb_info.rlb_enabled); 1171 bond->alb_info.rlb_enabled);
1172 1172
1173 printk(KERN_WARNING DRV_NAME 1173 pr_warning(DRV_NAME
1174 ": %s: Warning: the hw address of slave %s is in use by " 1174 ": %s: Warning: the hw address of slave %s is "
1175 "the bond; giving it the hw address of %s\n", 1175 "in use by the bond; giving it the hw address "
1176 bond->dev->name, slave->dev->name, free_mac_slave->dev->name); 1176 "of %s\n",
1177 bond->dev->name, slave->dev->name,
1178 free_mac_slave->dev->name);
1177 1179
1178 } else if (has_bond_addr) { 1180 } else if (has_bond_addr) {
1179 printk(KERN_ERR DRV_NAME 1181 pr_err(DRV_NAME
1180 ": %s: Error: the hw address of slave %s is in use by the " 1182 ": %s: Error: the hw address of slave %s is in use by the "
1181 "bond; couldn't find a slave with a free hw address to " 1183 "bond; couldn't find a slave with a free hw address to "
1182 "give it (this should not have happened)\n", 1184 "give it (this should not have happened)\n",