0c72fb22741b261957928c4277a0b033517adc4e
[cascardo/ovs.git] / datapath / brc_sysfs.h
1 #ifndef BRC_SYSFS_H
2 #define BRC_SYSFS_H 1
3
4 struct datapath;
5 struct net_bridge_port;
6
7 /* brc_sysfs_dp.c */
8 int brc_sysfs_add_dp(struct datapath *dp);
9 int brc_sysfs_del_dp(struct datapath *dp);
10
11 /* brc_sysfs_if.c */
12 int brc_sysfs_add_if(struct net_bridge_port *p);
13 int brc_sysfs_del_if(struct net_bridge_port *p);
14
15 #include <linux/version.h>
16 #if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,18)
17 #define SUPPORT_SYSFS 1
18 #else
19 /* We only support sysfs on Linux 2.6.18 because that's the only place we
20  * really need it (on Xen, for brcompat) and it's a big pain to try to support
21  * multiple versions. */
22 #endif
23
24 #endif /* brc_sysfs.h */
25