net: bcmgenet: collect Rx discarded packet count
Bits 31:16 of RDMA_PROD_INDEX contain Rx discarded packet count, which are the Rx packets that had to be dropped by MAC hardware since there was no room on the Rx queue. Add code to collect this information into the netdev stats. Signed-off-by: Petri Gynther <pgynther@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
61f0d861fc
commit
d26ea6cc48
@@ -548,6 +548,7 @@ struct bcmgenet_rx_ring {
|
||||
unsigned int read_ptr; /* Rx ring read pointer */
|
||||
unsigned int cb_ptr; /* Rx ring initial CB ptr */
|
||||
unsigned int end_ptr; /* Rx ring end CB ptr */
|
||||
unsigned int old_discards;
|
||||
};
|
||||
|
||||
/* device context */
|
||||
|
Reference in New Issue
Block a user