#include <linux/ethtool.h> #include <linux/netdevice.h> #include <linux/pci.h> #include "fbnic.h" #include "fbnic_netdev.h" #include "fbnic_tlv.h" static void fbnic_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo) { … } static void fbnic_set_counter(u64 *stat, struct fbnic_stat_counter *counter) { … } static void fbnic_get_eth_mac_stats(struct net_device *netdev, struct ethtool_eth_mac_stats *eth_mac_stats) { … } static const struct ethtool_ops fbnic_ethtool_ops = …; void fbnic_set_ethtool_ops(struct net_device *dev) { … }