Skip to content

Commit c9cfced

Browse files
laoarkuba-moo
authored andcommitted
net/mlx5e: Report rx_discards_phy via rx_dropped
We noticed a high number of rx_discards_phy events on certain servers while running `ethtool -S`. However, this critical counter is not currently included in the standard /proc/net/dev statistics file, making it difficult to monitor effectively—especially given the diversity of vendors across a large fleet of servers. Let's report it via the standard rx_dropped metric. Suggested-by: Jakub Kicinski <[email protected]> Signed-off-by: Yafang Shao <[email protected]> Cc: Saeed Mahameed <[email protected]> Cc: Leon Romanovsky <[email protected]> Cc: Gal Pressman <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 4b252f2 commit c9cfced

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3946,6 +3946,7 @@ mlx5e_get_stats(struct net_device *dev, struct rtnl_link_stats64 *stats)
39463946
}
39473947

39483948
stats->rx_missed_errors = priv->stats.qcnt.rx_out_of_buffer;
3949+
stats->rx_dropped = PPORT_2863_GET(pstats, if_in_discards);
39493950

39503951
stats->rx_length_errors =
39513952
PPORT_802_3_GET(pstats, a_in_range_length_errors) +

0 commit comments

Comments
 (0)