netns: return RTM_NEWNSID instead of RTM_GETNSID on a get
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 11 May 2015 13:57:31 +0000 (15:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2015 22:53:25 +0000 (18:53 -0400)
commite3d8ecb70e16412b14fb11c1b68ecb533bd4ea64
treedac2ac91897e13820e331528fccbf43892cf424a
parent6938f8558167fd1d30233018976ebe310fa6f69b
netns: return RTM_NEWNSID instead of RTM_GETNSID on a get

Usually, RTM_NEWxxx is returned on a get (same as a dump).

Fixes: 0c7aecd4bde4 ("netns: add rtnl cmd to add and get peer netns ids")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net_namespace.c