#include <linux/ethtool.h>
#include "dpaa2-switch.h"
static struct { … } dpaa2_switch_ethtool_counters[] = …;
#define DPAA2_SWITCH_NUM_COUNTERS …
static void dpaa2_switch_get_drvinfo(struct net_device *netdev,
struct ethtool_drvinfo *drvinfo)
{ … }
static int
dpaa2_switch_get_link_ksettings(struct net_device *netdev,
struct ethtool_link_ksettings *link_ksettings)
{ … }
static int
dpaa2_switch_set_link_ksettings(struct net_device *netdev,
const struct ethtool_link_ksettings *link_ksettings)
{ … }
static int
dpaa2_switch_ethtool_get_sset_count(struct net_device *netdev, int sset)
{ … }
static void dpaa2_switch_ethtool_get_strings(struct net_device *netdev,
u32 stringset, u8 *data)
{ … }
static void dpaa2_switch_ethtool_get_stats(struct net_device *netdev,
struct ethtool_stats *stats,
u64 *data)
{ … }
const struct ethtool_ops dpaa2_switch_port_ethtool_ops = …;