netns: fix NLM_F_ECHO mechanism for RTM_NEWNSID
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 9 Oct 2019 09:19:10 +0000 (11:19 +0200)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 10 Oct 2019 03:58:05 +0000 (20:58 -0700)
commit993e4c929a073595d22c85f59082f0c387e31c21
tree474fb3ca9b91add1722d0dd8e65f7b1301e210dd
parente0ae2c578d3909e60e9448207f5d83f785f1129f
netns: fix NLM_F_ECHO mechanism for RTM_NEWNSID

The flag NLM_F_ECHO aims to reply to the user the message notified to all
listeners.
It was not the case with the command RTM_NEWNSID, let's fix this.

Fixes: 0c7aecd4bde4 ("netns: add rtnl cmd to add and get peer netns ids")
Reported-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Guillaume Nault <gnault@redhat.com>
Tested-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
net/core/net_namespace.c