Skip to content

Commit

Permalink
bnxt_en: Exclude rx_drop_pkts hw counter from the stack's rx_dropped …
Browse files Browse the repository at this point in the history
…counter.

This hardware counter is misleading as it counts dropped packets that
don't match the hardware filters for unicast/broadcast/multicast.  We
will still report this counter in ethtool -S for diagnostics purposes.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michael Chan authored and David S. Miller committed Jan 30, 2016
1 parent 74608fc commit 8a4d4c8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/broadcom/bnxt/bnxt.c
Original file line number Diff line number Diff line change
Expand Up @@ -4819,8 +4819,6 @@ bnxt_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats)

stats->multicast += le64_to_cpu(hw_stats->rx_mcast_pkts);

stats->rx_dropped += le64_to_cpu(hw_stats->rx_drop_pkts);

stats->tx_dropped += le64_to_cpu(hw_stats->tx_drop_pkts);
}

Expand Down

0 comments on commit 8a4d4c8

Please sign in to comment.