Commit e1f91505 authored by Changli Gao's avatar Changli Gao Committed by David S. Miller

ifb: remove the useless debug stats

These debug stats are not exported, and become useless.
Signed-off-by: default avatarChangli Gao <xiaosuo@gmail.com>
Signed-off-by: default avatarJamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a6a5ff26
...@@ -42,16 +42,6 @@ ...@@ -42,16 +42,6 @@
struct ifb_private { struct ifb_private {
struct tasklet_struct ifb_tasklet; struct tasklet_struct ifb_tasklet;
int tasklet_pending; int tasklet_pending;
/* mostly debug stats leave in for now */
unsigned long st_task_enter; /* tasklet entered */
unsigned long st_txq_refl_try; /* transmit queue refill attempt */
unsigned long st_rxq_enter; /* receive queue entered */
unsigned long st_rx2tx_tran; /* receive to trasmit transfers */
unsigned long st_rxq_notenter; /*receiveQ not entered, resched */
unsigned long st_rx_frm_egr; /* received from egress path */
unsigned long st_rx_frm_ing; /* received from ingress path */
unsigned long st_rxq_check;
unsigned long st_rxq_rsch;
struct sk_buff_head rq; struct sk_buff_head rq;
struct sk_buff_head tq; struct sk_buff_head tq;
}; };
...@@ -73,19 +63,14 @@ static void ri_tasklet(unsigned long dev) ...@@ -73,19 +63,14 @@ static void ri_tasklet(unsigned long dev)
struct sk_buff *skb; struct sk_buff *skb;
txq = netdev_get_tx_queue(_dev, 0); txq = netdev_get_tx_queue(_dev, 0);
dp->st_task_enter++;
if ((skb = skb_peek(&dp->tq)) == NULL) { if ((skb = skb_peek(&dp->tq)) == NULL) {
dp->st_txq_refl_try++;
if (__netif_tx_trylock(txq)) { if (__netif_tx_trylock(txq)) {
dp->st_rxq_enter++;
while ((skb = skb_dequeue(&dp->rq)) != NULL) { while ((skb = skb_dequeue(&dp->rq)) != NULL) {
skb_queue_tail(&dp->tq, skb); skb_queue_tail(&dp->tq, skb);
dp->st_rx2tx_tran++;
} }
__netif_tx_unlock(txq); __netif_tx_unlock(txq);
} else { } else {
/* reschedule */ /* reschedule */
dp->st_rxq_notenter++;
goto resched; goto resched;
} }
} }
...@@ -112,10 +97,8 @@ static void ri_tasklet(unsigned long dev) ...@@ -112,10 +97,8 @@ static void ri_tasklet(unsigned long dev)
skb->skb_iif = _dev->ifindex; skb->skb_iif = _dev->ifindex;
if (from & AT_EGRESS) { if (from & AT_EGRESS) {
dp->st_rx_frm_egr++;
dev_queue_xmit(skb); dev_queue_xmit(skb);
} else if (from & AT_INGRESS) { } else if (from & AT_INGRESS) {
dp->st_rx_frm_ing++;
skb_pull(skb, skb->dev->hard_header_len); skb_pull(skb, skb->dev->hard_header_len);
netif_rx(skb); netif_rx(skb);
} else } else
...@@ -123,13 +106,11 @@ static void ri_tasklet(unsigned long dev) ...@@ -123,13 +106,11 @@ static void ri_tasklet(unsigned long dev)
} }
if (__netif_tx_trylock(txq)) { if (__netif_tx_trylock(txq)) {
dp->st_rxq_check++;
if ((skb = skb_peek(&dp->rq)) == NULL) { if ((skb = skb_peek(&dp->rq)) == NULL) {
dp->tasklet_pending = 0; dp->tasklet_pending = 0;
if (netif_queue_stopped(_dev)) if (netif_queue_stopped(_dev))
netif_wake_queue(_dev); netif_wake_queue(_dev);
} else { } else {
dp->st_rxq_rsch++;
__netif_tx_unlock(txq); __netif_tx_unlock(txq);
goto resched; goto resched;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment