|
@@ -781,7 +781,7 @@ static void dsa_cpu_port_get_ethtool_stats(struct net_device *dev,
|
|
|
uint64_t *data)
|
|
|
{
|
|
|
struct dsa_switch_tree *dst = dev->dsa_ptr;
|
|
|
- struct dsa_switch *ds = dst->ds[0];
|
|
|
+ struct dsa_switch *ds = dst->cpu_switch;
|
|
|
s8 cpu_port = dst->cpu_port;
|
|
|
int count = 0;
|
|
|
|
|
@@ -798,7 +798,7 @@ static void dsa_cpu_port_get_ethtool_stats(struct net_device *dev,
|
|
|
static int dsa_cpu_port_get_sset_count(struct net_device *dev, int sset)
|
|
|
{
|
|
|
struct dsa_switch_tree *dst = dev->dsa_ptr;
|
|
|
- struct dsa_switch *ds = dst->ds[0];
|
|
|
+ struct dsa_switch *ds = dst->cpu_switch;
|
|
|
int count = 0;
|
|
|
|
|
|
if (dst->master_ethtool_ops.get_sset_count)
|
|
@@ -814,7 +814,7 @@ static void dsa_cpu_port_get_strings(struct net_device *dev,
|
|
|
uint32_t stringset, uint8_t *data)
|
|
|
{
|
|
|
struct dsa_switch_tree *dst = dev->dsa_ptr;
|
|
|
- struct dsa_switch *ds = dst->ds[0];
|
|
|
+ struct dsa_switch *ds = dst->cpu_switch;
|
|
|
s8 cpu_port = dst->cpu_port;
|
|
|
int len = ETH_GSTRING_LEN;
|
|
|
int mcount = 0, count;
|