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);
};
static struct attribute_group bridge_group = {
- .name = SYSFS_BRIDGE_ATTR,
+ .name = SYSFS_BRIDGE_ATTR, /* "bridge" */
.attrs = bridge_attrs,
};
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",
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) {