aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ifb.c
diff options
context:
space:
mode:
authorChangli Gao <xiaosuo@gmail.com>2010-12-03 14:55:19 -0500
committerDavid S. Miller <davem@davemloft.net>2010-12-10 17:34:33 -0500
commite1f91505025db74c261962dc16d58f79b9b0c83c (patch)
tree500613eeab45b6623b80c66b966a6ccb520e7d1b /drivers/net/ifb.c
parenta6a5ff26975c87a97f88c6ea077c325ff20c4cf2 (diff)
ifb: remove the useless debug stats
These debug stats are not exported, and become useless. Signed-off-by: Changli Gao <xiaosuo@gmail.com> Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ifb.c')
-rw-r--r--drivers/net/ifb.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c
index fe337bd121aa..e4cd6632c7db 100644
--- a/drivers/net/ifb.c
+++ b/drivers/net/ifb.c
@@ -42,16 +42,6 @@
42struct ifb_private { 42struct ifb_private {
43 struct tasklet_struct ifb_tasklet; 43 struct tasklet_struct ifb_tasklet;
44 int tasklet_pending; 44 int tasklet_pending;
45 /* mostly debug stats leave in for now */
46 unsigned long st_task_enter; /* tasklet entered */
47 unsigned long st_txq_refl_try; /* transmit queue refill attempt */
48 unsigned long st_rxq_enter; /* receive queue entered */
49 unsigned long st_rx2tx_tran; /* receive to trasmit transfers */
50 unsigned long st_rxq_notenter; /*receiveQ not entered, resched */
51 unsigned long st_rx_frm_egr; /* received from egress path */
52 unsigned long st_rx_frm_ing; /* received from ingress path */
53 unsigned long st_rxq_check;
54 unsigned long st_rxq_rsch;
55 struct sk_buff_head rq; 45 struct sk_buff_head rq;
56 struct sk_buff_head tq; 46 struct sk_buff_head tq;
57}; 47};
@@ -73,19 +63,14 @@ static void ri_tasklet(unsigned long dev)
73 struct sk_buff *skb; 63 struct sk_buff *skb;
74 64
75 txq = netdev_get_tx_queue(_dev, 0); 65 txq = netdev_get_tx_queue(_dev, 0);
76 dp->st_task_enter++;
77 if ((skb = skb_peek(&dp->tq)) == NULL) { 66 if ((skb = skb_peek(&dp->tq)) == NULL) {
78 dp->st_txq_refl_try++;
79 if (__netif_tx_trylock(txq)) { 67 if (__netif_tx_trylock(txq)) {
80 dp->st_rxq_enter++;
81 while ((skb = skb_dequeue(&dp->rq)) != NULL) { 68 while ((skb = skb_dequeue(&dp->rq)) != NULL) {
82 skb_queue_tail(&dp->tq, skb); 69 skb_queue_tail(&dp->tq, skb);
83 dp->st_rx2tx_tran++;
84 } 70 }
85 __netif_tx_unlock(txq); 71 __netif_tx_unlock(txq);
86 } else { 72 } else {
87 /* reschedule */ 73 /* reschedule */
88 dp->st_rxq_notenter++;
89 goto resched; 74 goto resched;
90 } 75 }
91 } 76 }
@@ -112,10 +97,8 @@ static void ri_tasklet(unsigned long dev)
112 skb->skb_iif = _dev->ifindex; 97 skb->skb_iif = _dev->ifindex;
113 98
114 if (from & AT_EGRESS) { 99 if (from & AT_EGRESS) {
115 dp->st_rx_frm_egr++;
116 dev_queue_xmit(skb); 100 dev_queue_xmit(skb);
117 } else if (from & AT_INGRESS) { 101 } else if (from & AT_INGRESS) {
118 dp->st_rx_frm_ing++;
119 skb_pull(skb, skb->dev->hard_header_len); 102 skb_pull(skb, skb->dev->hard_header_len);
120 netif_rx(skb); 103 netif_rx(skb);
121 } else 104 } else
@@ -123,13 +106,11 @@ static void ri_tasklet(unsigned long dev)
123 } 106 }
124 107
125 if (__netif_tx_trylock(txq)) { 108 if (__netif_tx_trylock(txq)) {
126 dp->st_rxq_check++;
127 if ((skb = skb_peek(&dp->rq)) == NULL) { 109 if ((skb = skb_peek(&dp->rq)) == NULL) {
128 dp->tasklet_pending = 0; 110 dp->tasklet_pending = 0;
129 if (netif_queue_stopped(_dev)) 111 if (netif_queue_stopped(_dev))
130 netif_wake_queue(_dev); 112 netif_wake_queue(_dev);
131 } else { 113 } else {
132 dp->st_rxq_rsch++;
133 __netif_tx_unlock(txq); 114 __netif_tx_unlock(txq);
134 goto resched; 115 goto resched;
135 } 116 }