Commit 9612101cb33862cc160069cc8423926d61db51f8
Committed by
David S. Miller
1 parent
eaea43abf3
Exists in
master
and in
39 other branches
dm9601: Use netdev stats structure
Now that netdev has its own stats structure we should use that instead. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 5 additions and 5 deletions Side-by-side Diff
drivers/net/usb/dm9601.c
... | ... | @@ -513,11 +513,11 @@ |
513 | 513 | len = (skb->data[1] | (skb->data[2] << 8)) - 4; |
514 | 514 | |
515 | 515 | if (unlikely(status & 0xbf)) { |
516 | - if (status & 0x01) dev->stats.rx_fifo_errors++; | |
517 | - if (status & 0x02) dev->stats.rx_crc_errors++; | |
518 | - if (status & 0x04) dev->stats.rx_frame_errors++; | |
519 | - if (status & 0x20) dev->stats.rx_missed_errors++; | |
520 | - if (status & 0x90) dev->stats.rx_length_errors++; | |
516 | + if (status & 0x01) dev->net->stats.rx_fifo_errors++; | |
517 | + if (status & 0x02) dev->net->stats.rx_crc_errors++; | |
518 | + if (status & 0x04) dev->net->stats.rx_frame_errors++; | |
519 | + if (status & 0x20) dev->net->stats.rx_missed_errors++; | |
520 | + if (status & 0x90) dev->net->stats.rx_length_errors++; | |
521 | 521 | return 0; |
522 | 522 | } |
523 | 523 |