summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-04-13 20:46:14 -0700
committerDavid S. Miller <davem@davemloft.net>2021-04-14 13:03:06 -0700
commit16756d3e77ad58cd07e36cbed724aa13ae5a0278 (patch)
treec9ba1c42ab61d04ca305e747e0d86d562272753a /drivers
parent2afeec08ab5c86ae21952151f726bfe184f6b23d (diff)
ethtool: pause: make sure we init driver stats
The intention was for pause statistics to not be reported when driver does not have the relevant callback (only report an empty netlink nest). What happens currently we report all 0s instead. Make sure statistics are initialized to "not set" (which is -1) so the dumping code skips them. Fixes: 9a27a33027f2 ("ethtool: add standard pause stats") Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions