2 * Copyright (c) 2009 Nicira Networks.
3 * Distributed under the terms of the GNU GPL version 2.
5 * Significant portions of this file may be copied from parts of the Linux
6 * kernel, by Linus Torvalds and others.
13 struct net_bridge_port;
16 int dp_sysfs_add_dp(struct datapath *dp);
17 int dp_sysfs_del_dp(struct datapath *dp);
20 int dp_sysfs_add_if(struct net_bridge_port *p);
21 int dp_sysfs_del_if(struct net_bridge_port *p);
23 #include <linux/version.h>
24 #if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,18)
25 #define SUPPORT_SYSFS 1
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. */
33 extern struct sysfs_ops brport_sysfs_ops;
36 #endif /* dp_sysfs.h */