Re: [PATCH RFC net-next 4/6] net: Do not intialize kobject for lightweight netdevs

2017-05-08 Thread Florian Fainelli
On 05/06/2017 09:07 AM, David Ahern wrote: > Lightweight netdevices are not added to sysfs; bypass kobject > initialization. I was wondering if we actually needed a flag to tell: this is a lightweight device, but still let it show up in /sys. All use cases that I have in mind (getting the physical

[PATCH RFC net-next 4/6] net: Do not intialize kobject for lightweight netdevs

2017-05-06 Thread David Ahern
Lightweight netdevices are not added to sysfs; bypass kobject initialization. Signed-off-by: David Ahern --- include/linux/netdevice.h | 3 +++ net/core/dev.c| 9 ++--- net/core/net-sysfs.c | 14 +++--- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git