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/neterion | |
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/neterion')
-rw-r--r-- | drivers/net/ethernet/neterion/s2io.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/neterion/vxge/vxge-main.c | 9 |
2 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/ethernet/neterion/s2io.c b/drivers/net/ethernet/neterion/s2io.c index e6c90a5ac5d4..76ae47627200 100644 --- a/drivers/net/ethernet/neterion/s2io.c +++ b/drivers/net/ethernet/neterion/s2io.c | |||
@@ -6616,10 +6616,10 @@ static void s2io_ethtool_get_strings(struct net_device *dev, | |||
6616 | } | 6616 | } |
6617 | } | 6617 | } |
6618 | 6618 | ||
6619 | static int s2io_set_features(struct net_device *dev, u32 features) | 6619 | static int s2io_set_features(struct net_device *dev, netdev_features_t features) |
6620 | { | 6620 | { |
6621 | struct s2io_nic *sp = netdev_priv(dev); | 6621 | struct s2io_nic *sp = netdev_priv(dev); |
6622 | u32 changed = (features ^ dev->features) & NETIF_F_LRO; | 6622 | netdev_features_t changed = (features ^ dev->features) & NETIF_F_LRO; |
6623 | 6623 | ||
6624 | if (changed && netif_running(dev)) { | 6624 | if (changed && netif_running(dev)) { |
6625 | int rc; | 6625 | int rc; |
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c index a83197d757c1..16d4d8e913c3 100644 --- a/drivers/net/ethernet/neterion/vxge/vxge-main.c +++ b/drivers/net/ethernet/neterion/vxge/vxge-main.c | |||
@@ -2662,9 +2662,10 @@ static void vxge_poll_vp_lockup(unsigned long data) | |||
2662 | mod_timer(&vdev->vp_lockup_timer, jiffies + HZ / 1000); | 2662 | mod_timer(&vdev->vp_lockup_timer, jiffies + HZ / 1000); |
2663 | } | 2663 | } |
2664 | 2664 | ||
2665 | static u32 vxge_fix_features(struct net_device *dev, u32 features) | 2665 | static netdev_features_t vxge_fix_features(struct net_device *dev, |
2666 | netdev_features_t features) | ||
2666 | { | 2667 | { |
2667 | u32 changed = dev->features ^ features; | 2668 | netdev_features_t changed = dev->features ^ features; |
2668 | 2669 | ||
2669 | /* Enabling RTH requires some of the logic in vxge_device_register and a | 2670 | /* Enabling RTH requires some of the logic in vxge_device_register and a |
2670 | * vpath reset. Due to these restrictions, only allow modification | 2671 | * vpath reset. Due to these restrictions, only allow modification |
@@ -2676,10 +2677,10 @@ static u32 vxge_fix_features(struct net_device *dev, u32 features) | |||
2676 | return features; | 2677 | return features; |
2677 | } | 2678 | } |
2678 | 2679 | ||
2679 | static int vxge_set_features(struct net_device *dev, u32 features) | 2680 | static int vxge_set_features(struct net_device *dev, netdev_features_t features) |
2680 | { | 2681 | { |
2681 | struct vxgedev *vdev = netdev_priv(dev); | 2682 | struct vxgedev *vdev = netdev_priv(dev); |
2682 | u32 changed = dev->features ^ features; | 2683 | netdev_features_t changed = dev->features ^ features; |
2683 | 2684 | ||
2684 | if (!(changed & NETIF_F_RXHASH)) | 2685 | if (!(changed & NETIF_F_RXHASH)) |
2685 | return 0; | 2686 | return 0; |