]> 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)
commit0cad9407cd2fe3ffeece70079451e239eef02f66
tree4ed8d3412ab9993fd934462287423965f612ca12
parentaf6fc73aa5b20bf1dffc247b1a6ef3a81c67b22f
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