aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>2011-04-22 02:31:16 -0400
committerDavid S. Miller <davem@davemloft.net>2011-04-28 16:33:07 -0400
commit1742f183fc218798dab6fcf0ded25b6608fc0a48 (patch)
tree47910c74f188e8dc9eb4fbefba01a1cf29de9965 /include/linux/netdevice.h
parent96339d6c490a32de35fa798ca7922d13a8538ecd (diff)
net: fix netdev_increment_features()
Simplify and fix netdev_increment_features() to conform to what is stated in netdevice.h comments about NETIF_F_ONE_FOR_ALL. Include FCoE segmentation and VLAN-challedged flags in computation. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 364bcf212f71..b7d0304762aa 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1106,7 +1106,12 @@ struct net_device {
1106 */ 1106 */
1107#define NETIF_F_ONE_FOR_ALL (NETIF_F_GSO_SOFTWARE | NETIF_F_GSO_ROBUST | \ 1107#define NETIF_F_ONE_FOR_ALL (NETIF_F_GSO_SOFTWARE | NETIF_F_GSO_ROBUST | \
1108 NETIF_F_SG | NETIF_F_HIGHDMA | \ 1108 NETIF_F_SG | NETIF_F_HIGHDMA | \
1109 NETIF_F_FRAGLIST) 1109 NETIF_F_FRAGLIST | NETIF_F_VLAN_CHALLENGED)
1110 /*
1111 * If one device doesn't support one of these features, then disable it
1112 * for all in netdev_increment_features.
1113 */
1114#define NETIF_F_ALL_FOR_ALL (NETIF_F_NOCACHE_COPY | NETIF_F_FSO)
1110 1115
1111 /* changeable features with no special hardware requirements */ 1116 /* changeable features with no special hardware requirements */
1112#define NETIF_F_SOFT_FEATURES (NETIF_F_GSO | NETIF_F_GRO) 1117#define NETIF_F_SOFT_FEATURES (NETIF_F_GSO | NETIF_F_GRO)