Commit 216c32d4 authored by Alexander Beregalov's avatar Alexander Beregalov Committed by David S. Miller

irda: fix incomplete conversation to internal stats

Fix for commit af049081 (irda: convert to internal stats)
Signed-off-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c5976504
...@@ -594,7 +594,7 @@ static int au1k_irda_rx(struct net_device *dev) ...@@ -594,7 +594,7 @@ static int au1k_irda_rx(struct net_device *dev)
update_rx_stats(dev, flags, count); update_rx_stats(dev, flags, count);
skb=alloc_skb(count+1,GFP_ATOMIC); skb=alloc_skb(count+1,GFP_ATOMIC);
if (skb == NULL) { if (skb == NULL) {
aup->stats.rx_dropped++; aup->netdev->stats.rx_dropped++;
continue; continue;
} }
skb_reserve(skb, 1); skb_reserve(skb, 1);
......
...@@ -1194,13 +1194,13 @@ toshoboe_interrupt (int irq, void *dev_id) ...@@ -1194,13 +1194,13 @@ toshoboe_interrupt (int irq, void *dev_id)
txp = txpc; txp = txpc;
txpc++; txpc++;
txpc %= TX_SLOTS; txpc %= TX_SLOTS;
self->stats.tx_packets++; self->netdev->stats.tx_packets++;
if (self->ring->tx[txpc].control & OBOE_CTL_TX_HW_OWNS) if (self->ring->tx[txpc].control & OBOE_CTL_TX_HW_OWNS)
self->ring->tx[txp].control &= ~OBOE_CTL_TX_RTCENTX; self->ring->tx[txp].control &= ~OBOE_CTL_TX_RTCENTX;
} }
self->stats.tx_packets--; self->netdev->stats.tx_packets--;
#else #else
self->stats.tx_packets++; self->netdev->stats.tx_packets++;
#endif #endif
toshoboe_start_DMA(self, OBOE_CONFIG0H_ENTX); toshoboe_start_DMA(self, OBOE_CONFIG0H_ENTX);
} }
...@@ -1280,7 +1280,7 @@ dumpbufs(self->rx_bufs[self->rxs],len,'<'); ...@@ -1280,7 +1280,7 @@ dumpbufs(self->rx_bufs[self->rxs],len,'<');
skb_put (skb, len); skb_put (skb, len);
skb_copy_to_linear_data(skb, self->rx_bufs[self->rxs], skb_copy_to_linear_data(skb, self->rx_bufs[self->rxs],
len); len);
self->stats.rx_packets++; self->netdev->stats.rx_packets++;
skb->dev = self->netdev; skb->dev = self->netdev;
skb_reset_mac_header(skb); skb_reset_mac_header(skb);
skb->protocol = htons (ETH_P_IRDA); skb->protocol = htons (ETH_P_IRDA);
......
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