diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index a94a5a0ab122..60584b185a0c 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -2733,6 +2733,17 @@ static inline netdev_features_t netdev_get_wanted_features( | |||
2733 | } | 2733 | } |
2734 | netdev_features_t netdev_increment_features(netdev_features_t all, | 2734 | netdev_features_t netdev_increment_features(netdev_features_t all, |
2735 | netdev_features_t one, netdev_features_t mask); | 2735 | netdev_features_t one, netdev_features_t mask); |
2736 | |||
2737 | /* Allow TSO being used on stacked device : | ||
2738 | * Performing the GSO segmentation before last device | ||
2739 | * is a performance improvement. | ||
2740 | */ | ||
2741 | static inline netdev_features_t netdev_add_tso_features(netdev_features_t features, | ||
2742 | netdev_features_t mask) | ||
2743 | { | ||
2744 | return netdev_increment_features(features, NETIF_F_ALL_TSO, mask); | ||
2745 | } | ||
2746 | |||
2736 | int __netdev_update_features(struct net_device *dev); | 2747 | int __netdev_update_features(struct net_device *dev); |
2737 | void netdev_update_features(struct net_device *dev); | 2748 | void netdev_update_features(struct net_device *dev); |
2738 | void netdev_change_features(struct net_device *dev); | 2749 | void netdev_change_features(struct net_device *dev); |