#include <linux/pci.h>
#include <linux/netdevice.h>
#include <linux/ethtool.h>
#include "octep_vf_config.h"
#include "octep_vf_main.h"
static const char octep_vf_gstrings_global_stats[][ETH_GSTRING_LEN] = …;
#define OCTEP_VF_GLOBAL_STATS_CNT …
static const char octep_vf_gstrings_tx_q_stats[][ETH_GSTRING_LEN] = …;
#define OCTEP_VF_TX_Q_STATS_CNT …
static const char octep_vf_gstrings_rx_q_stats[][ETH_GSTRING_LEN] = …;
#define OCTEP_VF_RX_Q_STATS_CNT …
static void octep_vf_get_drvinfo(struct net_device *netdev,
struct ethtool_drvinfo *info)
{ … }
static void octep_vf_get_strings(struct net_device *netdev,
u32 stringset, u8 *data)
{ … }
static int octep_vf_get_sset_count(struct net_device *netdev, int sset)
{ … }
static void octep_vf_get_ethtool_stats(struct net_device *netdev,
struct ethtool_stats *stats, u64 *data)
{ … }
#define OCTEP_VF_SET_ETHTOOL_LINK_MODES_BITMAP(octep_vf_speeds, ksettings, name) …
static int octep_vf_get_link_ksettings(struct net_device *netdev,
struct ethtool_link_ksettings *cmd)
{ … }
static const struct ethtool_ops octep_vf_ethtool_ops = …;
void octep_vf_set_ethtool_ops(struct net_device *netdev)
{ … }