Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376107
b: refs/heads/master
c: b0ce350
h: refs/heads/master
i:
  376105: a983ca4
  376103: a799020
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed May 16, 2013
1 parent 3dc32c6 commit e1282cf
Show file tree
Hide file tree
Showing 3 changed files with 13 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: 3aefe2b4a8003517d6e15112f806fd4069785389
refs/heads/master: b0ce3508b25ea6fa10ae3ca254de1d695b521702
1 change: 1 addition & 0 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1362,6 +1362,7 @@ static netdev_features_t bond_fix_features(struct net_device *dev,
slave->dev->features,
mask);
}
features = netdev_add_tso_features(features, mask);

out:
read_unlock(&bond->lock);
Expand Down
11 changes: 11 additions & 0 deletions trunk/include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -2733,6 +2733,17 @@ static inline netdev_features_t netdev_get_wanted_features(
}
netdev_features_t netdev_increment_features(netdev_features_t all,
netdev_features_t one, netdev_features_t mask);

/* Allow TSO being used on stacked device :
* Performing the GSO segmentation before last device
* is a performance improvement.
*/
static inline netdev_features_t netdev_add_tso_features(netdev_features_t features,
netdev_features_t mask)
{
return netdev_increment_features(features, NETIF_F_ALL_TSO, mask);
}

int __netdev_update_features(struct net_device *dev);
void netdev_update_features(struct net_device *dev);
void netdev_change_features(struct net_device *dev);
Expand Down

0 comments on commit e1282cf

Please sign in to comment.