On Thu, 12 Nov 2020 at 00:57, Jakub Kicinski <k...@kernel.org> wrote: > > On Thu, 12 Nov 2020 11:10:21 +1030 Joel Stanley wrote: > > If a user unbinds and re-binds a ncsi aware driver, the kernel will > > attempt to register the netlink interface at runtime. The structure is > > marked __ro_after_init so this fails at this point. > > netlink family should be registered at module init and unregistered at > unload. That's a better fix IMO.
I don't follow, isn't that what is implemented already? Perhaps I'm getting confused because the systems that use this code build the drivers in. The bug I'm seeing is when we unbind and re-bind the driver without any module loading or unloading.