@@ -2297,7 +2297,7 @@ static unsigned int bcmgenet_desc_rx(struct bcmgenet_rx_ring *ring,
2297
2297
DMA_P_INDEX_DISCARD_CNT_MASK ;
2298
2298
if (discards > ring -> old_discards ) {
2299
2299
discards = discards - ring -> old_discards ;
2300
- BCMGENET_STATS64_ADD (stats , errors , discards );
2300
+ BCMGENET_STATS64_ADD (stats , missed , discards );
2301
2301
ring -> old_discards += discards ;
2302
2302
2303
2303
/* Clear HW register when we reach 75% of maximum 0xFFFF */
@@ -3577,6 +3577,7 @@ static void bcmgenet_get_stats64(struct net_device *dev,
3577
3577
unsigned int start ;
3578
3578
unsigned int q ;
3579
3579
u64 multicast ;
3580
+ u64 rx_missed ;
3580
3581
3581
3582
for (q = 0 ; q <= priv -> hw_params -> tx_queues ; q ++ ) {
3582
3583
tx_stats = & priv -> tx_rings [q ].stats64 ;
@@ -3602,6 +3603,7 @@ static void bcmgenet_get_stats64(struct net_device *dev,
3602
3603
rx_packets = u64_stats_read (& rx_stats -> packets );
3603
3604
rx_errors = u64_stats_read (& rx_stats -> errors );
3604
3605
rx_dropped = u64_stats_read (& rx_stats -> dropped );
3606
+ rx_missed = u64_stats_read (& rx_stats -> missed );
3605
3607
rx_length_errors = u64_stats_read (& rx_stats -> length_errors );
3606
3608
rx_over_errors = u64_stats_read (& rx_stats -> over_errors );
3607
3609
rx_crc_errors = u64_stats_read (& rx_stats -> crc_errors );
@@ -3617,7 +3619,7 @@ static void bcmgenet_get_stats64(struct net_device *dev,
3617
3619
stats -> rx_packets += rx_packets ;
3618
3620
stats -> rx_errors += rx_errors ;
3619
3621
stats -> rx_dropped += rx_dropped ;
3620
- stats -> rx_missed_errors += rx_errors ;
3622
+ stats -> rx_missed_errors += rx_missed ;
3621
3623
stats -> rx_length_errors += rx_length_errors ;
3622
3624
stats -> rx_over_errors += rx_over_errors ;
3623
3625
stats -> rx_crc_errors += rx_crc_errors ;
0 commit comments