[Devel] [RFC rh7] net: venet -- Cleanup ip address on ve exit
Cyrill Gorcunov
gorcunov at odin.com
Sat May 23 05:56:55 PDT 2015
On Fri, May 22, 2015 at 06:44:18PM +0300, Cyrill Gorcunov wrote:
> >
> > Is it posibale to unload the venet module? Is it ok with this patch?
>
> If venet module start using IP then no, until IP is release module will
> keep a reference via get-module (ie until VE get stopped). If only I'm
> not missing something obvious.
More precisely
veip_start
...
__module_get(THIS_MODULE)
veip_stop
...
module_put(THIS_MODULE)
so once VE is using venet the refs to module prevents from unloading
until ve get stopped.
Cyrill
More information about the Devel
mailing list