X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fbrcompat.c;h=42479e821d4cf2ead9bd42b8668cbc38d465634e;hb=887fd0ba6422374c1529718cbd6810114e95e898;hp=2e437ccd9f8f6bbd47ddd0373ec2352cc57b6662;hpb=064af42167bf4fc9aaea2702d80ce08074b889c0;p=openvswitch diff --git a/datapath/brcompat.c b/datapath/brcompat.c index 2e437ccd..42479e82 100644 --- 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 #include #include @@ -404,18 +412,14 @@ int brc_add_dp(struct datapath *dp) { if (!try_module_get(THIS_MODULE)) return -ENODEV; -#ifdef SUPPORT_SYSFS brc_sysfs_add_dp(dp); -#endif return 0; } int brc_del_dp(struct datapath *dp) { -#ifdef SUPPORT_SYSFS brc_sysfs_del_dp(dp); -#endif 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 */ -#ifdef SUPPORT_SYSFS 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