[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120919.153724.1218581037036054616.davem@davemloft.net>
Date: Wed, 19 Sep 2012 15:37:24 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: gaofeng@...fujitsu.com
Cc: ebiederm@...ssion.com, eric.dumazet@...il.com,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next] net: dev: fix incorrect getting net device's
name
From: Gao feng <gaofeng@...fujitsu.com>
Date: Fri, 14 Sep 2012 14:58:27 +0800
> When moving a nic from net namespace A to net namespace B,
> in dev_change_net_namesapce,we call __dev_get_by_name to
> decide if the netns B has the device has the same name.
>
> if the netns B already has the same named device,we call
> dev_get_valid_name to try to get a valid name for this nic in
> the netns B,but net_device->nd_net still point to netns A now.
>
> this patch fix it.
>
> Signed-off-by: Gao feng <gaofeng@...fujitsu.com>
Looks good, 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