diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2011-04-22 02:31:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-28 16:33:07 -0400 |
commit | 1742f183fc218798dab6fcf0ded25b6608fc0a48 (patch) | |
tree | 47910c74f188e8dc9eb4fbefba01a1cf29de9965 /include/linux/netdevice.h | |
parent | 96339d6c490a32de35fa798ca7922d13a8538ecd (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.h | 7 |
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) |