diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-07-17 20:53:19 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-07-18 16:10:33 +0300 |
commit | 5f07655b803eca4c215bac9aa61f4bf19f6ecd5e (patch) | |
tree | 4e794f76343c9b2843f6ec362aeefdd5431d335c /drivers/net/netdevsim/netdevsim.h | |
parent | c23e014a4ba1a9448cbbd74916377f23a7da2fc2 (diff) | |
download | linux-5f07655b803eca4c215bac9aa61f4bf19f6ecd5e.tar.xz |
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>
Diffstat (limited to 'drivers/net/netdevsim/netdevsim.h')
-rw-r--r-- | drivers/net/netdevsim/netdevsim.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/netdevsim/netdevsim.h b/drivers/net/netdevsim/netdevsim.h index 0aeabbe81cc6..e2f232325259 100644 --- a/drivers/net/netdevsim/netdevsim.h +++ b/drivers/net/netdevsim/netdevsim.h @@ -59,6 +59,7 @@ struct netdevsim { struct u64_stats_sync syncp; struct device dev; + u32 switch_id; struct dentry *ddir; |