History

bonding: set correct vlan id for alb xmit path

The commit d3ab3ffd1d728d7ee77340e7e7e2c7cfe6a4013e (bonding: use rlb_client_info->vlan_id instead of ->tag) remove the rlb_client_info->tag, but occur some issues, The vlan_get_tag() will return 0 for success and -EINVAL for error, so the client_info->vlan_id always be set to 0 if the vlan_get_tag return 0 for success, so the client_info would never get a correct vlan id. We should only set the vlan id to 0 when the vlan_get_tag return error. Fixes: d3ab3ffd1d7 (bonding: use rlb_client_info->vlan_id instead of ->tag)

dingtianhong committed 12 years ago

Commit fb00bc21 parent 6e07a1e1 file · +1 −1Browse files

Unified · Split

drivers/net/bonding/bond_alb.c+1−1
@@ -730,7 +730,7 @@ static struct slave *rlb_choose_channel(struct sk_buff *skb, struct bonding *bon · 729 unmodified lines
730730 client_info->ntt = 0;
731731 }
732732
733− if (!vlan_get_tag(skb, &client_info->vlan_id))
733+ if (vlan_get_tag(skb, &client_info->vlan_id))
734734 client_info->vlan_id = 0;
735735
736736 if (!client_info->assigned) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t