diff options
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/nes/nes.c | 6 | ||||
-rw-r--r-- | drivers/infiniband/hw/nes/nes_cm.c | 10 | ||||
-rw-r--r-- | drivers/infiniband/hw/nes/nes_nic.c | 10 |
3 files changed, 10 insertions, 16 deletions
diff --git a/drivers/infiniband/hw/nes/nes.c b/drivers/infiniband/hw/nes/nes.c index a2b04d62b1a4..231ed708da68 100644 --- a/drivers/infiniband/hw/nes/nes.c +++ b/drivers/infiniband/hw/nes/nes.c | |||
@@ -356,10 +356,8 @@ struct ib_qp *nes_get_qp(struct ib_device *device, int qpn) | |||
356 | */ | 356 | */ |
357 | static void nes_print_macaddr(struct net_device *netdev) | 357 | static void nes_print_macaddr(struct net_device *netdev) |
358 | { | 358 | { |
359 | DECLARE_MAC_BUF(mac); | 359 | nes_debug(NES_DBG_INIT, "%s: %pM, IRQ %u\n", |
360 | 360 | netdev->name, netdev->dev_addr, netdev->irq); | |
361 | nes_debug(NES_DBG_INIT, "%s: %s, IRQ %u\n", | ||
362 | netdev->name, print_mac(mac, netdev->dev_addr), netdev->irq); | ||
363 | } | 361 | } |
364 | 362 | ||
365 | /** | 363 | /** |
diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c index 2caf9da81ad5..6058d05e975d 100644 --- a/drivers/infiniband/hw/nes/nes_cm.c +++ b/drivers/infiniband/hw/nes/nes_cm.c | |||
@@ -1027,7 +1027,6 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip) | |||
1027 | struct flowi fl; | 1027 | struct flowi fl; |
1028 | struct neighbour *neigh; | 1028 | struct neighbour *neigh; |
1029 | int rc = -1; | 1029 | int rc = -1; |
1030 | DECLARE_MAC_BUF(mac); | ||
1031 | 1030 | ||
1032 | memset(&fl, 0, sizeof fl); | 1031 | memset(&fl, 0, sizeof fl); |
1033 | fl.nl_u.ip4_u.daddr = htonl(dst_ip); | 1032 | fl.nl_u.ip4_u.daddr = htonl(dst_ip); |
@@ -1041,8 +1040,8 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip) | |||
1041 | if (neigh) { | 1040 | if (neigh) { |
1042 | if (neigh->nud_state & NUD_VALID) { | 1041 | if (neigh->nud_state & NUD_VALID) { |
1043 | nes_debug(NES_DBG_CM, "Neighbor MAC address for 0x%08X" | 1042 | nes_debug(NES_DBG_CM, "Neighbor MAC address for 0x%08X" |
1044 | " is %s, Gateway is 0x%08X \n", dst_ip, | 1043 | " is %pM, Gateway is 0x%08X \n", dst_ip, |
1045 | print_mac(mac, neigh->ha), ntohl(rt->rt_gateway)); | 1044 | neigh->ha, ntohl(rt->rt_gateway)); |
1046 | nes_manage_arp_cache(nesvnic->netdev, neigh->ha, | 1045 | nes_manage_arp_cache(nesvnic->netdev, neigh->ha, |
1047 | dst_ip, NES_ARP_ADD); | 1046 | dst_ip, NES_ARP_ADD); |
1048 | rc = nes_arp_table(nesvnic->nesdev, dst_ip, NULL, | 1047 | rc = nes_arp_table(nesvnic->nesdev, dst_ip, NULL, |
@@ -1071,7 +1070,6 @@ static struct nes_cm_node *make_cm_node(struct nes_cm_core *cm_core, | |||
1071 | int arpindex = 0; | 1070 | int arpindex = 0; |
1072 | struct nes_device *nesdev; | 1071 | struct nes_device *nesdev; |
1073 | struct nes_adapter *nesadapter; | 1072 | struct nes_adapter *nesadapter; |
1074 | DECLARE_MAC_BUF(mac); | ||
1075 | 1073 | ||
1076 | /* create an hte and cm_node for this instance */ | 1074 | /* create an hte and cm_node for this instance */ |
1077 | cm_node = kzalloc(sizeof(*cm_node), GFP_ATOMIC); | 1075 | cm_node = kzalloc(sizeof(*cm_node), GFP_ATOMIC); |
@@ -1137,8 +1135,8 @@ static struct nes_cm_node *make_cm_node(struct nes_cm_core *cm_core, | |||
1137 | 1135 | ||
1138 | /* copy the mac addr to node context */ | 1136 | /* copy the mac addr to node context */ |
1139 | memcpy(cm_node->rem_mac, nesadapter->arp_table[arpindex].mac_addr, ETH_ALEN); | 1137 | memcpy(cm_node->rem_mac, nesadapter->arp_table[arpindex].mac_addr, ETH_ALEN); |
1140 | nes_debug(NES_DBG_CM, "Remote mac addr from arp table: %s\n", | 1138 | nes_debug(NES_DBG_CM, "Remote mac addr from arp table: %pM\n", |
1141 | print_mac(mac, cm_node->rem_mac)); | 1139 | cm_node->rem_mac); |
1142 | 1140 | ||
1143 | add_hte_node(cm_core, cm_node); | 1141 | add_hte_node(cm_core, cm_node); |
1144 | atomic_inc(&cm_nodes_created); | 1142 | atomic_inc(&cm_nodes_created); |
diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c index 730358637bb6..3c96203e0d91 100644 --- a/drivers/infiniband/hw/nes/nes_nic.c +++ b/drivers/infiniband/hw/nes/nes_nic.c | |||
@@ -797,14 +797,13 @@ static int nes_netdev_set_mac_address(struct net_device *netdev, void *p) | |||
797 | int i; | 797 | int i; |
798 | u32 macaddr_low; | 798 | u32 macaddr_low; |
799 | u16 macaddr_high; | 799 | u16 macaddr_high; |
800 | DECLARE_MAC_BUF(mac); | ||
801 | 800 | ||
802 | if (!is_valid_ether_addr(mac_addr->sa_data)) | 801 | if (!is_valid_ether_addr(mac_addr->sa_data)) |
803 | return -EADDRNOTAVAIL; | 802 | return -EADDRNOTAVAIL; |
804 | 803 | ||
805 | memcpy(netdev->dev_addr, mac_addr->sa_data, netdev->addr_len); | 804 | memcpy(netdev->dev_addr, mac_addr->sa_data, netdev->addr_len); |
806 | printk(PFX "%s: Address length = %d, Address = %s\n", | 805 | printk(PFX "%s: Address length = %d, Address = %pM\n", |
807 | __func__, netdev->addr_len, print_mac(mac, mac_addr->sa_data)); | 806 | __func__, netdev->addr_len, mac_addr->sa_data); |
808 | macaddr_high = ((u16)netdev->dev_addr[0]) << 8; | 807 | macaddr_high = ((u16)netdev->dev_addr[0]) << 8; |
809 | macaddr_high += (u16)netdev->dev_addr[1]; | 808 | macaddr_high += (u16)netdev->dev_addr[1]; |
810 | macaddr_low = ((u32)netdev->dev_addr[2]) << 24; | 809 | macaddr_low = ((u32)netdev->dev_addr[2]) << 24; |
@@ -909,9 +908,8 @@ static void nes_netdev_set_multicast_list(struct net_device *netdev) | |||
909 | if (mc_index >= max_pft_entries_avaiable) | 908 | if (mc_index >= max_pft_entries_avaiable) |
910 | break; | 909 | break; |
911 | if (multicast_addr) { | 910 | if (multicast_addr) { |
912 | DECLARE_MAC_BUF(mac); | 911 | nes_debug(NES_DBG_NIC_RX, "Assigning MC Address %pM to register 0x%04X nic_idx=%d\n", |
913 | nes_debug(NES_DBG_NIC_RX, "Assigning MC Address %s to register 0x%04X nic_idx=%d\n", | 912 | multicast_addr->dmi_addr, |
914 | print_mac(mac, multicast_addr->dmi_addr), | ||
915 | perfect_filter_register_address+(mc_index * 8), | 913 | perfect_filter_register_address+(mc_index * 8), |
916 | mc_nic_index); | 914 | mc_nic_index); |
917 | macaddr_high = ((u16)multicast_addr->dmi_addr[0]) << 8; | 915 | macaddr_high = ((u16)multicast_addr->dmi_addr[0]) << 8; |