Re: [PATCH net-next 7/9] devlink: allow registering parameters after the instance
From: Jakub Kicinski <kuba@kernel.org> Date: 2023-01-11 16:46:02
On Wed, 11 Jan 2023 10:32:13 +0100 Jiri Pirko wrote:
quoted
quoted
I'm confused. You want to register objects after instance register?
+1, I think it's an anti-pattern.
Could you elaborate a bit please?
Mixing registering sub-objects before and after the instance is a bit
of an anti-pattern. Easy to introduce bugs during reload and reset /
error recovery. I thought that's what you were saying as well.