Skip to content

Commit 8a75b9d

Browse files
Marek Vasutdavem330
authored andcommitted
net: dsa: ksz: Add STP multicast handling
In case the destination address is link local, add override bit into the switch tag to let such a packet through the switch even if the port is blocked. Signed-off-by: Marek Vasut <[email protected]> Cc: Tristram Ha <[email protected]> Cc: Vivien Didelot <[email protected]> Cc: Woojung Huh <[email protected]> Cc: David S. Miller <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bafe9ba commit 8a75b9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

net/dsa/tag_ksz.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ static struct sk_buff *ksz9477_xmit(struct sk_buff *skb,
110110
addr = skb_mac_header(nskb);
111111

112112
*tag = BIT(dp->index);
113+
114+
if (is_link_local_ether_addr(addr))
115+
*tag |= KSZ9477_TAIL_TAG_OVERRIDE;
116+
113117
*tag = cpu_to_be16(*tag);
114118

115119
return nskb;

0 commit comments

Comments
 (0)