diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-09-20 18:28:05 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-22 00:15:58 +0200 |
commit | 0abfd494deefdbab66ac03c1181a614285e7d90c (patch) | |
tree | 303df476c86a75a7b3d7a162a681039a97014c8c /drivers/net/dsa/mv88e6060.c | |
parent | net: avoid a full fib lookup when rp_filter is disabled. (diff) | |
download | linux-0abfd494deefdbab66ac03c1181a614285e7d90c.tar.xz linux-0abfd494deefdbab66ac03c1181a614285e7d90c.zip |
net: dsa: use dedicated CPU port
Each port in DSA has its own dedicated CPU port currently available in
its parent switch's ds->ports[port].cpu_dp. Use it instead of getting
the unique tree CPU port, which will be deprecated soon.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6060.c')
-rw-r--r-- | drivers/net/dsa/mv88e6060.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6060.c b/drivers/net/dsa/mv88e6060.c index dce7fa57eb55..621cdc46ad81 100644 --- a/drivers/net/dsa/mv88e6060.c +++ b/drivers/net/dsa/mv88e6060.c @@ -176,7 +176,7 @@ static int mv88e6060_setup_port(struct dsa_switch *ds, int p) ((p & 0xf) << PORT_VLAN_MAP_DBNUM_SHIFT) | (dsa_is_cpu_port(ds, p) ? ds->enabled_port_mask : - BIT(ds->dst->cpu_dp->index))); + BIT(ds->ports[p].cpu_dp->index))); /* Port Association Vector: when learning source addresses * of packets, add the address to the address database using |