mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
be2net: Fix rx_drops_no_fragments stat being incorrectly indexed
Signed-off-by: Sathya Perla <sathyap@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e7b909a68c
commit
01ed30da5d
1 changed files with 2 additions and 1 deletions
|
@ -170,7 +170,8 @@ void netdev_stats_update(struct be_adapter *adapter)
|
|||
port_stats->rx_udp_checksum_errs;
|
||||
|
||||
/* no space in linux buffers: best possible approximation */
|
||||
dev_stats->rx_dropped = erx_stats->rx_drops_no_fragments[0];
|
||||
dev_stats->rx_dropped =
|
||||
erx_stats->rx_drops_no_fragments[adapter->rx_obj.q.id];
|
||||
|
||||
/* detailed rx errors */
|
||||
dev_stats->rx_length_errors = port_stats->rx_in_range_errors +
|
||||
|
|
Loading…
Reference in a new issue