aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-10-29 15:52:50 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-29 15:52:50 -0400
commit5b095d98928fdb9e3b75be20a54b7a6cbf6ca9ad (patch)
treeb6caa0cdbaac016447a790881ad4a6c5dfce6900 /drivers/infiniband
parent4b7a4274ca63dadd9c4f17fc953f3a5d19855c4c (diff)
net: replace %p6 with %pI6
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/sysfs.c2
-rw-r--r--drivers/infiniband/hw/mthca/mthca_mcg.c4
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib_cm.c4
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib_main.c12
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib_multicast.c30
-rw-r--r--drivers/infiniband/ulp/srp/ib_srp.c6
6 files changed, 29 insertions, 29 deletions
diff --git a/drivers/infiniband/core/sysfs.c b/drivers/infiniband/core/sysfs.c
index e985193d631c..4f4d1bb9f069 100644
--- a/drivers/infiniband/core/sysfs.c
+++ b/drivers/infiniband/core/sysfs.c
@@ -262,7 +262,7 @@ static ssize_t show_port_gid(struct ib_port *p, struct port_attribute *attr,
262 if (ret) 262 if (ret)
263 return ret; 263 return ret;
264 264
265 return sprintf(buf, "%p6\n", gid.raw); 265 return sprintf(buf, "%pI6\n", gid.raw);
266} 266}
267 267
268static ssize_t show_port_pkey(struct ib_port *p, struct port_attribute *attr, 268static ssize_t show_port_pkey(struct ib_port *p, struct port_attribute *attr,
diff --git a/drivers/infiniband/hw/mthca/mthca_mcg.c b/drivers/infiniband/hw/mthca/mthca_mcg.c
index 693bed0b2d1c..d4c81053e439 100644
--- a/drivers/infiniband/hw/mthca/mthca_mcg.c
+++ b/drivers/infiniband/hw/mthca/mthca_mcg.c
@@ -87,7 +87,7 @@ static int find_mgm(struct mthca_dev *dev,
87 } 87 }
88 88
89 if (0) 89 if (0)
90 mthca_dbg(dev, "Hash for %p6 is %04x\n", gid, *hash); 90 mthca_dbg(dev, "Hash for %pI6 is %04x\n", gid, *hash);
91 91
92 *index = *hash; 92 *index = *hash;
93 *prev = -1; 93 *prev = -1;
@@ -254,7 +254,7 @@ int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid)
254 goto out; 254 goto out;
255 255
256 if (index == -1) { 256 if (index == -1) {
257 mthca_err(dev, "MGID %p6 not found\n", gid->raw); 257 mthca_err(dev, "MGID %pI6 not found\n", gid->raw);
258 err = -EINVAL; 258 err = -EINVAL;
259 goto out; 259 goto out;
260 } 260 }
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c
index d98d87bfe365..47d588ba2a7f 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c
@@ -1128,7 +1128,7 @@ static int ipoib_cm_tx_init(struct ipoib_cm_tx *p, u32 qpn,
1128 goto err_send_cm; 1128 goto err_send_cm;
1129 } 1129 }
1130 1130
1131 ipoib_dbg(priv, "Request connection 0x%x for gid %p6 qpn 0x%x\n", 1131 ipoib_dbg(priv, "Request connection 0x%x for gid %pI6 qpn 0x%x\n",
1132 p->qp->qp_num, pathrec->dgid.raw, qpn); 1132 p->qp->qp_num, pathrec->dgid.raw, qpn);
1133 1133
1134 return 0; 1134 return 0;
@@ -1276,7 +1276,7 @@ void ipoib_cm_destroy_tx(struct ipoib_cm_tx *tx)
1276 if (test_and_clear_bit(IPOIB_FLAG_INITIALIZED, &tx->flags)) { 1276 if (test_and_clear_bit(IPOIB_FLAG_INITIALIZED, &tx->flags)) {
1277 list_move(&tx->list, &priv->cm.reap_list); 1277 list_move(&tx->list, &priv->cm.reap_list);
1278 queue_work(ipoib_workqueue, &priv->cm.reap_task); 1278 queue_work(ipoib_workqueue, &priv->cm.reap_task);
1279 ipoib_dbg(priv, "Reap connection for gid %p6\n", 1279 ipoib_dbg(priv, "Reap connection for gid %pI6\n",
1280 tx->neigh->dgid.raw); 1280 tx->neigh->dgid.raw);
1281 tx->neigh = NULL; 1281 tx->neigh = NULL;
1282 } 1282 }
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c
index e7f4f94c3e92..b3a671895bdc 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_main.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c
@@ -359,7 +359,7 @@ void ipoib_mark_paths_invalid(struct net_device *dev)
359 spin_lock_irq(&priv->lock); 359 spin_lock_irq(&priv->lock);
360 360
361 list_for_each_entry_safe(path, tp, &priv->path_list, list) { 361 list_for_each_entry_safe(path, tp, &priv->path_list, list) {
362 ipoib_dbg(priv, "mark path LID 0x%04x GID %p6 invalid\n", 362 ipoib_dbg(priv, "mark path LID 0x%04x GID %pI6 invalid\n",
363 be16_to_cpu(path->pathrec.dlid), 363 be16_to_cpu(path->pathrec.dlid),
364 path->pathrec.dgid.raw); 364 path->pathrec.dgid.raw);
365 path->valid = 0; 365 path->valid = 0;
@@ -413,10 +413,10 @@ static void path_rec_completion(int status,
413 unsigned long flags; 413 unsigned long flags;
414 414
415 if (!status) 415 if (!status)
416 ipoib_dbg(priv, "PathRec LID 0x%04x for GID %p6\n", 416 ipoib_dbg(priv, "PathRec LID 0x%04x for GID %pI6\n",
417 be16_to_cpu(pathrec->dlid), pathrec->dgid.raw); 417 be16_to_cpu(pathrec->dlid), pathrec->dgid.raw);
418 else 418 else
419 ipoib_dbg(priv, "PathRec status %d for GID %p6\n", 419 ipoib_dbg(priv, "PathRec status %d for GID %pI6\n",
420 status, path->pathrec.dgid.raw); 420 status, path->pathrec.dgid.raw);
421 421
422 skb_queue_head_init(&skqueue); 422 skb_queue_head_init(&skqueue);
@@ -527,7 +527,7 @@ static int path_rec_start(struct net_device *dev,
527{ 527{
528 struct ipoib_dev_priv *priv = netdev_priv(dev); 528 struct ipoib_dev_priv *priv = netdev_priv(dev);
529 529
530 ipoib_dbg(priv, "Start path record lookup for %p6\n", 530 ipoib_dbg(priv, "Start path record lookup for %pI6\n",
531 path->pathrec.dgid.raw); 531 path->pathrec.dgid.raw);
532 532
533 init_completion(&path->done); 533 init_completion(&path->done);
@@ -764,7 +764,7 @@ static int ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev)
764 764
765 if ((be16_to_cpup((__be16 *) skb->data) != ETH_P_ARP) && 765 if ((be16_to_cpup((__be16 *) skb->data) != ETH_P_ARP) &&
766 (be16_to_cpup((__be16 *) skb->data) != ETH_P_RARP)) { 766 (be16_to_cpup((__be16 *) skb->data) != ETH_P_RARP)) {
767 ipoib_warn(priv, "Unicast, no %s: type %04x, QPN %06x %p6\n", 767 ipoib_warn(priv, "Unicast, no %s: type %04x, QPN %06x %pI6\n",
768 skb->dst ? "neigh" : "dst", 768 skb->dst ? "neigh" : "dst",
769 be16_to_cpup((__be16 *) skb->data), 769 be16_to_cpup((__be16 *) skb->data),
770 IPOIB_QPN(phdr->hwaddr), 770 IPOIB_QPN(phdr->hwaddr),
@@ -844,7 +844,7 @@ static void ipoib_neigh_cleanup(struct neighbour *n)
844 else 844 else
845 return; 845 return;
846 ipoib_dbg(priv, 846 ipoib_dbg(priv,
847 "neigh_cleanup for %06x %p6\n", 847 "neigh_cleanup for %06x %pI6\n",
848 IPOIB_QPN(n->ha), 848 IPOIB_QPN(n->ha),
849 n->ha + 4); 849 n->ha + 4);
850 850
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
index 0de79cf4c07c..a2eb3b9789eb 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
@@ -71,7 +71,7 @@ static void ipoib_mcast_free(struct ipoib_mcast *mcast)
71 struct ipoib_neigh *neigh, *tmp; 71 struct ipoib_neigh *neigh, *tmp;
72 int tx_dropped = 0; 72 int tx_dropped = 0;
73 73
74 ipoib_dbg_mcast(netdev_priv(dev), "deleting multicast group %p6\n", 74 ipoib_dbg_mcast(netdev_priv(dev), "deleting multicast group %pI6\n",
75 mcast->mcmember.mgid.raw); 75 mcast->mcmember.mgid.raw);
76 76
77 spin_lock_irq(&priv->lock); 77 spin_lock_irq(&priv->lock);
@@ -204,7 +204,7 @@ static int ipoib_mcast_join_finish(struct ipoib_mcast *mcast,
204 204
205 if (!test_bit(IPOIB_MCAST_FLAG_SENDONLY, &mcast->flags)) { 205 if (!test_bit(IPOIB_MCAST_FLAG_SENDONLY, &mcast->flags)) {
206 if (test_and_set_bit(IPOIB_MCAST_FLAG_ATTACHED, &mcast->flags)) { 206 if (test_and_set_bit(IPOIB_MCAST_FLAG_ATTACHED, &mcast->flags)) {
207 ipoib_warn(priv, "multicast group %p6 already attached\n", 207 ipoib_warn(priv, "multicast group %pI6 already attached\n",
208 mcast->mcmember.mgid.raw); 208 mcast->mcmember.mgid.raw);
209 209
210 return 0; 210 return 0;
@@ -213,7 +213,7 @@ static int ipoib_mcast_join_finish(struct ipoib_mcast *mcast,
213 ret = ipoib_mcast_attach(dev, be16_to_cpu(mcast->mcmember.mlid), 213 ret = ipoib_mcast_attach(dev, be16_to_cpu(mcast->mcmember.mlid),
214 &mcast->mcmember.mgid, set_qkey); 214 &mcast->mcmember.mgid, set_qkey);
215 if (ret < 0) { 215 if (ret < 0) {
216 ipoib_warn(priv, "couldn't attach QP to multicast group %p6\n", 216 ipoib_warn(priv, "couldn't attach QP to multicast group %pI6\n",
217 mcast->mcmember.mgid.raw); 217 mcast->mcmember.mgid.raw);
218 218
219 clear_bit(IPOIB_MCAST_FLAG_ATTACHED, &mcast->flags); 219 clear_bit(IPOIB_MCAST_FLAG_ATTACHED, &mcast->flags);
@@ -245,7 +245,7 @@ static int ipoib_mcast_join_finish(struct ipoib_mcast *mcast,
245 mcast->ah = ah; 245 mcast->ah = ah;
246 spin_unlock_irq(&priv->lock); 246 spin_unlock_irq(&priv->lock);
247 247
248 ipoib_dbg_mcast(priv, "MGID %p6 AV %p, LID 0x%04x, SL %d\n", 248 ipoib_dbg_mcast(priv, "MGID %pI6 AV %p, LID 0x%04x, SL %d\n",
249 mcast->mcmember.mgid.raw, 249 mcast->mcmember.mgid.raw,
250 mcast->ah->ah, 250 mcast->ah->ah,
251 be16_to_cpu(mcast->mcmember.mlid), 251 be16_to_cpu(mcast->mcmember.mlid),
@@ -291,7 +291,7 @@ ipoib_mcast_sendonly_join_complete(int status,
291 291
292 if (status) { 292 if (status) {
293 if (mcast->logcount++ < 20) 293 if (mcast->logcount++ < 20)
294 ipoib_dbg_mcast(netdev_priv(dev), "multicast join failed for %p6, status %d\n", 294 ipoib_dbg_mcast(netdev_priv(dev), "multicast join failed for %pI6, status %d\n",
295 mcast->mcmember.mgid.raw, status); 295 mcast->mcmember.mgid.raw, status);
296 296
297 /* Flush out any queued packets */ 297 /* Flush out any queued packets */
@@ -351,7 +351,7 @@ static int ipoib_mcast_sendonly_join(struct ipoib_mcast *mcast)
351 ipoib_warn(priv, "ib_sa_join_multicast failed (ret = %d)\n", 351 ipoib_warn(priv, "ib_sa_join_multicast failed (ret = %d)\n",
352 ret); 352 ret);
353 } else { 353 } else {
354 ipoib_dbg_mcast(priv, "no multicast record for %p6, starting join\n", 354 ipoib_dbg_mcast(priv, "no multicast record for %pI6, starting join\n",
355 mcast->mcmember.mgid.raw); 355 mcast->mcmember.mgid.raw);
356 } 356 }
357 357
@@ -380,7 +380,7 @@ static int ipoib_mcast_join_complete(int status,
380 struct net_device *dev = mcast->dev; 380 struct net_device *dev = mcast->dev;
381 struct ipoib_dev_priv *priv = netdev_priv(dev); 381 struct ipoib_dev_priv *priv = netdev_priv(dev);
382 382
383 ipoib_dbg_mcast(priv, "join completion for %p6 (status %d)\n", 383 ipoib_dbg_mcast(priv, "join completion for %pI6 (status %d)\n",
384 mcast->mcmember.mgid.raw, status); 384 mcast->mcmember.mgid.raw, status);
385 385
386 /* We trap for port events ourselves. */ 386 /* We trap for port events ourselves. */
@@ -410,10 +410,10 @@ static int ipoib_mcast_join_complete(int status,
410 410
411 if (mcast->logcount++ < 20) { 411 if (mcast->logcount++ < 20) {
412 if (status == -ETIMEDOUT) { 412 if (status == -ETIMEDOUT) {
413 ipoib_dbg_mcast(priv, "multicast join failed for %p6, status %d\n", 413 ipoib_dbg_mcast(priv, "multicast join failed for %pI6, status %d\n",
414 mcast->mcmember.mgid.raw, status); 414 mcast->mcmember.mgid.raw, status);
415 } else { 415 } else {
416 ipoib_warn(priv, "multicast join failed for %p6, status %d\n", 416 ipoib_warn(priv, "multicast join failed for %pI6, status %d\n",
417 mcast->mcmember.mgid.raw, status); 417 mcast->mcmember.mgid.raw, status);
418 } 418 }
419 } 419 }
@@ -446,7 +446,7 @@ static void ipoib_mcast_join(struct net_device *dev, struct ipoib_mcast *mcast,
446 ib_sa_comp_mask comp_mask; 446 ib_sa_comp_mask comp_mask;
447 int ret = 0; 447 int ret = 0;
448 448
449 ipoib_dbg_mcast(priv, "joining MGID %p6\n", mcast->mcmember.mgid.raw); 449 ipoib_dbg_mcast(priv, "joining MGID %pI6\n", mcast->mcmember.mgid.raw);
450 450
451 rec.mgid = mcast->mcmember.mgid; 451 rec.mgid = mcast->mcmember.mgid;
452 rec.port_gid = priv->local_gid; 452 rec.port_gid = priv->local_gid;
@@ -631,7 +631,7 @@ static int ipoib_mcast_leave(struct net_device *dev, struct ipoib_mcast *mcast)
631 ib_sa_free_multicast(mcast->mc); 631 ib_sa_free_multicast(mcast->mc);
632 632
633 if (test_and_clear_bit(IPOIB_MCAST_FLAG_ATTACHED, &mcast->flags)) { 633 if (test_and_clear_bit(IPOIB_MCAST_FLAG_ATTACHED, &mcast->flags)) {
634 ipoib_dbg_mcast(priv, "leaving MGID %p6\n", 634 ipoib_dbg_mcast(priv, "leaving MGID %pI6\n",
635 mcast->mcmember.mgid.raw); 635 mcast->mcmember.mgid.raw);
636 636
637 /* Remove ourselves from the multicast group */ 637 /* Remove ourselves from the multicast group */
@@ -663,7 +663,7 @@ void ipoib_mcast_send(struct net_device *dev, void *mgid, struct sk_buff *skb)
663 mcast = __ipoib_mcast_find(dev, mgid); 663 mcast = __ipoib_mcast_find(dev, mgid);
664 if (!mcast) { 664 if (!mcast) {
665 /* Let's create a new send only group now */ 665 /* Let's create a new send only group now */
666 ipoib_dbg_mcast(priv, "setting up send only multicast group for %p6\n", 666 ipoib_dbg_mcast(priv, "setting up send only multicast group for %pI6\n",
667 mgid); 667 mgid);
668 668
669 mcast = ipoib_mcast_alloc(dev, 0); 669 mcast = ipoib_mcast_alloc(dev, 0);
@@ -797,13 +797,13 @@ void ipoib_mcast_restart_task(struct work_struct *work)
797 /* ignore group which is directly joined by userspace */ 797 /* ignore group which is directly joined by userspace */
798 if (test_bit(IPOIB_FLAG_UMCAST, &priv->flags) && 798 if (test_bit(IPOIB_FLAG_UMCAST, &priv->flags) &&
799 !ib_sa_get_mcmember_rec(priv->ca, priv->port, &mgid, &rec)) { 799 !ib_sa_get_mcmember_rec(priv->ca, priv->port, &mgid, &rec)) {
800 ipoib_dbg_mcast(priv, "ignoring multicast entry for mgid %p6\n", 800 ipoib_dbg_mcast(priv, "ignoring multicast entry for mgid %pI6\n",
801 mgid.raw); 801 mgid.raw);
802 continue; 802 continue;
803 } 803 }
804 804
805 /* Not found or send-only group, let's add a new entry */ 805 /* Not found or send-only group, let's add a new entry */
806 ipoib_dbg_mcast(priv, "adding multicast entry for mgid %p6\n", 806 ipoib_dbg_mcast(priv, "adding multicast entry for mgid %pI6\n",
807 mgid.raw); 807 mgid.raw);
808 808
809 nmcast = ipoib_mcast_alloc(dev, 0); 809 nmcast = ipoib_mcast_alloc(dev, 0);
@@ -837,7 +837,7 @@ void ipoib_mcast_restart_task(struct work_struct *work)
837 list_for_each_entry_safe(mcast, tmcast, &priv->multicast_list, list) { 837 list_for_each_entry_safe(mcast, tmcast, &priv->multicast_list, list) {
838 if (!test_bit(IPOIB_MCAST_FLAG_FOUND, &mcast->flags) && 838 if (!test_bit(IPOIB_MCAST_FLAG_FOUND, &mcast->flags) &&
839 !test_bit(IPOIB_MCAST_FLAG_SENDONLY, &mcast->flags)) { 839 !test_bit(IPOIB_MCAST_FLAG_SENDONLY, &mcast->flags)) {
840 ipoib_dbg_mcast(priv, "deleting multicast group %p6\n", 840 ipoib_dbg_mcast(priv, "deleting multicast group %pI6\n",
841 mcast->mcmember.mgid.raw); 841 mcast->mcmember.mgid.raw);
842 842
843 rb_erase(&mcast->rb_node, &priv->multicast_tree); 843 rb_erase(&mcast->rb_node, &priv->multicast_tree);
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index bc825310c6db..7c13db885bf6 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -1514,7 +1514,7 @@ static ssize_t show_dgid(struct device *dev, struct device_attribute *attr,
1514 target->state == SRP_TARGET_REMOVED) 1514 target->state == SRP_TARGET_REMOVED)
1515 return -ENODEV; 1515 return -ENODEV;
1516 1516
1517 return sprintf(buf, "%p6\n", target->path.dgid.raw); 1517 return sprintf(buf, "%pI6\n", target->path.dgid.raw);
1518} 1518}
1519 1519
1520static ssize_t show_orig_dgid(struct device *dev, 1520static ssize_t show_orig_dgid(struct device *dev,
@@ -1526,7 +1526,7 @@ static ssize_t show_orig_dgid(struct device *dev,
1526 target->state == SRP_TARGET_REMOVED) 1526 target->state == SRP_TARGET_REMOVED)
1527 return -ENODEV; 1527 return -ENODEV;
1528 1528
1529 return sprintf(buf, "%p6\n", target->orig_dgid); 1529 return sprintf(buf, "%pI6\n", target->orig_dgid);
1530} 1530}
1531 1531
1532static ssize_t show_zero_req_lim(struct device *dev, 1532static ssize_t show_zero_req_lim(struct device *dev,
@@ -1867,7 +1867,7 @@ static ssize_t srp_create_target(struct device *dev,
1867 1867
1868 shost_printk(KERN_DEBUG, target->scsi_host, PFX 1868 shost_printk(KERN_DEBUG, target->scsi_host, PFX
1869 "new target: id_ext %016llx ioc_guid %016llx pkey %04x " 1869 "new target: id_ext %016llx ioc_guid %016llx pkey %04x "
1870 "service_id %016llx dgid %p6\n", 1870 "service_id %016llx dgid %pI6\n",
1871 (unsigned long long) be64_to_cpu(target->id_ext), 1871 (unsigned long long) be64_to_cpu(target->id_ext),
1872 (unsigned long long) be64_to_cpu(target->ioc_guid), 1872 (unsigned long long) be64_to_cpu(target->ioc_guid),
1873 be16_to_cpu(target->path.pkey), 1873 be16_to_cpu(target->path.pkey),