]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Expose rx_oversize_pkts_buffer counter
authorGal Pressman <gal@nvidia.com>
Sun, 2 Oct 2022 04:56:27 +0000 (21:56 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 3 Oct 2022 23:55:29 +0000 (16:55 -0700)
commitf6d4c7f4a7a75d65ffb94e12e0e0a6d8c05494bb
treea84af06f9239f56a408237cce65bdd78bf8f0981
parentdb107f765bf4b3fce395c716fd6bb9bc2cc6da83
net/mlx5e: Expose rx_oversize_pkts_buffer counter

Add the rx_oversize_pkts_buffer counter to ethtool statistics.
This counter exposes the number of dropped received packets due to
length which arrived to RQ and exceed software buffer size allocated by
the device for incoming traffic. It might imply that the device MTU is
larger than the software buffers size.

Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h
include/linux/mlx5/mlx5_ifc.h