]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5e: Use rx_missed_errors instead of rx_dropped for reporting buffer exhaustion
authorCarolina Jubran <cjubran@nvidia.com>
Wed, 22 May 2024 19:26:58 +0000 (22:26 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 May 2024 12:27:08 +0000 (13:27 +0100)
commit5c74195d5dd977e97556e6fa76909b831c241230
treea497c7221baaf996613dfd0a0f22c2bb4855f138
parentf55cd31287e5f77f226c91d2f7756bafa0d583ed
net/mlx5e: Use rx_missed_errors instead of rx_dropped for reporting buffer exhaustion

Previously, the driver incorrectly used rx_dropped to report device
buffer exhaustion.

According to the documentation, rx_dropped should not be used to count
packets dropped due to buffer exhaustion, which is the purpose of
rx_missed_errors.

Use rx_missed_errors as intended for counting packets dropped due to
buffer exhaustion.

Fixes: 269e6b3af3bf ("net/mlx5e: Report additional error statistics in get stats ndo")
Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c