blob: 8838a2e92eb696c2ce199692bc2d87856d4a109d [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);
Zhang Shengjue4999f22016-02-18 02:29:30 +00008void 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; })
Zhang Shengjue4999f22016-02-18 02:29:30 +000017#define vlan_proc_rem_dev(dev) do {} while (0)
Linus Torvalds1da177e2005-04-16 15:20:36 -070018#endif
19
20#endif /* !(__BEN_VLAN_PROC_INC__) */