diff options
author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2014-01-05 19:41:20 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-05 20:27:55 -0500 |
commit | 1e85c9b66d86a776e78c332d5d32ae370ab84d3f (patch) | |
tree | 510ffa1885a305f0290ac5a6aafd2876ecad35ef /include/linux/if_vlan.h | |
parent | a48d4bb0b08fa621439bfcc32ad2f4c4e98decfc (diff) |
8021q: make vlan_pcpu_stats visible without CONFIG_VLAN_8021Q
macvlan needs vlan_pcpu_stats so make it visible even if compiling
without VLAN_8021Q support. Otherwise a very long compiler error happens.
Fixes: cdf3e274cf1b36 ("macvlan: unify macvlan_pcpu_stats and vlan_pcpu_stats")
Cc: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Acked-By: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_vlan.h')
-rw-r--r-- | include/linux/if_vlan.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h index f252deb99454..bbedfb56bd66 100644 --- a/include/linux/if_vlan.h +++ b/include/linux/if_vlan.h | |||
@@ -82,25 +82,6 @@ static inline int is_vlan_dev(struct net_device *dev) | |||
82 | #define vlan_tx_tag_get(__skb) ((__skb)->vlan_tci & ~VLAN_TAG_PRESENT) | 82 | #define vlan_tx_tag_get(__skb) ((__skb)->vlan_tci & ~VLAN_TAG_PRESENT) |
83 | #define vlan_tx_tag_get_id(__skb) ((__skb)->vlan_tci & VLAN_VID_MASK) | 83 | #define vlan_tx_tag_get_id(__skb) ((__skb)->vlan_tci & VLAN_VID_MASK) |
84 | 84 | ||
85 | #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) | ||
86 | |||
87 | extern struct net_device *__vlan_find_dev_deep(struct net_device *real_dev, | ||
88 | __be16 vlan_proto, u16 vlan_id); | ||
89 | extern struct net_device *vlan_dev_real_dev(const struct net_device *dev); | ||
90 | extern u16 vlan_dev_vlan_id(const struct net_device *dev); | ||
91 | |||
92 | /** | ||
93 | * struct vlan_priority_tci_mapping - vlan egress priority mappings | ||
94 | * @priority: skb priority | ||
95 | * @vlan_qos: vlan priority: (skb->priority << 13) & 0xE000 | ||
96 | * @next: pointer to next struct | ||
97 | */ | ||
98 | struct vlan_priority_tci_mapping { | ||
99 | u32 priority; | ||
100 | u16 vlan_qos; | ||
101 | struct vlan_priority_tci_mapping *next; | ||
102 | }; | ||
103 | |||
104 | /** | 85 | /** |
105 | * struct vlan_pcpu_stats - VLAN percpu rx/tx stats | 86 | * struct vlan_pcpu_stats - VLAN percpu rx/tx stats |
106 | * @rx_packets: number of received packets | 87 | * @rx_packets: number of received packets |
@@ -123,6 +104,25 @@ struct vlan_pcpu_stats { | |||
123 | u32 tx_dropped; | 104 | u32 tx_dropped; |
124 | }; | 105 | }; |
125 | 106 | ||
107 | #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) | ||
108 | |||
109 | extern struct net_device *__vlan_find_dev_deep(struct net_device *real_dev, | ||
110 | __be16 vlan_proto, u16 vlan_id); | ||
111 | extern struct net_device *vlan_dev_real_dev(const struct net_device *dev); | ||
112 | extern u16 vlan_dev_vlan_id(const struct net_device *dev); | ||
113 | |||
114 | /** | ||
115 | * struct vlan_priority_tci_mapping - vlan egress priority mappings | ||
116 | * @priority: skb priority | ||
117 | * @vlan_qos: vlan priority: (skb->priority << 13) & 0xE000 | ||
118 | * @next: pointer to next struct | ||
119 | */ | ||
120 | struct vlan_priority_tci_mapping { | ||
121 | u32 priority; | ||
122 | u16 vlan_qos; | ||
123 | struct vlan_priority_tci_mapping *next; | ||
124 | }; | ||
125 | |||
126 | struct proc_dir_entry; | 126 | struct proc_dir_entry; |
127 | struct netpoll; | 127 | struct netpoll; |
128 | 128 | ||