Files
twx-linux/include/linux
Jakub Kicinski 628773a759 ethtool: fix ethtool msg len calculation for pause stats
[ Upstream commit 1aabe578dd ]

ETHTOOL_A_PAUSE_STAT_MAX is the MAX attribute id,
so we need to subtract non-stats and add one to
get a count (IOW -2+1 == -1).

Otherwise we'll see:

  ethnl cmd 21: calculated reply length 40, but consumed 52

Fixes: 9a27a33027 ("ethtool: add standard pause stats")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-18 14:04:25 +01:00
..
2021-09-08 08:49:01 +02:00
2021-11-18 14:03:37 +01:00
2021-09-15 09:50:41 +02:00
2021-06-30 08:47:26 -04:00
2021-11-18 14:04:23 +01:00
2021-09-03 10:09:21 +02:00
2021-08-04 12:46:44 +02:00
2021-08-26 08:35:41 -04:00