]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: stats: clarify the initialization to ETHTOOL_STAT_NOT_SET
authorJakub Kicinski <kuba@kernel.org>
Mon, 19 Apr 2021 20:03:45 +0000 (13:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Apr 2021 23:23:32 +0000 (16:23 -0700)
commit9f371a725cc57e761ab400af6a166a8e997cfae6
tree4ed8d3412ab9993fd934462287423965f612ca12
parenta6fc6e071a727f270a0792458e8f5c19324cef3f
ethtool: stats: clarify the initialization to ETHTOOL_STAT_NOT_SET

Ido suggests we add a comment about the init of stats to -1.
This is unlikely to be clear to first time readers.

Suggested-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/stats.c