aboutsummaryrefslogtreecommitdiff
path: root/include/net/devlink.h
diff options
context:
space:
mode:
authorGravatar Leon Romanovsky <leonro@nvidia.com> 2021-08-14 12:57:29 +0300
committerGravatar David S. Miller <davem@davemloft.net> 2021-08-14 13:59:10 +0100
commit11a861d767cdd87a34397821b0fd2095893b84b3 (patch)
tree76ec542202bd086114436850dd6e91a8cd165e96 /include/net/devlink.h
parentdevlink: Count struct devlink consumers (diff)
downloadlinux-11a861d767cdd87a34397821b0fd2095893b84b3.tar.gz
linux-11a861d767cdd87a34397821b0fd2095893b84b3.tar.bz2
linux-11a861d767cdd87a34397821b0fd2095893b84b3.zip
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/net/devlink.h')
-rw-r--r--include/net/devlink.h2
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;