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>
This commit is contained in:

committed by
Daniel Borkmann

parent
c23e014a4b
commit
5f07655b80
@@ -59,6 +59,7 @@ struct netdevsim {
|
||||
struct u64_stats_sync syncp;
|
||||
|
||||
struct device dev;
|
||||
u32 switch_id;
|
||||
|
||||
struct dentry *ddir;
|
||||
|
||||
|
Reference in New Issue
Block a user