While trying to get ipv6 to work as a module with the new module
reference code, I notice that ipv6 is missing the kmem_cache_destroy()
calls that the init functions created.
Another problem with ipv6 is that it creates sockets in the init
routine, so there are reference to the module which will prevent it
from being unloaded. I tried adding a module_put for every
socket created in the init routines, but ran into a problem with
inet6_exit() calling sock_unregister(PF_INET6) as the very first thing.
This caused a problem when the cleanup routines were called and
the did a sock_release().
Any ideas on how to fix this so ipv6 can be a module?
init routines creating sockets makes things difficult.
I've attached a patch to 2.5.68 to add the missing kmem_cache_destroy
BTW, how does one get on the netdev mailing list?
Daniel McNeil <daniel@xxxxxxxx>
Description: Text Data