OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] Virtual ethernet device (tunnel)
Re: [PATCH] Virtual ethernet device (tunnel) [message #12548 is a reply to message #12546] Wed, 02 May 2007 12:59 Go to previous messageGo to previous message
Patrick McHardy is currently offline  Patrick McHardy
Messages: 107
Registered: March 2006
Senior Member
jamal wrote:
> On Wed, 2007-02-05 at 14:34 +0200, Patrick McHardy wrote:
>
>
>>Thats a lot better than using sysfs, but I think it would be
>>preferrable to use rtnetlink instead of genetlink for network
>>configuration.
>
>
> or you can just hold rtnl while using genl.
> I do agree it would be easier to just use rtnetlink ...


The rtnl needs to be held in either case, but using a different
netlink family introduces races in message processing. For example
a simple:

ip link add dev veth0
ip route add 10.0.0.0/8 dev veth0

might fail because we have two different input queues and the routing
message might get processed before the link message.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Templates
Next Topic: vzctl create --root and vzyum and get_veid
Goto Forum:
  


Current Time: Mon Aug 04 13:17:57 GMT 2025

Total time taken to generate the page: 2.55855 seconds