blob: 063f60a3d5cc2ee05c724dd76e647596d677fddf [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __BEN_VLAN_PROC_INC__
2#define __BEN_VLAN_PROC_INC__
3
4#ifdef CONFIG_PROC_FS
Pavel Emelyanovcd1c7012008-04-16 00:51:12 -07005struct net;
6
7int vlan_proc_init(struct net *net);
Linus Torvalds1da177e2005-04-16 15:20:36 -07008int vlan_proc_rem_dev(struct net_device *vlandev);
Patrick McHardy2029cc22008-01-21 00:26:41 -08009int vlan_proc_add_dev(struct net_device *vlandev);
Pavel Emelyanovcd1c7012008-04-16 00:51:12 -070010void vlan_proc_cleanup(struct net *net);
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
12#else /* No CONFIG_PROC_FS */
13
Pavel Emelyanovcd1c7012008-04-16 00:51:12 -070014#define vlan_proc_init(net) (0)
15#define vlan_proc_cleanup(net) do {} while (0)
Patrick McHardy2029cc22008-01-21 00:26:41 -080016#define vlan_proc_add_dev(dev) ({(void)(dev), 0; })
17#define vlan_proc_rem_dev(dev) ({(void)(dev), 0; })
Linus Torvalds1da177e2005-04-16 15:20:36 -070018#endif
19
20#endif /* !(__BEN_VLAN_PROC_INC__) */