Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315465
b: refs/heads/master
c: b6fe83e
h: refs/heads/master
i:
  315463: fa9538b
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jul 18, 2012
1 parent aaf567a commit d642926
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1817e83d6ccf992164dd83522b2d1c22b1a85977
refs/heads/master: b6fe83e9525a03b3141e5857eb7d8af219db94e5
5 changes: 5 additions & 0 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,7 @@ static void bond_compute_features(struct bonding *bond)
netdev_features_t vlan_features = BOND_VLAN_FEATURES;
unsigned short max_hard_header_len = ETH_HLEN;
int i;
unsigned int flags, dst_release_flag = IFF_XMIT_DST_RELEASE;

read_lock(&bond->lock);

Expand All @@ -1392,6 +1393,7 @@ static void bond_compute_features(struct bonding *bond)
vlan_features = netdev_increment_features(vlan_features,
slave->dev->vlan_features, BOND_VLAN_FEATURES);

dst_release_flag &= slave->dev->priv_flags;
if (slave->dev->hard_header_len > max_hard_header_len)
max_hard_header_len = slave->dev->hard_header_len;
}
Expand All @@ -1400,6 +1402,9 @@ static void bond_compute_features(struct bonding *bond)
bond_dev->vlan_features = vlan_features;
bond_dev->hard_header_len = max_hard_header_len;

flags = bond_dev->priv_flags & ~IFF_XMIT_DST_RELEASE;
bond_dev->priv_flags = flags | dst_release_flag;

read_unlock(&bond->lock);

netdev_change_features(bond_dev);
Expand Down

0 comments on commit d642926

Please sign in to comment.