diff options
author | Leon Romanovsky <leonro@nvidia.com> | 2021-08-14 12:57:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-14 15:59:10 +0300 |
commit | 11a861d767cdd87a34397821b0fd2095893b84b3 (patch) | |
tree | 76ec542202bd086114436850dd6e91a8cd165e96 /include | |
parent | 437ebfd90a2567aab19dce47bafc81ebd8a63324 (diff) | |
download | linux-11a861d767cdd87a34397821b0fd2095893b84b3.tar.xz |
devlink: Use xarray to store devlink instances
We can use xarray instead of linearly organized linked lists for the
devlink instances. This will let us revise the locking scheme in favour
of internal xarray locking that protects database.
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/devlink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h index 4c60d61d92da..154cf0dbca37 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -32,7 +32,7 @@ struct devlink_dev_stats { struct devlink_ops; struct devlink { - struct list_head list; + u32 index; struct list_head port_list; struct list_head rate_list; struct list_head sb_list; |