[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150129.142346.2067967163788035274.davem@davemloft.net>
Date: Thu, 29 Jan 2015 14:23:46 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: nicolas.dichtel@...nd.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next v2] rtnetlink: pass link_net to the newlink
handler
From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
Date: Tue, 27 Jan 2015 11:13:08 +0100
> When IFLA_LINK_NETNSID is used, the netdevice should be built in this link netns
> and moved at the end to another netns (pointed by the socket netns or
> IFLA_NET_NS_[PID|FD]).
>
> Existing user of the newlink handler will use the netns argument (src_net) to
> find a link netdevice or to check some other information into the link netns.
> For example, to find a netdevice, two information are required: an ifindex
> (usually from IFLA_LINK) and a netns (this link netns).
>
> Note: when using IFLA_LINK_NETNSID and IFLA_NET_NS_[PID|FD], a user may create a
> netdevice that stands in netnsX and with its link part in netnsY, by sending a
> rtnl message from netnsZ.
>
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@...nd.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists