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>
This commit is contained in:

committad av
David S. Miller

förälder
a59e2ecb85
incheckning
c8f44affb7
@@ -2662,9 +2662,10 @@ static void vxge_poll_vp_lockup(unsigned long data)
|
||||
mod_timer(&vdev->vp_lockup_timer, jiffies + HZ / 1000);
|
||||
}
|
||||
|
||||
static u32 vxge_fix_features(struct net_device *dev, u32 features)
|
||||
static netdev_features_t vxge_fix_features(struct net_device *dev,
|
||||
netdev_features_t features)
|
||||
{
|
||||
u32 changed = dev->features ^ features;
|
||||
netdev_features_t changed = dev->features ^ features;
|
||||
|
||||
/* Enabling RTH requires some of the logic in vxge_device_register and a
|
||||
* vpath reset. Due to these restrictions, only allow modification
|
||||
@@ -2676,10 +2677,10 @@ static u32 vxge_fix_features(struct net_device *dev, u32 features)
|
||||
return features;
|
||||
}
|
||||
|
||||
static int vxge_set_features(struct net_device *dev, u32 features)
|
||||
static int vxge_set_features(struct net_device *dev, netdev_features_t features)
|
||||
{
|
||||
struct vxgedev *vdev = netdev_priv(dev);
|
||||
u32 changed = dev->features ^ features;
|
||||
netdev_features_t changed = dev->features ^ features;
|
||||
|
||||
if (!(changed & NETIF_F_RXHASH))
|
||||
return 0;
|
||||
|
Referens i nytt ärende
Block a user