From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH] Virtual ethernet device (tunnel) Date: Wed, 02 May 2007 14:59:05 +0200 Message-ID: <46388B19.70300@trash.net> References: <46386DFB.7090109@sw.ru> <46388562.9050305@trash.net> <1178110192.4074.55.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: Pavel Emelianov , David Miller , Ben Greear , "Eric W. Biederman" , Linux Netdev List , Linux Containers , Kirill Korotaev , Alexey Kuznetsov , devel@openvz.org, Stephen Hemminger To: hadi@cyberus.ca Return-path: Received: from stinky.trash.net ([213.144.137.162]:34752 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2993122AbXEBNAQ (ORCPT ); Wed, 2 May 2007 09:00:16 -0400 In-Reply-To: <1178110192.4074.55.camel@localhost> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org 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.