Patch "net: dsa: vsc73xx: fix reception from VLAN-unaware bridges" has been added to the 6.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: dsa: vsc73xx: fix reception from VLAN-unaware bridges

to the 6.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-dsa-vsc73xx-fix-reception-from-vlan-unaware-brid.patch
and it can be found in the queue-6.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 409aef464f99805ca4b126b909dd7b3d4cef009f
Author: Vladimir Oltean <vladimir.oltean@xxxxxxx>
Date:   Mon Oct 14 18:30:41 2024 +0300

    net: dsa: vsc73xx: fix reception from VLAN-unaware bridges
    
    [ Upstream commit 11d06f0aaef89f4cad68b92510bd9decff2d7b87 ]
    
    Similar to the situation described for sja1105 in commit 1f9fc48fd302
    ("net: dsa: sja1105: fix reception from VLAN-unaware bridges"), the
    vsc73xx driver uses tag_8021q and doesn't need the ds->untag_bridge_pvid
    request. In fact, this option breaks packet reception.
    
    The ds->untag_bridge_pvid option strips VLANs from packets received on
    VLAN-unaware bridge ports. But those VLANs should already be stripped
    by tag_vsc73xx_8021q.c as part of vsc73xx_rcv() - they are not VLANs in
    VLAN-unaware mode, but DSA tags. Thus, dsa_software_vlan_untag() tries
    to untag a VLAN that doesn't exist, corrupting the packet.
    
    Fixes: 93e4649efa96 ("net: dsa: provide a software untagging function on RX for VLAN-aware bridges")
    Tested-by: Pawel Dembicki <paweldembicki@xxxxxxxxx>
    Signed-off-by: Vladimir Oltean <vladimir.oltean@xxxxxxx>
    Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
    Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
    Link: https://patch.msgid.link/20241014153041.1110364-1-vladimir.oltean@xxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/dsa/vitesse-vsc73xx-core.c b/drivers/net/dsa/vitesse-vsc73xx-core.c
index 212421e9d42e4..f5a1fefb76509 100644
--- a/drivers/net/dsa/vitesse-vsc73xx-core.c
+++ b/drivers/net/dsa/vitesse-vsc73xx-core.c
@@ -721,7 +721,6 @@ static int vsc73xx_setup(struct dsa_switch *ds)
 
 	dev_info(vsc->dev, "set up the switch\n");
 
-	ds->untag_bridge_pvid = true;
 	ds->max_num_bridges = DSA_TAG_8021Q_MAX_NUM_BRIDGES;
 
 	/* Issue RESET */




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux