aboutsummaryrefslogtreecommitdiffstats
path: root/net/atm/lec.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-08-28 18:22:09 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:48:27 -0400
commit522400623e240ad134cb4101b1fddc3245d2a7ed (patch)
treefb1f341426ae7cd5c977232c8084bf45819d1bea /net/atm/lec.c
parent23f1f4eff85d3d2ec9ed589e3fdcbba59eaa083e (diff)
[ATM]: Replace DPRINTK() with pr_debug().
Get rid of using DPRINTK macro in ATM and use pr_debug (in kernel.h). Using the standard macro is cleaner and forces code to check for bad arguments and formatting. Fixes from Thomas Graf. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/lec.c')
-rw-r--r--net/atm/lec.c104
1 files changed, 49 insertions, 55 deletions
diff --git a/net/atm/lec.c b/net/atm/lec.c
index 59d5aa3366f2..813a090dcaf4 100644
--- a/net/atm/lec.c
+++ b/net/atm/lec.c
@@ -48,12 +48,6 @@ static unsigned char bridge_ula_lec[] = { 0x01, 0x80, 0xc2, 0x00, 0x00 };
48#include "lec_arpc.h" 48#include "lec_arpc.h"
49#include "resources.h" 49#include "resources.h"
50 50
51#if 0
52#define DPRINTK printk
53#else
54#define DPRINTK(format,args...)
55#endif
56
57#define DUMP_PACKETS 0 /* 51#define DUMP_PACKETS 0 /*
58 * 0 = None, 52 * 0 = None,
59 * 1 = 30 first bytes 53 * 1 = 30 first bytes
@@ -273,7 +267,7 @@ static int lec_start_xmit(struct sk_buff *skb, struct net_device *dev)
273 int i = 0; 267 int i = 0;
274#endif /* DUMP_PACKETS >0 */ 268#endif /* DUMP_PACKETS >0 */
275 269
276 DPRINTK("lec_start_xmit called\n"); 270 pr_debug("lec_start_xmit called\n");
277 if (!priv->lecd) { 271 if (!priv->lecd) {
278 printk("%s:No lecd attached\n", dev->name); 272 printk("%s:No lecd attached\n", dev->name);
279 priv->stats.tx_errors++; 273 priv->stats.tx_errors++;
@@ -281,7 +275,7 @@ static int lec_start_xmit(struct sk_buff *skb, struct net_device *dev)
281 return -EUNATCH; 275 return -EUNATCH;
282 } 276 }
283 277
284 DPRINTK("skbuff head:%lx data:%lx tail:%lx end:%lx\n", 278 pr_debug("skbuff head:%lx data:%lx tail:%lx end:%lx\n",
285 (long)skb->head, (long)skb->data, (long)skb_tail_pointer(skb), 279 (long)skb->head, (long)skb->data, (long)skb_tail_pointer(skb),
286 (long)skb_end_pointer(skb)); 280 (long)skb_end_pointer(skb));
287#if defined(CONFIG_BRIDGE) || defined(CONFIG_BRIDGE_MODULE) 281#if defined(CONFIG_BRIDGE) || defined(CONFIG_BRIDGE_MODULE)
@@ -292,7 +286,7 @@ static int lec_start_xmit(struct sk_buff *skb, struct net_device *dev)
292 /* Make sure we have room for lec_id */ 286 /* Make sure we have room for lec_id */
293 if (skb_headroom(skb) < 2) { 287 if (skb_headroom(skb) < 2) {
294 288
295 DPRINTK("lec_start_xmit: reallocating skb\n"); 289 pr_debug("lec_start_xmit: reallocating skb\n");
296 skb2 = skb_realloc_headroom(skb, LEC_HEADER_LEN); 290 skb2 = skb_realloc_headroom(skb, LEC_HEADER_LEN);
297 kfree_skb(skb); 291 kfree_skb(skb);
298 if (skb2 == NULL) 292 if (skb2 == NULL)
@@ -373,22 +367,22 @@ static int lec_start_xmit(struct sk_buff *skb, struct net_device *dev)
373#endif 367#endif
374 entry = NULL; 368 entry = NULL;
375 vcc = lec_arp_resolve(priv, dst, is_rdesc, &entry); 369 vcc = lec_arp_resolve(priv, dst, is_rdesc, &entry);
376 DPRINTK("%s:vcc:%p vcc_flags:%x, entry:%p\n", dev->name, 370 pr_debug("%s:vcc:%p vcc_flags:%x, entry:%p\n", dev->name,
377 vcc, vcc ? vcc->flags : 0, entry); 371 vcc, vcc ? vcc->flags : 0, entry);
378 if (!vcc || !test_bit(ATM_VF_READY, &vcc->flags)) { 372 if (!vcc || !test_bit(ATM_VF_READY, &vcc->flags)) {
379 if (entry && (entry->tx_wait.qlen < LEC_UNRES_QUE_LEN)) { 373 if (entry && (entry->tx_wait.qlen < LEC_UNRES_QUE_LEN)) {
380 DPRINTK("%s:lec_start_xmit: queuing packet, ", 374 pr_debug("%s:lec_start_xmit: queuing packet, ",
381 dev->name); 375 dev->name);
382 DPRINTK("MAC address 0x%02x:%02x:%02x:%02x:%02x:%02x\n", 376 pr_debug("MAC address 0x%02x:%02x:%02x:%02x:%02x:%02x\n",
383 lec_h->h_dest[0], lec_h->h_dest[1], 377 lec_h->h_dest[0], lec_h->h_dest[1],
384 lec_h->h_dest[2], lec_h->h_dest[3], 378 lec_h->h_dest[2], lec_h->h_dest[3],
385 lec_h->h_dest[4], lec_h->h_dest[5]); 379 lec_h->h_dest[4], lec_h->h_dest[5]);
386 skb_queue_tail(&entry->tx_wait, skb); 380 skb_queue_tail(&entry->tx_wait, skb);
387 } else { 381 } else {
388 DPRINTK 382 pr_debug
389 ("%s:lec_start_xmit: tx queue full or no arp entry, dropping, ", 383 ("%s:lec_start_xmit: tx queue full or no arp entry, dropping, ",
390 dev->name); 384 dev->name);
391 DPRINTK("MAC address 0x%02x:%02x:%02x:%02x:%02x:%02x\n", 385 pr_debug("MAC address 0x%02x:%02x:%02x:%02x:%02x:%02x\n",
392 lec_h->h_dest[0], lec_h->h_dest[1], 386 lec_h->h_dest[0], lec_h->h_dest[1],
393 lec_h->h_dest[2], lec_h->h_dest[3], 387 lec_h->h_dest[2], lec_h->h_dest[3],
394 lec_h->h_dest[4], lec_h->h_dest[5]); 388 lec_h->h_dest[4], lec_h->h_dest[5]);
@@ -402,8 +396,8 @@ static int lec_start_xmit(struct sk_buff *skb, struct net_device *dev)
402#endif /* DUMP_PACKETS > 0 */ 396#endif /* DUMP_PACKETS > 0 */
403 397
404 while (entry && (skb2 = skb_dequeue(&entry->tx_wait))) { 398 while (entry && (skb2 = skb_dequeue(&entry->tx_wait))) {
405 DPRINTK("lec.c: emptying tx queue, "); 399 pr_debug("lec.c: emptying tx queue, ");
406 DPRINTK("MAC address 0x%02x:%02x:%02x:%02x:%02x:%02x\n", 400 pr_debug("MAC address 0x%02x:%02x:%02x:%02x:%02x:%02x\n",
407 lec_h->h_dest[0], lec_h->h_dest[1], lec_h->h_dest[2], 401 lec_h->h_dest[0], lec_h->h_dest[1], lec_h->h_dest[2],
408 lec_h->h_dest[3], lec_h->h_dest[4], lec_h->h_dest[5]); 402 lec_h->h_dest[3], lec_h->h_dest[4], lec_h->h_dest[5]);
409 lec_send(vcc, skb2, priv); 403 lec_send(vcc, skb2, priv);
@@ -464,7 +458,7 @@ static int lec_atm_send(struct atm_vcc *vcc, struct sk_buff *skb)
464 mesg = (struct atmlec_msg *)skb->data; 458 mesg = (struct atmlec_msg *)skb->data;
465 tmp = skb->data; 459 tmp = skb->data;
466 tmp += sizeof(struct atmlec_msg); 460 tmp += sizeof(struct atmlec_msg);
467 DPRINTK("%s: msg from zeppelin:%d\n", dev->name, mesg->type); 461 pr_debug("%s: msg from zeppelin:%d\n", dev->name, mesg->type);
468 switch (mesg->type) { 462 switch (mesg->type) {
469 case l_set_mac_addr: 463 case l_set_mac_addr:
470 for (i = 0; i < 6; i++) { 464 for (i = 0; i < 6; i++) {
@@ -500,9 +494,9 @@ static int lec_atm_send(struct atm_vcc *vcc, struct sk_buff *skb)
500 mesg->content.normal.atm_addr, 494 mesg->content.normal.atm_addr,
501 mesg->content.normal.flag, 495 mesg->content.normal.flag,
502 mesg->content.normal.targetless_le_arp); 496 mesg->content.normal.targetless_le_arp);
503 DPRINTK("lec: in l_arp_update\n"); 497 pr_debug("lec: in l_arp_update\n");
504 if (mesg->sizeoftlvs != 0) { /* LANE2 3.1.5 */ 498 if (mesg->sizeoftlvs != 0) { /* LANE2 3.1.5 */
505 DPRINTK("lec: LANE2 3.1.5, got tlvs, size %d\n", 499 pr_debug("lec: LANE2 3.1.5, got tlvs, size %d\n",
506 mesg->sizeoftlvs); 500 mesg->sizeoftlvs);
507 lane2_associate_ind(dev, mesg->content.normal.mac_addr, 501 lane2_associate_ind(dev, mesg->content.normal.mac_addr,
508 tmp, mesg->sizeoftlvs); 502 tmp, mesg->sizeoftlvs);
@@ -544,7 +538,7 @@ static int lec_atm_send(struct atm_vcc *vcc, struct sk_buff *skb)
544 { 538 {
545 struct net_bridge_fdb_entry *f; 539 struct net_bridge_fdb_entry *f;
546 540
547 DPRINTK 541 pr_debug
548 ("%s: bridge zeppelin asks about 0x%02x:%02x:%02x:%02x:%02x:%02x\n", 542 ("%s: bridge zeppelin asks about 0x%02x:%02x:%02x:%02x:%02x:%02x\n",
549 dev->name, mesg->content.proxy.mac_addr[0], 543 dev->name, mesg->content.proxy.mac_addr[0],
550 mesg->content.proxy.mac_addr[1], 544 mesg->content.proxy.mac_addr[1],
@@ -564,7 +558,7 @@ static int lec_atm_send(struct atm_vcc *vcc, struct sk_buff *skb)
564 struct sk_buff *skb2; 558 struct sk_buff *skb2;
565 struct sock *sk; 559 struct sock *sk;
566 560
567 DPRINTK 561 pr_debug
568 ("%s: entry found, responding to zeppelin\n", 562 ("%s: entry found, responding to zeppelin\n",
569 dev->name); 563 dev->name);
570 skb2 = 564 skb2 =
@@ -670,7 +664,7 @@ send_to_lecd(struct lec_priv *priv, atmlec_msg_type type,
670 sk->sk_data_ready(sk, skb->len); 664 sk->sk_data_ready(sk, skb->len);
671 665
672 if (data != NULL) { 666 if (data != NULL) {
673 DPRINTK("lec: about to send %d bytes of data\n", data->len); 667 pr_debug("lec: about to send %d bytes of data\n", data->len);
674 atm_force_charge(priv->lecd, data->truesize); 668 atm_force_charge(priv->lecd, data->truesize);
675 skb_queue_tail(&sk->sk_receive_queue, data); 669 skb_queue_tail(&sk->sk_receive_queue, data);
676 sk->sk_data_ready(sk, skb->len); 670 sk->sk_data_ready(sk, skb->len);
@@ -742,7 +736,7 @@ static void lec_push(struct atm_vcc *vcc, struct sk_buff *skb)
742 vcc->vpi, vcc->vci); 736 vcc->vpi, vcc->vci);
743#endif 737#endif
744 if (!skb) { 738 if (!skb) {
745 DPRINTK("%s: null skb\n", dev->name); 739 pr_debug("%s: null skb\n", dev->name);
746 lec_vcc_close(priv, vcc); 740 lec_vcc_close(priv, vcc);
747 return; 741 return;
748 } 742 }
@@ -766,7 +760,7 @@ static void lec_push(struct atm_vcc *vcc, struct sk_buff *skb)
766 if (memcmp(skb->data, lec_ctrl_magic, 4) == 0) { /* Control frame, to daemon */ 760 if (memcmp(skb->data, lec_ctrl_magic, 4) == 0) { /* Control frame, to daemon */
767 struct sock *sk = sk_atm(vcc); 761 struct sock *sk = sk_atm(vcc);
768 762
769 DPRINTK("%s: To daemon\n", dev->name); 763 pr_debug("%s: To daemon\n", dev->name);
770 skb_queue_tail(&sk->sk_receive_queue, skb); 764 skb_queue_tail(&sk->sk_receive_queue, skb);
771 sk->sk_data_ready(sk, skb->len); 765 sk->sk_data_ready(sk, skb->len);
772 } else { /* Data frame, queue to protocol handlers */ 766 } else { /* Data frame, queue to protocol handlers */
@@ -780,7 +774,7 @@ static void lec_push(struct atm_vcc *vcc, struct sk_buff *skb)
780 * Probably looping back, or if lecd is missing, 774 * Probably looping back, or if lecd is missing,
781 * lecd has gone down 775 * lecd has gone down
782 */ 776 */
783 DPRINTK("Ignoring frame...\n"); 777 pr_debug("Ignoring frame...\n");
784 dev_kfree_skb(skb); 778 dev_kfree_skb(skb);
785 return; 779 return;
786 } 780 }
@@ -1442,9 +1436,9 @@ static void lane2_associate_ind(struct net_device *dev, u8 *mac_addr,
1442#include <net/route.h> 1436#include <net/route.h>
1443 1437
1444#if 0 1438#if 0
1445#define DPRINTK(format,args...) 1439#define pr_debug(format,args...)
1446/* 1440/*
1447#define DPRINTK printk 1441#define pr_debug printk
1448*/ 1442*/
1449#endif 1443#endif
1450#define DEBUG_ARP_TABLE 0 1444#define DEBUG_ARP_TABLE 0
@@ -1513,7 +1507,7 @@ lec_arp_add(struct lec_priv *priv, struct lec_arp_table *entry)
1513 tmp = &priv->lec_arp_tables[HASH(entry->mac_addr[ETH_ALEN - 1])]; 1507 tmp = &priv->lec_arp_tables[HASH(entry->mac_addr[ETH_ALEN - 1])];
1514 hlist_add_head(&entry->next, tmp); 1508 hlist_add_head(&entry->next, tmp);
1515 1509
1516 DPRINTK("LEC_ARP: Added entry:%2.2x %2.2x %2.2x %2.2x %2.2x %2.2x\n", 1510 pr_debug("LEC_ARP: Added entry:%2.2x %2.2x %2.2x %2.2x %2.2x %2.2x\n",
1517 0xff & entry->mac_addr[0], 0xff & entry->mac_addr[1], 1511 0xff & entry->mac_addr[0], 0xff & entry->mac_addr[1],
1518 0xff & entry->mac_addr[2], 0xff & entry->mac_addr[3], 1512 0xff & entry->mac_addr[2], 0xff & entry->mac_addr[3],
1519 0xff & entry->mac_addr[4], 0xff & entry->mac_addr[5]); 1513 0xff & entry->mac_addr[4], 0xff & entry->mac_addr[5]);
@@ -1555,7 +1549,7 @@ lec_arp_remove(struct lec_priv *priv, struct lec_arp_table *to_remove)
1555 } 1549 }
1556 skb_queue_purge(&to_remove->tx_wait); /* FIXME: good place for this? */ 1550 skb_queue_purge(&to_remove->tx_wait); /* FIXME: good place for this? */
1557 1551
1558 DPRINTK("LEC_ARP: Removed entry:%2.2x %2.2x %2.2x %2.2x %2.2x %2.2x\n", 1552 pr_debug("LEC_ARP: Removed entry:%2.2x %2.2x %2.2x %2.2x %2.2x %2.2x\n",
1559 0xff & to_remove->mac_addr[0], 0xff & to_remove->mac_addr[1], 1553 0xff & to_remove->mac_addr[0], 0xff & to_remove->mac_addr[1],
1560 0xff & to_remove->mac_addr[2], 0xff & to_remove->mac_addr[3], 1554 0xff & to_remove->mac_addr[2], 0xff & to_remove->mac_addr[3],
1561 0xff & to_remove->mac_addr[4], 0xff & to_remove->mac_addr[5]); 1555 0xff & to_remove->mac_addr[4], 0xff & to_remove->mac_addr[5]);
@@ -1777,7 +1771,7 @@ static struct lec_arp_table *lec_arp_find(struct lec_priv *priv,
1777 struct hlist_head *head; 1771 struct hlist_head *head;
1778 struct lec_arp_table *entry; 1772 struct lec_arp_table *entry;
1779 1773
1780 DPRINTK("LEC_ARP: lec_arp_find :%2.2x %2.2x %2.2x %2.2x %2.2x %2.2x\n", 1774 pr_debug("LEC_ARP: lec_arp_find :%2.2x %2.2x %2.2x %2.2x %2.2x %2.2x\n",
1781 mac_addr[0] & 0xff, mac_addr[1] & 0xff, mac_addr[2] & 0xff, 1775 mac_addr[0] & 0xff, mac_addr[1] & 0xff, mac_addr[2] & 0xff,
1782 mac_addr[3] & 0xff, mac_addr[4] & 0xff, mac_addr[5] & 0xff); 1776 mac_addr[3] & 0xff, mac_addr[4] & 0xff, mac_addr[5] & 0xff);
1783 1777
@@ -1819,7 +1813,7 @@ static void lec_arp_expire_arp(unsigned long data)
1819 1813
1820 entry = (struct lec_arp_table *)data; 1814 entry = (struct lec_arp_table *)data;
1821 1815
1822 DPRINTK("lec_arp_expire_arp\n"); 1816 pr_debug("lec_arp_expire_arp\n");
1823 if (entry->status == ESI_ARP_PENDING) { 1817 if (entry->status == ESI_ARP_PENDING) {
1824 if (entry->no_tries <= entry->priv->max_retry_count) { 1818 if (entry->no_tries <= entry->priv->max_retry_count) {
1825 if (entry->is_rdesc) 1819 if (entry->is_rdesc)
@@ -1843,7 +1837,7 @@ static void lec_arp_expire_vcc(unsigned long data)
1843 1837
1844 del_timer(&to_remove->timer); 1838 del_timer(&to_remove->timer);
1845 1839
1846 DPRINTK("LEC_ARP %p %p: lec_arp_expire_vcc vpi:%d vci:%d\n", 1840 pr_debug("LEC_ARP %p %p: lec_arp_expire_vcc vpi:%d vci:%d\n",
1847 to_remove, priv, 1841 to_remove, priv,
1848 to_remove->vcc ? to_remove->recv_vcc->vpi : 0, 1842 to_remove->vcc ? to_remove->recv_vcc->vpi : 0,
1849 to_remove->vcc ? to_remove->recv_vcc->vci : 0); 1843 to_remove->vcc ? to_remove->recv_vcc->vci : 0);
@@ -1883,7 +1877,7 @@ static void lec_arp_check_expire(struct work_struct *work)
1883 unsigned long time_to_check; 1877 unsigned long time_to_check;
1884 int i; 1878 int i;
1885 1879
1886 DPRINTK("lec_arp_check_expire %p\n", priv); 1880 pr_debug("lec_arp_check_expire %p\n", priv);
1887 now = jiffies; 1881 now = jiffies;
1888restart: 1882restart:
1889 spin_lock_irqsave(&priv->lec_arp_lock, flags); 1883 spin_lock_irqsave(&priv->lec_arp_lock, flags);
@@ -1895,13 +1889,13 @@ restart:
1895 else 1889 else
1896 time_to_check = priv->aging_time; 1890 time_to_check = priv->aging_time;
1897 1891
1898 DPRINTK("About to expire: %lx - %lx > %lx\n", 1892 pr_debug("About to expire: %lx - %lx > %lx\n",
1899 now, entry->last_used, time_to_check); 1893 now, entry->last_used, time_to_check);
1900 if (time_after(now, entry->last_used + time_to_check) 1894 if (time_after(now, entry->last_used + time_to_check)
1901 && !(entry->flags & LEC_PERMANENT_FLAG) 1895 && !(entry->flags & LEC_PERMANENT_FLAG)
1902 && !(entry->mac_addr[0] & 0x01)) { /* LANE2: 7.1.20 */ 1896 && !(entry->mac_addr[0] & 0x01)) { /* LANE2: 7.1.20 */
1903 /* Remove entry */ 1897 /* Remove entry */
1904 DPRINTK("LEC:Entry timed out\n"); 1898 pr_debug("LEC:Entry timed out\n");
1905 lec_arp_remove(priv, entry); 1899 lec_arp_remove(priv, entry);
1906 lec_arp_put(entry); 1900 lec_arp_put(entry);
1907 } else { 1901 } else {
@@ -1999,7 +1993,7 @@ static struct atm_vcc *lec_arp_resolve(struct lec_priv *priv,
1999 entry->packets_flooded < 1993 entry->packets_flooded <
2000 priv->maximum_unknown_frame_count) { 1994 priv->maximum_unknown_frame_count) {
2001 entry->packets_flooded++; 1995 entry->packets_flooded++;
2002 DPRINTK("LEC_ARP: Flooding..\n"); 1996 pr_debug("LEC_ARP: Flooding..\n");
2003 found = priv->mcast_vcc; 1997 found = priv->mcast_vcc;
2004 goto out; 1998 goto out;
2005 } 1999 }
@@ -2010,13 +2004,13 @@ static struct atm_vcc *lec_arp_resolve(struct lec_priv *priv,
2010 */ 2004 */
2011 lec_arp_hold(entry); 2005 lec_arp_hold(entry);
2012 *ret_entry = entry; 2006 *ret_entry = entry;
2013 DPRINTK("lec: entry->status %d entry->vcc %p\n", entry->status, 2007 pr_debug("lec: entry->status %d entry->vcc %p\n", entry->status,
2014 entry->vcc); 2008 entry->vcc);
2015 found = NULL; 2009 found = NULL;
2016 } else { 2010 } else {
2017 /* No matching entry was found */ 2011 /* No matching entry was found */
2018 entry = make_entry(priv, mac_to_find); 2012 entry = make_entry(priv, mac_to_find);
2019 DPRINTK("LEC_ARP: Making entry\n"); 2013 pr_debug("LEC_ARP: Making entry\n");
2020 if (!entry) { 2014 if (!entry) {
2021 found = priv->mcast_vcc; 2015 found = priv->mcast_vcc;
2022 goto out; 2016 goto out;
@@ -2053,7 +2047,7 @@ lec_addr_delete(struct lec_priv *priv, unsigned char *atm_addr,
2053 struct lec_arp_table *entry; 2047 struct lec_arp_table *entry;
2054 int i; 2048 int i;
2055 2049
2056 DPRINTK("lec_addr_delete\n"); 2050 pr_debug("lec_addr_delete\n");
2057 spin_lock_irqsave(&priv->lec_arp_lock, flags); 2051 spin_lock_irqsave(&priv->lec_arp_lock, flags);
2058 for (i = 0; i < LEC_ARP_TABLE_SIZE; i++) { 2052 for (i = 0; i < LEC_ARP_TABLE_SIZE; i++) {
2059 hlist_for_each_entry_safe(entry, node, next, &priv->lec_arp_tables[i], next) { 2053 hlist_for_each_entry_safe(entry, node, next, &priv->lec_arp_tables[i], next) {
@@ -2084,8 +2078,8 @@ lec_arp_update(struct lec_priv *priv, unsigned char *mac_addr,
2084 struct lec_arp_table *entry, *tmp; 2078 struct lec_arp_table *entry, *tmp;
2085 int i; 2079 int i;
2086 2080
2087 DPRINTK("lec:%s", (targetless_le_arp) ? "targetless " : " "); 2081 pr_debug("lec:%s", (targetless_le_arp) ? "targetless " : " ");
2088 DPRINTK("lec_arp_update mac:%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x\n", 2082 pr_debug("lec_arp_update mac:%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x\n",
2089 mac_addr[0], mac_addr[1], mac_addr[2], mac_addr[3], 2083 mac_addr[0], mac_addr[1], mac_addr[2], mac_addr[3],
2090 mac_addr[4], mac_addr[5]); 2084 mac_addr[4], mac_addr[5]);
2091 2085
@@ -2122,7 +2116,7 @@ lec_arp_update(struct lec_priv *priv, unsigned char *mac_addr,
2122 entry->flags |= LEC_REMOTE_FLAG; 2116 entry->flags |= LEC_REMOTE_FLAG;
2123 else 2117 else
2124 entry->flags &= ~LEC_REMOTE_FLAG; 2118 entry->flags &= ~LEC_REMOTE_FLAG;
2125 DPRINTK("After update\n"); 2119 pr_debug("After update\n");
2126 dump_arp_table(priv); 2120 dump_arp_table(priv);
2127 goto out; 2121 goto out;
2128 } 2122 }
@@ -2166,7 +2160,7 @@ lec_arp_update(struct lec_priv *priv, unsigned char *mac_addr,
2166 entry->status = ESI_VC_PENDING; 2160 entry->status = ESI_VC_PENDING;
2167 send_to_lecd(priv, l_svc_setup, entry->mac_addr, atm_addr, NULL); 2161 send_to_lecd(priv, l_svc_setup, entry->mac_addr, atm_addr, NULL);
2168 } 2162 }
2169 DPRINTK("After update2\n"); 2163 pr_debug("After update2\n");
2170 dump_arp_table(priv); 2164 dump_arp_table(priv);
2171out: 2165out:
2172 spin_unlock_irqrestore(&priv->lec_arp_lock, flags); 2166 spin_unlock_irqrestore(&priv->lec_arp_lock, flags);
@@ -2189,7 +2183,7 @@ lec_vcc_added(struct lec_priv *priv, struct atmlec_ioc *ioc_data,
2189 if (ioc_data->receive == 2) { 2183 if (ioc_data->receive == 2) {
2190 /* Vcc for Multicast Forward. No timer, LANEv2 7.1.20 and 2.3.5.3 */ 2184 /* Vcc for Multicast Forward. No timer, LANEv2 7.1.20 and 2.3.5.3 */
2191 2185
2192 DPRINTK("LEC_ARP: Attaching mcast forward\n"); 2186 pr_debug("LEC_ARP: Attaching mcast forward\n");
2193#if 0 2187#if 0
2194 entry = lec_arp_find(priv, bus_mac); 2188 entry = lec_arp_find(priv, bus_mac);
2195 if (!entry) { 2189 if (!entry) {
@@ -2214,7 +2208,7 @@ lec_vcc_added(struct lec_priv *priv, struct atmlec_ioc *ioc_data,
2214 * Vcc which we don't want to make default vcc, 2208 * Vcc which we don't want to make default vcc,
2215 * attach it anyway. 2209 * attach it anyway.
2216 */ 2210 */
2217 DPRINTK 2211 pr_debug
2218 ("LEC_ARP:Attaching data direct, not default: " 2212 ("LEC_ARP:Attaching data direct, not default: "
2219 "%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x\n", 2213 "%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x\n",
2220 ioc_data->atm_addr[0], ioc_data->atm_addr[1], 2214 ioc_data->atm_addr[0], ioc_data->atm_addr[1],
@@ -2242,7 +2236,7 @@ lec_vcc_added(struct lec_priv *priv, struct atmlec_ioc *ioc_data,
2242 dump_arp_table(priv); 2236 dump_arp_table(priv);
2243 goto out; 2237 goto out;
2244 } 2238 }
2245 DPRINTK 2239 pr_debug
2246 ("LEC_ARP:Attaching data direct, default: " 2240 ("LEC_ARP:Attaching data direct, default: "
2247 "%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x\n", 2241 "%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x\n",
2248 ioc_data->atm_addr[0], ioc_data->atm_addr[1], 2242 ioc_data->atm_addr[0], ioc_data->atm_addr[1],
@@ -2260,8 +2254,8 @@ lec_vcc_added(struct lec_priv *priv, struct atmlec_ioc *ioc_data,
2260 if (memcmp 2254 if (memcmp
2261 (ioc_data->atm_addr, entry->atm_addr, 2255 (ioc_data->atm_addr, entry->atm_addr,
2262 ATM_ESA_LEN) == 0) { 2256 ATM_ESA_LEN) == 0) {
2263 DPRINTK("LEC_ARP: Attaching data direct\n"); 2257 pr_debug("LEC_ARP: Attaching data direct\n");
2264 DPRINTK("Currently -> Vcc: %d, Rvcc:%d\n", 2258 pr_debug("Currently -> Vcc: %d, Rvcc:%d\n",
2265 entry->vcc ? entry->vcc->vci : 0, 2259 entry->vcc ? entry->vcc->vci : 0,
2266 entry->recv_vcc ? entry->recv_vcc-> 2260 entry->recv_vcc ? entry->recv_vcc->
2267 vci : 0); 2261 vci : 0);
@@ -2303,7 +2297,7 @@ lec_vcc_added(struct lec_priv *priv, struct atmlec_ioc *ioc_data,
2303 } 2297 }
2304 } 2298 }
2305 if (found_entry) { 2299 if (found_entry) {
2306 DPRINTK("After vcc was added\n"); 2300 pr_debug("After vcc was added\n");
2307 dump_arp_table(priv); 2301 dump_arp_table(priv);
2308 goto out; 2302 goto out;
2309 } 2303 }
@@ -2323,7 +2317,7 @@ lec_vcc_added(struct lec_priv *priv, struct atmlec_ioc *ioc_data,
2323 entry->timer.expires = jiffies + priv->vcc_timeout_period; 2317 entry->timer.expires = jiffies + priv->vcc_timeout_period;
2324 entry->timer.function = lec_arp_expire_vcc; 2318 entry->timer.function = lec_arp_expire_vcc;
2325 add_timer(&entry->timer); 2319 add_timer(&entry->timer);
2326 DPRINTK("After vcc was added\n"); 2320 pr_debug("After vcc was added\n");
2327 dump_arp_table(priv); 2321 dump_arp_table(priv);
2328out: 2322out:
2329 spin_unlock_irqrestore(&priv->lec_arp_lock, flags); 2323 spin_unlock_irqrestore(&priv->lec_arp_lock, flags);
@@ -2336,7 +2330,7 @@ static void lec_flush_complete(struct lec_priv *priv, unsigned long tran_id)
2336 struct lec_arp_table *entry; 2330 struct lec_arp_table *entry;
2337 int i; 2331 int i;
2338 2332
2339 DPRINTK("LEC:lec_flush_complete %lx\n", tran_id); 2333 pr_debug("LEC:lec_flush_complete %lx\n", tran_id);
2340restart: 2334restart:
2341 spin_lock_irqsave(&priv->lec_arp_lock, flags); 2335 spin_lock_irqsave(&priv->lec_arp_lock, flags);
2342 for (i = 0; i < LEC_ARP_TABLE_SIZE; i++) { 2336 for (i = 0; i < LEC_ARP_TABLE_SIZE; i++) {
@@ -2353,7 +2347,7 @@ restart:
2353 entry->last_used = jiffies; 2347 entry->last_used = jiffies;
2354 entry->status = ESI_FORWARD_DIRECT; 2348 entry->status = ESI_FORWARD_DIRECT;
2355 lec_arp_put(entry); 2349 lec_arp_put(entry);
2356 DPRINTK("LEC_ARP: Flushed\n"); 2350 pr_debug("LEC_ARP: Flushed\n");
2357 goto restart; 2351 goto restart;
2358 } 2352 }
2359 } 2353 }
@@ -2376,7 +2370,7 @@ lec_set_flush_tran_id(struct lec_priv *priv,
2376 hlist_for_each_entry(entry, node, &priv->lec_arp_tables[i], next) { 2370 hlist_for_each_entry(entry, node, &priv->lec_arp_tables[i], next) {
2377 if (!memcmp(atm_addr, entry->atm_addr, ATM_ESA_LEN)) { 2371 if (!memcmp(atm_addr, entry->atm_addr, ATM_ESA_LEN)) {
2378 entry->flush_tran_id = tran_id; 2372 entry->flush_tran_id = tran_id;
2379 DPRINTK("Set flush transaction id to %lx for %p\n", 2373 pr_debug("Set flush transaction id to %lx for %p\n",
2380 tran_id, entry); 2374 tran_id, entry);
2381 } 2375 }
2382 } 2376 }
@@ -2427,7 +2421,7 @@ static void lec_vcc_close(struct lec_priv *priv, struct atm_vcc *vcc)
2427 struct lec_arp_table *entry; 2421 struct lec_arp_table *entry;
2428 int i; 2422 int i;
2429 2423
2430 DPRINTK("LEC_ARP: lec_vcc_close vpi:%d vci:%d\n", vcc->vpi, vcc->vci); 2424 pr_debug("LEC_ARP: lec_vcc_close vpi:%d vci:%d\n", vcc->vpi, vcc->vci);
2431 dump_arp_table(priv); 2425 dump_arp_table(priv);
2432 2426
2433 spin_lock_irqsave(&priv->lec_arp_lock, flags); 2427 spin_lock_irqsave(&priv->lec_arp_lock, flags);
@@ -2510,7 +2504,7 @@ lec_arp_check_empties(struct lec_priv *priv,
2510 goto out; 2504 goto out;
2511 } 2505 }
2512 } 2506 }
2513 DPRINTK("LEC_ARP: Arp_check_empties: entry not found!\n"); 2507 pr_debug("LEC_ARP: Arp_check_empties: entry not found!\n");
2514out: 2508out:
2515 spin_unlock_irqrestore(&priv->lec_arp_lock, flags); 2509 spin_unlock_irqrestore(&priv->lec_arp_lock, flags);
2516} 2510}