devlink: allow registering parameters after the instance
authorJakub Kicinski <kuba@kernel.org>
Fri, 6 Jan 2023 06:34:00 +0000 (22:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Jan 2023 12:56:19 +0000 (12:56 +0000)
commit1d18bb1a4ddde676de948c13bca04b23cebd028b
tree0ad1e54577660c9de3d086bbc050b1a79cab4df6
parent6ef8f7da92750c3c25755fac39b561fff2d47378
devlink: allow registering parameters after the instance

It's most natural to register the instance first and then its
subobjects. Now that we can use the instance lock to protect
the atomicity of all init - it should also be safe.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/devlink/leftover.c