OpenVZ Forum


Home » Mailing lists » Devel » Re: [PATCH 1/12] L2 network namespace (v3): current network namespace operations
Re: [PATCH 1/12] L2 network namespace (v3): current network namespace operations [message #17236] Wed, 17 January 2007 20:16 Go to next message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
Dmitry Mishin <dim@openvz.org> writes:

> Added functions and macros required to operate with network namespaces.
> They are required in order to switch network namespace for incoming packets and
> to not extend current network interface by additional network namespace argue.

Is exec_net only used in interrupt context?
Or how do you ensure a sleeping function does not get called and the
kernel process comes back on another cpu?

Eric
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Re: [PATCH 1/12] L2 network namespace (v3): current network namespace operations [message #17275 is a reply to message #17236] Thu, 18 January 2007 10:56 Go to previous messageGo to next message
Mishin Dmitry is currently offline  Mishin Dmitry
Messages: 112
Registered: February 2006
Senior Member
On Wednesday 17 January 2007 23:16, Eric W. Biederman wrote:
> Dmitry Mishin <dim@openvz.org> writes:
> 
> > Added functions and macros required to operate with network namespaces.
> > They are required in order to switch network namespace for incoming packets and
> > to not extend current network interface by additional network namespace argue.
> 
> Is exec_net only used in interrupt context?
I tried to do so.

> Or how do you ensure a sleeping function does not get called and the
> kernel process comes back on another cpu?
Seems that I forgot to remove it's usage at least in one place - in
clone_net_ns(). If you caught more, please, let me know. 

-- 
Thanks,
Dmitry.
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Re: [PATCH 1/12] L2 network namespace (v3): current network namespace operations [message #17331 is a reply to message #17275] Thu, 25 January 2007 07:58 Go to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
Dmitry Mishin <dim@openvz.org> writes:

> On Wednesday 17 January 2007 23:16, Eric W. Biederman wrote:
>> Dmitry Mishin <dim@openvz.org> writes:
>> 
>> > Added functions and macros required to operate with network namespaces.
>> > They are required in order to switch network namespace for incoming packets
> and
>> > to not extend current network interface by additional network namespace
> argue.
>> 
>> Is exec_net only used in interrupt context?
> I tried to do so.
>
>> Or how do you ensure a sleeping function does not get called and the
>> kernel process comes back on another cpu?
> Seems that I forgot to remove it's usage at least in one place - in
> clone_net_ns(). If you caught more, please, let me know. 

Hmm.  veth seems to be using it around unregister_netdevice.

Eric
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Previous Topic: [PATH][RFC] mm: Move common segments checks to separate function
Next Topic: Re: [PATCH RFC 2/31] net: Implement a place holder network namespace
Goto Forum:
  


Current Time: Tue Jul 29 18:40:35 GMT 2025

Total time taken to generate the page: 0.13004 seconds