net: Allow devices to specify a device specific sysfs group.
This isn't beautifully abstracted, but it is simple, simplifies uses and so far is only needed for the bonding driver. Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
0bd8d53656
commit
0c509a6c93
@@ -544,8 +544,11 @@ int netdev_register_kobject(struct net_device *net)
|
||||
dev_set_name(dev, "%s", net->name);
|
||||
|
||||
#ifdef CONFIG_SYSFS
|
||||
*groups++ = &netstat_group;
|
||||
/* Allow for a device specific group */
|
||||
if (*groups)
|
||||
groups++;
|
||||
|
||||
*groups++ = &netstat_group;
|
||||
#ifdef CONFIG_WIRELESS_EXT_SYSFS
|
||||
if (net->ieee80211_ptr)
|
||||
*groups++ = &wireless_group;
|
||||
|
Reference in New Issue
Block a user