netdevsim: add shared netdevsim devices
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 17 Jul 2018 17:53:20 +0000 (10:53 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 18 Jul 2018 13:10:33 +0000 (15:10 +0200)
commiteeeaaf185eca5790529fa184c89452ead7c8c859
treeed321f963fbd23779853469f1403c9bee58f27e1
parent5f07655b803eca4c215bac9aa61f4bf19f6ecd5e
netdevsim: add shared netdevsim devices

Factor out sharable netdevsim sub-object and use IFLA_LINK to link
netdevsims together at creation time.  Sharable object will have
its own DebugFS directory.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/net/netdevsim/netdev.c
drivers/net/netdevsim/netdevsim.h