From: Ben Pfaff Date: Fri, 14 Aug 2009 20:41:44 +0000 (-0700) Subject: datapath: Improve comments. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0c32774c9ae342d1681c1fd637cd67c1ce368e6;p=openvswitch datapath: Improve comments. --- diff --git a/datapath/datapath.c b/datapath/datapath.c index bf8043b6..f506324c 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -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//bridge later, if sysfs is enabled. */ - kobject_set_name(&dp->ifobj, SYSFS_BRIDGE_PORT_SUBDIR); /* "bridge" */ + * /sys/class/net//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); diff --git a/datapath/dp_sysfs_dp.c b/datapath/dp_sysfs_dp.c index 9699a076..503f22e9 100644 --- a/datapath/dp_sysfs_dp.c +++ b/datapath/dp_sysfs_dp.c @@ -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//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//bridge directory. */ + /* Create /sys/class/net//brif directory. */ dp->ifobj.parent = kobj; err = kobject_add(&dp->ifobj); if (err) {