linux/include
Jakub Kicinski 1aabe578dd ethtool: fix ethtool msg len calculation for pause stats
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>
2021-11-03 11:20:45 +00:00
..
acpi - qcom: add support for qcm2290 2021-11-01 18:58:13 -07:00
asm-generic - Do not #GP on userspace use of CLI/STI but pretend it was a NOP to 2021-11-02 07:56:47 -07:00
clocksource Time, timers and timekeeping updates: 2021-11-01 13:44:55 -07:00
crypto crypto: ecc - Export additional helper functions 2021-10-29 21:04:03 +08:00
drm
dt-bindings
keys
kunit kunit: fix kernel-doc warnings due to mismatched arg names 2021-10-06 17:54:07 -06:00
kvm KVM: arm64: Fix PMU probe ordering 2021-09-20 12:43:34 +01:00
linux ethtool: fix ethtool msg len calculation for pause stats 2021-11-03 11:20:45 +00:00
math-emu
media media: v4l2-dev.h: move open brace after struct video_device 2021-10-05 09:37:21 +02:00
memory
misc
net net: avoid double accounting for pure zerocopy skbs 2021-11-03 11:19:49 +00:00
pcmcia
ras
rdma
scsi overflow updates for v5.16-rc1 2021-11-01 17:12:56 -07:00
soc Core: 2021-11-02 06:20:58 -07:00
sound ALSA: hda: intel: Allow repeatedly probing on codec configuration errors 2021-10-07 09:15:22 +02:00
target
trace Core: 2021-11-02 06:20:58 -07:00
uapi ethtool: fix ethtool msg len calculation for pause stats 2021-11-03 11:20:45 +00:00
vdso
video
xen xen/privcmd: drop "pages" parameter from xen_remap_pfn() 2021-10-05 08:20:27 +02:00