datapath: Improve comments.
authorBen Pfaff <blp@nicira.com>
Fri, 14 Aug 2009 20:41:44 +0000 (13:41 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 18 Aug 2009 19:36:46 +0000 (12:36 -0700)
datapath/datapath.c
datapath/dp_sysfs_dp.c

index bf8043b6054fffa428fb827321325f16cdfa6f87..f506324c1d9282bb2128e96fca2f20526cb1e70d 100644 (file)
@@ -223,8 +223,8 @@ static int create_dp(int dp_idx, const char __user *devnamep)
        init_waitqueue_head(&dp->waitqueue);
 
        /* Initialize kobject for bridge.  This will be added as
-        * /sys/class/net/<devname>/bridge later, if sysfs is enabled. */
-       kobject_set_name(&dp->ifobj, SYSFS_BRIDGE_PORT_SUBDIR); /* "bridge" */
+        * /sys/class/net/<devname>/brif later, if sysfs is enabled. */
+       kobject_set_name(&dp->ifobj, SYSFS_BRIDGE_PORT_SUBDIR); /* "brif" */
        dp->ifobj.kset = NULL;
        dp->ifobj.parent = NULL;
        kobject_init(&dp->ifobj, &dp_ktype);
index 9699a0760e4441ecd35f0e4da41ed5e4ef449215..503f22e96983425735fdbb6492588e0bd6c64936 100644 (file)
@@ -460,7 +460,7 @@ static struct attribute *bridge_attrs[] = {
 };
 
 static struct attribute_group bridge_group = {
-       .name = SYSFS_BRIDGE_ATTR,
+       .name = SYSFS_BRIDGE_ATTR, /* "bridge" */
        .attrs = bridge_attrs,
 };
 
@@ -479,6 +479,7 @@ int dp_sysfs_add_dp(struct datapath *dp)
        struct kobject *kobj = to_kobj(dp->ports[ODPP_LOCAL]->dev);
        int err;
 
+       /* Create /sys/class/net/<devname>/bridge directory. */
        err = sysfs_create_group(kobj, &bridge_group);
        if (err) {
                pr_info("%s: can't create group %s/%s\n",
@@ -486,7 +487,7 @@ int dp_sysfs_add_dp(struct datapath *dp)
                goto out1;
        }
 
-       /* Create /sys/class/net/<devname>/bridge directory. */
+       /* Create /sys/class/net/<devname>/brif directory. */
        dp->ifobj.parent = kobj;
        err = kobject_add(&dp->ifobj);
        if (err) {