vlan: move struct vlan_dev_info to private header
Hide struct vlan_dev_info from drivers to prevent them from growing more creative ways to use it. Provide accessors for the two drivers that currently use it. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
7750f403cb
commit
22d1ba74bb
@@ -46,3 +46,15 @@ int __vlan_hwaccel_rx(struct sk_buff *skb, struct vlan_group *grp,
|
||||
return (polling ? netif_receive_skb(skb) : netif_rx(skb));
|
||||
}
|
||||
EXPORT_SYMBOL(__vlan_hwaccel_rx);
|
||||
|
||||
struct net_device *vlan_dev_real_dev(const struct net_device *dev)
|
||||
{
|
||||
return vlan_dev_info(dev)->real_dev;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(vlan_dev_real_dev);
|
||||
|
||||
u16 vlan_dev_vlan_id(const struct net_device *dev)
|
||||
{
|
||||
return vlan_dev_info(dev)->vlan_id;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(vlan_dev_vlan_id);
|
||||
|
Reference in New Issue
Block a user