OSDN Git Service

netdevsim: add switch_id attribute
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 17 Jul 2018 17:53:19 +0000 (10:53 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 18 Jul 2018 13:10:33 +0000 (15:10 +0200)
commit5f07655b803eca4c215bac9aa61f4bf19f6ecd5e
tree4e794f76343c9b2843f6ec362aeefdd5431d335c
parentc23e014a4ba1a9448cbbd74916377f23a7da2fc2
netdevsim: add switch_id attribute

Grouping netdevsim devices into "ASICs" will soon be supported.
Add switch_id attribute to all netdevsims.  For now each netdevsim
will have its switch_id matching the device id.

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