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:

committed by
David S. Miller

parent
a59e2ecb85
commit
c8f44affb7
@@ -2532,7 +2532,7 @@ static void t3_synchronize_rx(struct adapter *adap, const struct port_info *p)
|
||||
}
|
||||
}
|
||||
|
||||
static void cxgb_vlan_mode(struct net_device *dev, u32 features)
|
||||
static void cxgb_vlan_mode(struct net_device *dev, netdev_features_t features)
|
||||
{
|
||||
struct port_info *pi = netdev_priv(dev);
|
||||
struct adapter *adapter = pi->adapter;
|
||||
@@ -2553,7 +2553,8 @@ static void cxgb_vlan_mode(struct net_device *dev, u32 features)
|
||||
t3_synchronize_rx(adapter, pi);
|
||||
}
|
||||
|
||||
static u32 cxgb_fix_features(struct net_device *dev, u32 features)
|
||||
static netdev_features_t cxgb_fix_features(struct net_device *dev,
|
||||
netdev_features_t features)
|
||||
{
|
||||
/*
|
||||
* Since there is no support for separate rx/tx vlan accel
|
||||
@@ -2567,9 +2568,9 @@ static u32 cxgb_fix_features(struct net_device *dev, u32 features)
|
||||
return features;
|
||||
}
|
||||
|
||||
static int cxgb_set_features(struct net_device *dev, u32 features)
|
||||
static int cxgb_set_features(struct net_device *dev, netdev_features_t features)
|
||||
{
|
||||
u32 changed = dev->features ^ features;
|
||||
netdev_features_t changed = dev->features ^ features;
|
||||
|
||||
if (changed & NETIF_F_HW_VLAN_RX)
|
||||
cxgb_vlan_mode(dev, features);
|
||||
|
Reference in New Issue
Block a user