diff options
Diffstat (limited to 'drivers/net/bonding/bond_alb.c')
-rw-r--r-- | drivers/net/bonding/bond_alb.c | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c index f8fce3961197..96dfb90c5252 100644 --- a/drivers/net/bonding/bond_alb.c +++ b/drivers/net/bonding/bond_alb.c | |||
@@ -207,7 +207,7 @@ static int tlb_initialize(struct bonding *bond) | |||
207 | bond_info->tx_hashtbl = kmalloc(size, GFP_KERNEL); | 207 | bond_info->tx_hashtbl = kmalloc(size, GFP_KERNEL); |
208 | if (!bond_info->tx_hashtbl) { | 208 | if (!bond_info->tx_hashtbl) { |
209 | printk(KERN_ERR DRV_NAME | 209 | printk(KERN_ERR DRV_NAME |
210 | ": Error: %s: Failed to allocate TLB hash table\n", | 210 | ": %s: Error: Failed to allocate TLB hash table\n", |
211 | bond->dev->name); | 211 | bond->dev->name); |
212 | _unlock_tx_hashtbl(bond); | 212 | _unlock_tx_hashtbl(bond); |
213 | return -1; | 213 | return -1; |
@@ -513,7 +513,8 @@ static void rlb_update_client(struct rlb_client_info *client_info) | |||
513 | client_info->mac_dst); | 513 | client_info->mac_dst); |
514 | if (!skb) { | 514 | if (!skb) { |
515 | printk(KERN_ERR DRV_NAME | 515 | printk(KERN_ERR DRV_NAME |
516 | ": Error: failed to create an ARP packet\n"); | 516 | ": %s: Error: failed to create an ARP packet\n", |
517 | client_info->slave->dev->master->name); | ||
517 | continue; | 518 | continue; |
518 | } | 519 | } |
519 | 520 | ||
@@ -523,7 +524,8 @@ static void rlb_update_client(struct rlb_client_info *client_info) | |||
523 | skb = vlan_put_tag(skb, client_info->vlan_id); | 524 | skb = vlan_put_tag(skb, client_info->vlan_id); |
524 | if (!skb) { | 525 | if (!skb) { |
525 | printk(KERN_ERR DRV_NAME | 526 | printk(KERN_ERR DRV_NAME |
526 | ": Error: failed to insert VLAN tag\n"); | 527 | ": %s: Error: failed to insert VLAN tag\n", |
528 | client_info->slave->dev->master->name); | ||
527 | continue; | 529 | continue; |
528 | } | 530 | } |
529 | } | 531 | } |
@@ -606,8 +608,9 @@ static void rlb_req_update_subnet_clients(struct bonding *bond, u32 src_ip) | |||
606 | 608 | ||
607 | if (!client_info->slave) { | 609 | if (!client_info->slave) { |
608 | printk(KERN_ERR DRV_NAME | 610 | printk(KERN_ERR DRV_NAME |
609 | ": Error: found a client with no channel in " | 611 | ": %s: Error: found a client with no channel in " |
610 | "the client's hash table\n"); | 612 | "the client's hash table\n", |
613 | bond->dev->name); | ||
611 | continue; | 614 | continue; |
612 | } | 615 | } |
613 | /*update all clients using this src_ip, that are not assigned | 616 | /*update all clients using this src_ip, that are not assigned |
@@ -807,7 +810,7 @@ static int rlb_initialize(struct bonding *bond) | |||
807 | bond_info->rx_hashtbl = kmalloc(size, GFP_KERNEL); | 810 | bond_info->rx_hashtbl = kmalloc(size, GFP_KERNEL); |
808 | if (!bond_info->rx_hashtbl) { | 811 | if (!bond_info->rx_hashtbl) { |
809 | printk(KERN_ERR DRV_NAME | 812 | printk(KERN_ERR DRV_NAME |
810 | ": Error: %s: Failed to allocate RLB hash table\n", | 813 | ": %s: Error: Failed to allocate RLB hash table\n", |
811 | bond->dev->name); | 814 | bond->dev->name); |
812 | _unlock_rx_hashtbl(bond); | 815 | _unlock_rx_hashtbl(bond); |
813 | return -1; | 816 | return -1; |
@@ -927,7 +930,8 @@ static void alb_send_learning_packets(struct slave *slave, u8 mac_addr[]) | |||
927 | skb = vlan_put_tag(skb, vlan->vlan_id); | 930 | skb = vlan_put_tag(skb, vlan->vlan_id); |
928 | if (!skb) { | 931 | if (!skb) { |
929 | printk(KERN_ERR DRV_NAME | 932 | printk(KERN_ERR DRV_NAME |
930 | ": Error: failed to insert VLAN tag\n"); | 933 | ": %s: Error: failed to insert VLAN tag\n", |
934 | bond->dev->name); | ||
931 | continue; | 935 | continue; |
932 | } | 936 | } |
933 | } | 937 | } |
@@ -956,11 +960,11 @@ static int alb_set_slave_mac_addr(struct slave *slave, u8 addr[], int hw) | |||
956 | s_addr.sa_family = dev->type; | 960 | s_addr.sa_family = dev->type; |
957 | if (dev_set_mac_address(dev, &s_addr)) { | 961 | if (dev_set_mac_address(dev, &s_addr)) { |
958 | printk(KERN_ERR DRV_NAME | 962 | printk(KERN_ERR DRV_NAME |
959 | ": Error: dev_set_mac_address of dev %s failed! ALB " | 963 | ": %s: Error: dev_set_mac_address of dev %s failed! ALB " |
960 | "mode requires that the base driver support setting " | 964 | "mode requires that the base driver support setting " |
961 | "the hw address also when the network device's " | 965 | "the hw address also when the network device's " |
962 | "interface is open\n", | 966 | "interface is open\n", |
963 | dev->name); | 967 | dev->master->name, dev->name); |
964 | return -EOPNOTSUPP; | 968 | return -EOPNOTSUPP; |
965 | } | 969 | } |
966 | return 0; | 970 | return 0; |
@@ -1153,16 +1157,16 @@ static int alb_handle_addr_collision_on_attach(struct bonding *bond, struct slav | |||
1153 | bond->alb_info.rlb_enabled); | 1157 | bond->alb_info.rlb_enabled); |
1154 | 1158 | ||
1155 | printk(KERN_WARNING DRV_NAME | 1159 | printk(KERN_WARNING DRV_NAME |
1156 | ": Warning: the hw address of slave %s is in use by " | 1160 | ": %s: Warning: the hw address of slave %s is in use by " |
1157 | "the bond; giving it the hw address of %s\n", | 1161 | "the bond; giving it the hw address of %s\n", |
1158 | slave->dev->name, free_mac_slave->dev->name); | 1162 | bond->dev->name, slave->dev->name, free_mac_slave->dev->name); |
1159 | 1163 | ||
1160 | } else if (has_bond_addr) { | 1164 | } else if (has_bond_addr) { |
1161 | printk(KERN_ERR DRV_NAME | 1165 | printk(KERN_ERR DRV_NAME |
1162 | ": Error: the hw address of slave %s is in use by the " | 1166 | ": %s: Error: the hw address of slave %s is in use by the " |
1163 | "bond; couldn't find a slave with a free hw address to " | 1167 | "bond; couldn't find a slave with a free hw address to " |
1164 | "give it (this should not have happened)\n", | 1168 | "give it (this should not have happened)\n", |
1165 | slave->dev->name); | 1169 | bond->dev->name, slave->dev->name); |
1166 | return -EFAULT; | 1170 | return -EFAULT; |
1167 | } | 1171 | } |
1168 | 1172 | ||