xenserver: Add missing argument for fake-iface config
[sliver-openvswitch.git] / datapath / dp_sysfs.h
1 /*
2  * Copyright (c) 2009 Nicira Networks.
3  * Distributed under the terms of the GNU GPL version 2.
4  *
5  * Significant portions of this file may be copied from parts of the Linux
6  * kernel, by Linus Torvalds and others.
7  */
8
9 #ifndef DP_SYSFS_H
10 #define DP_SYSFS_H 1
11
12 struct datapath;
13 struct net_bridge_port;
14
15 /* dp_sysfs_dp.c */
16 int dp_sysfs_add_dp(struct datapath *dp);
17 int dp_sysfs_del_dp(struct datapath *dp);
18
19 /* dp_sysfs_if.c */
20 int dp_sysfs_add_if(struct net_bridge_port *p);
21 int dp_sysfs_del_if(struct net_bridge_port *p);
22
23 #include <linux/version.h>
24 #if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,18)
25 #define SUPPORT_SYSFS 1
26 #else
27 /* We only support sysfs on Linux 2.6.18 because that's the only place we
28  * really need it (on Xen, for brcompat) and it's a big pain to try to support
29  * multiple versions. */
30 #endif
31
32 #ifdef SUPPORT_SYSFS
33 extern struct sysfs_ops brport_sysfs_ops;
34 #endif
35
36 #endif /* dp_sysfs.h */
37