]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/if_vlan.h
net: 8021q: vlan_core: allow use list of vlans for real device
[linux.git] / include / linux / if_vlan.h
index 03b08ffded076077620b2daaf02e128bd900833b..1be5230921b5726b9677ed060028dcb4ac126da8 100644 (file)
@@ -133,6 +133,9 @@ struct vlan_pcpu_stats {
 
 extern struct net_device *__vlan_find_dev_deep_rcu(struct net_device *real_dev,
                                               __be16 vlan_proto, u16 vlan_id);
+extern int vlan_for_each(struct net_device *dev,
+                        int (*action)(struct net_device *dev, int vid,
+                                      void *arg), void *arg);
 extern struct net_device *vlan_dev_real_dev(const struct net_device *dev);
 extern u16 vlan_dev_vlan_id(const struct net_device *dev);
 extern __be16 vlan_dev_vlan_proto(const struct net_device *dev);
@@ -236,6 +239,14 @@ __vlan_find_dev_deep_rcu(struct net_device *real_dev,
        return NULL;
 }
 
+static inline int
+vlan_for_each(struct net_device *dev,
+             int (*action)(struct net_device *dev, int vid, void *arg),
+             void *arg)
+{
+       return 0;
+}
+
 static inline struct net_device *vlan_dev_real_dev(const struct net_device *dev)
 {
        BUG();