net: move is_vlan_dev into public header file (v2)
authorNeil Horman <nhorman@tuxdriver.com>
Tue, 24 May 2011 08:31:08 +0000 (08:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 May 2011 21:55:23 +0000 (17:55 -0400)
Migrate is_vlan_dev() to if_vlan.h so that core networkig can use it

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: davem@davemloft.net
CC: bhutchings@solarflare.com
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_vlan.h
net/8021q/vlan.h

index 290bd8ac94cfe461f71eaf12bc4bdafc4fc993ce..dc01681fbb42d5dc689d58c239d6b20a1ae7992f 100644 (file)
@@ -110,6 +110,11 @@ static inline void vlan_group_set_device(struct vlan_group *vg,
        array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] = dev;
 }
 
+static inline int is_vlan_dev(struct net_device *dev)
+{
+        return dev->priv_flags & IFF_802_1Q_VLAN;
+}
+
 #define vlan_tx_tag_present(__skb)     ((__skb)->vlan_tci & VLAN_TAG_PRESENT)
 #define vlan_tx_tag_get(__skb)         ((__skb)->vlan_tci & ~VLAN_TAG_PRESENT)
 
index c3408def8a19992014f94fa193115c8054585065..9da07e30d1a250aabd453bbe90e1aa6bd18c8521 100644 (file)
@@ -118,11 +118,6 @@ extern void vlan_netlink_fini(void);
 
 extern struct rtnl_link_ops vlan_link_ops;
 
-static inline int is_vlan_dev(struct net_device *dev)
-{
-       return dev->priv_flags & IFF_802_1Q_VLAN;
-}
-
 extern int vlan_net_id;
 
 struct proc_dir_entry;