Patch "bonding: Fix initial {vlan,mpls}_feature set in bond_compute_features" has been added to the 6.12-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

    bonding: Fix initial {vlan,mpls}_feature set in bond_compute_features

to the 6.12-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:
     bonding-fix-initial-vlan-mpls-_feature-set-in-bond_c.patch
and it can be found in the queue-6.12 subdirectory.

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



commit bb11905813fc70a80e568e1195b3e672e22674a8
Author: Daniel Borkmann <daniel@xxxxxxxxxxxxx>
Date:   Tue Dec 10 15:12:42 2024 +0100

    bonding: Fix initial {vlan,mpls}_feature set in bond_compute_features
    
    [ Upstream commit d064ea7fe2a24938997b5e88e6b61cbb0a4bb906 ]
    
    If a bonding device has slave devices, then the current logic to derive
    the feature set for the master bond device is limited in that flags which
    are fully supported by the underlying slave devices cannot be propagated
    up to vlan devices which sit on top of bond devices. Instead, these get
    blindly masked out via current NETIF_F_ALL_FOR_ALL logic.
    
    vlan_features and mpls_features should reuse netdev_base_features() in
    order derive the set in the same way as ndo_fix_features before iterating
    through the slave devices to refine the feature set.
    
    Fixes: a9b3ace44c7d ("bonding: fix vlan_features computing")
    Fixes: 2e770b507ccd ("net: bonding: Inherit MPLS features from slave devices")
    Signed-off-by: Daniel Borkmann <daniel@xxxxxxxxxxxxx>
    Cc: Nikolay Aleksandrov <razor@xxxxxxxxxxxxx>
    Cc: Ido Schimmel <idosch@xxxxxxxxxx>
    Cc: Jiri Pirko <jiri@xxxxxxxxxx>
    Reviewed-by: Nikolay Aleksandrov <razor@xxxxxxxxxxxxx>
    Reviewed-by: Hangbin Liu <liuhangbin@xxxxxxxxx>
    Link: https://patch.msgid.link/20241210141245.327886-2-daniel@xxxxxxxxxxxxx
    Signed-off-by: Paolo Abeni <pabeni@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 166910693fd7..dfad7b6f9f35 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -1562,8 +1562,9 @@ static void bond_compute_features(struct bonding *bond)
 
 	if (!bond_has_slaves(bond))
 		goto done;
-	vlan_features &= NETIF_F_ALL_FOR_ALL;
-	mpls_features &= NETIF_F_ALL_FOR_ALL;
+
+	vlan_features = netdev_base_features(vlan_features);
+	mpls_features = netdev_base_features(mpls_features);
 
 	bond_for_each_slave(bond, slave, iter) {
 		vlan_features = netdev_increment_features(vlan_features,




[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