diff options
Diffstat (limited to 'drivers/net/bonding/bond_alb.c')
-rw-r--r-- | drivers/net/bonding/bond_alb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c index 2df9276720a0..7f8b20a34ee3 100644 --- a/drivers/net/bonding/bond_alb.c +++ b/drivers/net/bonding/bond_alb.c | |||
@@ -635,7 +635,7 @@ static struct slave *rlb_choose_channel(struct sk_buff *skb, struct bonding *bon | |||
635 | client_info->ntt = 0; | 635 | client_info->ntt = 0; |
636 | } | 636 | } |
637 | 637 | ||
638 | if (bond->vlgrp) { | 638 | if (bond_vlan_used(bond)) { |
639 | if (!vlan_get_tag(skb, &client_info->vlan_id)) | 639 | if (!vlan_get_tag(skb, &client_info->vlan_id)) |
640 | client_info->tag = 1; | 640 | client_info->tag = 1; |
641 | } | 641 | } |
@@ -847,7 +847,7 @@ static void alb_send_learning_packets(struct slave *slave, u8 mac_addr[]) | |||
847 | skb->priority = TC_PRIO_CONTROL; | 847 | skb->priority = TC_PRIO_CONTROL; |
848 | skb->dev = slave->dev; | 848 | skb->dev = slave->dev; |
849 | 849 | ||
850 | if (bond->vlgrp) { | 850 | if (bond_vlan_used(bond)) { |
851 | struct vlan_entry *vlan; | 851 | struct vlan_entry *vlan; |
852 | 852 | ||
853 | vlan = bond_next_vlan(bond, | 853 | vlan = bond_next_vlan(bond, |