diff options
author | David Ward <david.ward@ll.mit.edu> | 2013-02-08 12:17:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-10 20:37:22 -0500 |
commit | 86fbe9bb599fcaf7e92e38dbfdad0414a2d68f7d (patch) | |
tree | 2e8b109de2f0e3b5c1b59f8dd2737388109ef982 /net/8021q/vlan.h | |
parent | febf018d22347b5df94066bca05d0c11a84e839d (diff) |
net/8021q: Implement Multiple VLAN Registration Protocol (MVRP)
Initial implementation of the Multiple VLAN Registration Protocol
(MVRP) from IEEE 802.1Q-2011, based on the existing implementation
of the GARP VLAN Registration Protocol (GVRP).
Signed-off-by: David Ward <david.ward@ll.mit.edu>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlan.h')
-rw-r--r-- | net/8021q/vlan.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/8021q/vlan.h b/net/8021q/vlan.h index a4886d94c40c..670f1e8cfc0f 100644 --- a/net/8021q/vlan.h +++ b/net/8021q/vlan.h | |||
@@ -171,6 +171,22 @@ static inline int vlan_gvrp_init(void) { return 0; } | |||
171 | static inline void vlan_gvrp_uninit(void) {} | 171 | static inline void vlan_gvrp_uninit(void) {} |
172 | #endif | 172 | #endif |
173 | 173 | ||
174 | #ifdef CONFIG_VLAN_8021Q_MVRP | ||
175 | extern int vlan_mvrp_request_join(const struct net_device *dev); | ||
176 | extern void vlan_mvrp_request_leave(const struct net_device *dev); | ||
177 | extern int vlan_mvrp_init_applicant(struct net_device *dev); | ||
178 | extern void vlan_mvrp_uninit_applicant(struct net_device *dev); | ||
179 | extern int vlan_mvrp_init(void); | ||
180 | extern void vlan_mvrp_uninit(void); | ||
181 | #else | ||
182 | static inline int vlan_mvrp_request_join(const struct net_device *dev) { return 0; } | ||
183 | static inline void vlan_mvrp_request_leave(const struct net_device *dev) {} | ||
184 | static inline int vlan_mvrp_init_applicant(struct net_device *dev) { return 0; } | ||
185 | static inline void vlan_mvrp_uninit_applicant(struct net_device *dev) {} | ||
186 | static inline int vlan_mvrp_init(void) { return 0; } | ||
187 | static inline void vlan_mvrp_uninit(void) {} | ||
188 | #endif | ||
189 | |||
174 | extern const char vlan_fullname[]; | 190 | extern const char vlan_fullname[]; |
175 | extern const char vlan_version[]; | 191 | extern const char vlan_version[]; |
176 | extern int vlan_netlink_init(void); | 192 | extern int vlan_netlink_init(void); |