Thread (2 messages) flat view 2 messages, 2 authors, 2012-09-19

Re: [PATCH net-next] net: dev: fix incorrect getting net device's name

From: David Miller <davem@davemloft.net>
Date: 2012-09-19 19:37:26

From: Gao feng <redacted>
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 <redacted>
Looks good, applied, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help