aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/nes/nes_cm.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-10-27 18:59:26 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-27 20:06:18 -0400
commite174961ca1a0b28f7abf0be47973ad57cb74e5f0 (patch)
treee8f74ecd420a0e380a71670e5aec5c2a0c15640a /drivers/infiniband/hw/nes/nes_cm.c
parent0c68ae2605dbcf67414d8d1f19af93be44b355fb (diff)
net: convert print_mac to %pM
This converts pretty much everything to print_mac. There were a few things that had conflicts which I have just dropped for now, no harm done. I've built an allyesconfig with this and looked at the files that weren't built very carefully, but it's a huge patch. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_cm.c')
-rw-r--r--drivers/infiniband/hw/nes/nes_cm.c10
1 files changed, 4 insertions, 6 deletions
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);