Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Xiaotian Feng and committed by
David S. Miller
b6644cb7 27059746

+1 -1
+1 -1
net/core/net-sysfs.c
··· 330 330 __ATTR(flags, S_IRUGO | S_IWUSR, show_flags, store_flags), 331 331 __ATTR(tx_queue_len, S_IRUGO | S_IWUSR, show_tx_queue_len, 332 332 store_tx_queue_len), 333 - __ATTR(group, S_IRUGO | S_IWUSR, show_group, store_group), 333 + __ATTR(netdev_group, S_IRUGO | S_IWUSR, show_group, store_group), 334 334 {} 335 335 }; 336 336