Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36503
b: refs/heads/master
c: 54ef313
h: refs/heads/master
i:
  36501: 366351e
  36499: 00c29a9
  36495: 7e9f808
v: v3
  • Loading branch information
Jay Vosburgh authored and Jeff Garzik committed Sep 26, 2006
1 parent da2c16d commit b55946e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a50d8de2cc872818b61e60c20c75be3f19aa6887
refs/heads/master: 54ef313714070b397d3857289f0fd099b7643631
7 changes: 6 additions & 1 deletion trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1211,10 +1211,14 @@ static int bond_compute_features(struct bonding *bond)
unsigned long features = BOND_INTERSECT_FEATURES;
struct slave *slave;
struct net_device *bond_dev = bond->dev;
unsigned short max_hard_header_len = ETH_HLEN;
int i;

bond_for_each_slave(bond, slave, i)
bond_for_each_slave(bond, slave, i) {
features &= (slave->dev->features & BOND_INTERSECT_FEATURES);
if (slave->dev->hard_header_len > max_hard_header_len)
max_hard_header_len = slave->dev->hard_header_len;
}

if ((features & NETIF_F_SG) &&
!(features & NETIF_F_ALL_CSUM))
Expand All @@ -1232,6 +1236,7 @@ static int bond_compute_features(struct bonding *bond)

features |= (bond_dev->features & ~BOND_INTERSECT_FEATURES);
bond_dev->features = features;
bond_dev->hard_header_len = max_hard_header_len;

return 0;
}
Expand Down

0 comments on commit b55946e

Please sign in to comment.