Message ID | 4D53536B.2010505@redhat.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Xiaotian Feng <dfeng@redhat.com> Date: Thu, 10 Feb 2011 10:54:35 +0800 > Subject: [PATCH net-next v2] net: rename group sysfs entry to netdev_group > > commit a512b92 adds sysfs entry for net device group, but > before this commit, tun also uses group sysfs, so after this > commit checkin, kernel warns like this: > sysfs: cannot create duplicate filename '/devices/virtual/net/vnet0/group' > > Since tun has used this for years, rename sysfs under tun might > break existing userspace, so rename group sysfs entry for net device > group is a better choice. > > Signed-off-by: Xiaotian Feng <dfeng@redhat.com> Applied. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 2e4a393..5ceb257 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -330,7 +330,7 @@ static struct device_attribute net_class_attributes[] = { __ATTR(flags, S_IRUGO | S_IWUSR, show_flags, store_flags), __ATTR(tx_queue_len, S_IRUGO | S_IWUSR, show_tx_queue_len, store_tx_queue_len), - __ATTR(group, S_IRUGO | S_IWUSR, show_group, store_group), + __ATTR(netdev_group, S_IRUGO | S_IWUSR, show_group, store_group), {} };