]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:49 +0000 (13:39 +0200)
commitd523719e7436f93ad97a50e8f0d4f2dc715699e3
treeef0114563a7873390547fb57794a4384d050bbc2
parent98f1c6e5d73ae3a262a47efe469904fc55d39f4e
net/mlx5e: Use rx_missed_errors instead of rx_dropped for reporting buffer exhaustion

[ Upstream commit 5c74195d5dd977e97556e6fa76909b831c241230 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c