diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-04-15 15:53:13 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-15 17:08:29 -0700 |
commit | c5797f8a64158f724238d13fa5a4b351b03fe42d (patch) | |
tree | 6c7ff7fefedee180046d87610b919e7a85bbaa8e /net/ethtool | |
parent | 38ebcf5096a86762b82262e96b2c8b170fe79040 (diff) | |
download | linux-c5797f8a64158f724238d13fa5a4b351b03fe42d.tar.bz2 |
ethtool: move ethtool_stats_init
We'll need it for FEC stats as well.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ethtool')
-rw-r--r-- | net/ethtool/pause.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/net/ethtool/pause.c b/net/ethtool/pause.c index 09998dc5c185..f1967c121278 100644 --- a/net/ethtool/pause.c +++ b/net/ethtool/pause.c @@ -21,12 +21,6 @@ const struct nla_policy ethnl_pause_get_policy[] = { NLA_POLICY_NESTED(ethnl_header_policy_stats), }; -static void ethtool_stats_init(u64 *stats, unsigned int n) -{ - while (n--) - stats[n] = ETHTOOL_STAT_NOT_SET; -} - static int pause_prepare_data(const struct ethnl_req_info *req_base, struct ethnl_reply_data *reply_base, struct genl_info *info) |