Commit 553a768d authored by Vivien Didelot's avatar Vivien Didelot Committed by David S. Miller

net: dsa: mv88e6xxx: exclude all ports in new VLAN

Now that the DSA core adds the CPU and DSA ports itself to the new VLAN
entry, there is no need to include them as members of this VLAN when
initializing a new VTU entry.

As of now, initialize a new VTU entry with all ports excluded.
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b2f81d30
...@@ -1159,11 +1159,10 @@ static int mv88e6xxx_vtu_get(struct mv88e6xxx_chip *chip, u16 vid, ...@@ -1159,11 +1159,10 @@ static int mv88e6xxx_vtu_get(struct mv88e6xxx_chip *chip, u16 vid,
entry->valid = true; entry->valid = true;
entry->vid = vid; entry->vid = vid;
/* Include only CPU and DSA ports */ /* Exclude all ports */
for (i = 0; i < mv88e6xxx_num_ports(chip); ++i) for (i = 0; i < mv88e6xxx_num_ports(chip); ++i)
entry->member[i] = dsa_is_normal_port(chip->ds, i) ? entry->member[i] =
GLOBAL_VTU_DATA_MEMBER_TAG_NON_MEMBER : GLOBAL_VTU_DATA_MEMBER_TAG_NON_MEMBER;
GLOBAL_VTU_DATA_MEMBER_TAG_UNMODIFIED;
return mv88e6xxx_atu_new(chip, &entry->fid); return mv88e6xxx_atu_new(chip, &entry->fid);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment