blob: 48cd4b4784e86639db9ea6417df3b2156b40269e [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#ifndef __BEN_VLAN_PROC_INC__
3#define __BEN_VLAN_PROC_INC__
4
5#ifdef CONFIG_PROC_FS
Pavel Emelyanovcd1c7012008-04-16 00:51:12 -07006struct net;
7
8int vlan_proc_init(struct net *net);
Zhang Shengjue4999f22016-02-18 02:29:30 +00009void vlan_proc_rem_dev(struct net_device *vlandev);
Patrick McHardy2029cc22008-01-21 00:26:41 -080010int vlan_proc_add_dev(struct net_device *vlandev);
Pavel Emelyanovcd1c7012008-04-16 00:51:12 -070011void vlan_proc_cleanup(struct net *net);
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
13#else /* No CONFIG_PROC_FS */
14
Pavel Emelyanovcd1c7012008-04-16 00:51:12 -070015#define vlan_proc_init(net) (0)
16#define vlan_proc_cleanup(net) do {} while (0)
Patrick McHardy2029cc22008-01-21 00:26:41 -080017#define vlan_proc_add_dev(dev) ({(void)(dev), 0; })
Zhang Shengjue4999f22016-02-18 02:29:30 +000018#define vlan_proc_rem_dev(dev) do {} while (0)
Linus Torvalds1da177e2005-04-16 15:20:36 -070019#endif
20
21#endif /* !(__BEN_VLAN_PROC_INC__) */