Skip to content

Commit 553a768

Browse files
viviendavem330
authored andcommitted
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: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent b2f81d3 commit 553a768

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • drivers/net/dsa/mv88e6xxx

‎drivers/net/dsa/mv88e6xxx/chip.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,11 +1159,10 @@ static int mv88e6xxx_vtu_get(struct mv88e6xxx_chip *chip, u16 vid,
11591159
entry->valid = true;
11601160
entry->vid = vid;
11611161

1162-
/* Include only CPU and DSA ports */
1162+
/* Exclude all ports */
11631163
for (i = 0; i < mv88e6xxx_num_ports(chip); ++i)
1164-
entry->member[i] = dsa_is_normal_port(chip->ds, i) ?
1165-
GLOBAL_VTU_DATA_MEMBER_TAG_NON_MEMBER :
1166-
GLOBAL_VTU_DATA_MEMBER_TAG_UNMODIFIED;
1164+
entry->member[i] =
1165+
GLOBAL_VTU_DATA_MEMBER_TAG_NON_MEMBER;
11671166

11681167
return mv88e6xxx_atu_new(chip, &entry->fid);
11691168
}

0 commit comments

Comments
 (0)