diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2011-11-15 10:29:55 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-16 17:43:10 -0500 |
commit | c8f44affb7244f2ac3e703cab13d55ede27621bb (patch) | |
tree | 62e7aea2916a8d7cab825fe500670c5113854c0f /drivers/net/ethernet/myricom/myri10ge | |
parent | a59e2ecb859f2ab03bb2e230709f8039472ad2c3 (diff) |
net: introduce and use netdev_features_t for device features sets
v2: add couple missing conversions in drivers
split unexporting netdev_fix_features()
implemented %pNF
convert sock::sk_route_(no?)caps
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/myricom/myri10ge')
-rw-r--r-- | drivers/net/ethernet/myricom/myri10ge/myri10ge.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c index 0778edcf7b9a..20b72ecb020a 100644 --- a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c +++ b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c | |||
@@ -1491,7 +1491,7 @@ myri10ge_clean_rx_done(struct myri10ge_slice_state *ss, int budget) | |||
1491 | * access to avoid theoretical race condition with functions that | 1491 | * access to avoid theoretical race condition with functions that |
1492 | * change NETIF_F_LRO flag at runtime. | 1492 | * change NETIF_F_LRO flag at runtime. |
1493 | */ | 1493 | */ |
1494 | bool lro_enabled = ACCESS_ONCE(mgp->dev->features) & NETIF_F_LRO; | 1494 | bool lro_enabled = !!(ACCESS_ONCE(mgp->dev->features) & NETIF_F_LRO); |
1495 | 1495 | ||
1496 | while (rx_done->entry[idx].length != 0 && work_done < budget) { | 1496 | while (rx_done->entry[idx].length != 0 && work_done < budget) { |
1497 | length = ntohs(rx_done->entry[idx].length); | 1497 | length = ntohs(rx_done->entry[idx].length); |
@@ -3149,7 +3149,8 @@ static int myri10ge_set_mac_address(struct net_device *dev, void *addr) | |||
3149 | return 0; | 3149 | return 0; |
3150 | } | 3150 | } |
3151 | 3151 | ||
3152 | static u32 myri10ge_fix_features(struct net_device *dev, u32 features) | 3152 | static netdev_features_t myri10ge_fix_features(struct net_device *dev, |
3153 | netdev_features_t features) | ||
3153 | { | 3154 | { |
3154 | if (!(features & NETIF_F_RXCSUM)) | 3155 | if (!(features & NETIF_F_RXCSUM)) |
3155 | features &= ~NETIF_F_LRO; | 3156 | features &= ~NETIF_F_LRO; |