|
@@ -355,11 +355,12 @@ static int dsa_slave_port_attr_get(struct net_device *dev,
|
|
{
|
|
{
|
|
struct dsa_port *dp = dsa_slave_to_port(dev);
|
|
struct dsa_port *dp = dsa_slave_to_port(dev);
|
|
struct dsa_switch *ds = dp->ds;
|
|
struct dsa_switch *ds = dp->ds;
|
|
|
|
+ struct dsa_switch_tree *dst = ds->dst;
|
|
|
|
|
|
switch (attr->id) {
|
|
switch (attr->id) {
|
|
case SWITCHDEV_ATTR_ID_PORT_PARENT_ID:
|
|
case SWITCHDEV_ATTR_ID_PORT_PARENT_ID:
|
|
- attr->u.ppid.id_len = sizeof(ds->index);
|
|
|
|
- memcpy(&attr->u.ppid.id, &ds->index, attr->u.ppid.id_len);
|
|
|
|
|
|
+ attr->u.ppid.id_len = sizeof(dst->index);
|
|
|
|
+ memcpy(&attr->u.ppid.id, &dst->index, attr->u.ppid.id_len);
|
|
break;
|
|
break;
|
|
case SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT:
|
|
case SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT:
|
|
attr->u.brport_flags_support = 0;
|
|
attr->u.brport_flags_support = 0;
|