Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f60c3704 authored by Vlad Yasevich's avatar Vlad Yasevich Committed by David S. Miller
Browse files

bonding: Fix alb mode to only use first level vlans.



ALB/TLB learning packets use all vlans configured on top
of the bond.  This ends up being incorrect if we have a stack
of vlans on top of the bond.  ALB/TLB should only use
first level/outer most vlans in its announcements.

Signed-off-by: default avatarVlad Yasevich <vyasevic@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 44a40855
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1045,7 +1045,7 @@ static void alb_send_learning_packets(struct slave *slave, u8 mac_addr[])
	/* loop through vlans and send one packet for each */
	rcu_read_lock();
	netdev_for_each_all_upper_dev_rcu(bond->dev, upper, iter) {
		if (upper->priv_flags & IFF_802_1Q_VLAN)
		if (is_vlan_dev(upper) && vlan_get_encap_level(upper) == 0)
			alb_send_lp_vid(slave, mac_addr,
					vlan_dev_vlan_id(upper));
	}