projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add some comments to description to netdev functions.
[openvswitch]
/
datapath
/
brcompat.c
diff --git
a/datapath/brcompat.c
b/datapath/brcompat.c
index 2e437ccd9f8f6bbd47ddd0373ec2352cc57b6662..42479e821d4cf2ead9bd42b8668cbc38d465634e 100644
(file)
--- a/
datapath/brcompat.c
+++ b/
datapath/brcompat.c
@@
-1,3
+1,11
@@
+/*
+ * Copyright (c) 2009 Nicira Networks.
+ * Distributed under the terms of the GNU GPL version 2.
+ *
+ * Significant portions of this file may be copied from parts of the Linux
+ * kernel, by Linus Torvalds and others.
+ */
+
#include <linux/kernel.h>
#include <asm/uaccess.h>
#include <linux/completion.h>
#include <linux/kernel.h>
#include <asm/uaccess.h>
#include <linux/completion.h>
@@
-404,18
+412,14
@@
int brc_add_dp(struct datapath *dp)
{
if (!try_module_get(THIS_MODULE))
return -ENODEV;
{
if (!try_module_get(THIS_MODULE))
return -ENODEV;
-#ifdef SUPPORT_SYSFS
brc_sysfs_add_dp(dp);
brc_sysfs_add_dp(dp);
-#endif
return 0;
}
int brc_del_dp(struct datapath *dp)
{
return 0;
}
int brc_del_dp(struct datapath *dp)
{
-#ifdef SUPPORT_SYSFS
brc_sysfs_del_dp(dp);
brc_sysfs_del_dp(dp);
-#endif
module_put(THIS_MODULE);
return 0;
module_put(THIS_MODULE);
return 0;
@@
-450,10
+454,8
@@
__init brc_init(void)
dp_del_dp_hook = brc_del_dp;
/* Register hooks for interface adds and deletes */
dp_del_dp_hook = brc_del_dp;
/* Register hooks for interface adds and deletes */
-#ifdef SUPPORT_SYSFS
dp_add_if_hook = brc_sysfs_add_if;
dp_del_if_hook = brc_sysfs_del_if;
dp_add_if_hook = brc_sysfs_add_if;
dp_del_if_hook = brc_sysfs_del_if;
-#endif
/* Randomize the initial sequence number. This is not a security
* feature; it only helps avoid crossed wires between userspace and
/* Randomize the initial sequence number. This is not a security
* feature; it only helps avoid crossed wires between userspace and