#include <linux/ethtool.h>
#include "rockchip_canfd.h"
enum rkcanfd_stats_type { … };
static const char rkcanfd_stats_strings[][ETH_GSTRING_LEN] = …;
static void
rkcanfd_ethtool_get_strings(struct net_device *ndev, u32 stringset, u8 *buf)
{ … }
static int rkcanfd_ethtool_get_sset_count(struct net_device *netdev, int sset)
{ … }
static void
rkcanfd_ethtool_get_ethtool_stats(struct net_device *ndev,
struct ethtool_stats *stats, u64 *data)
{ … }
static const struct ethtool_ops rkcanfd_ethtool_ops = …;
void rkcanfd_ethtool_init(struct rkcanfd_priv *priv)
{ … }