]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1e5606185655a915e4df0555ba9a8c0cd04e63e
tree474fb3ca9b91add1722d0dd8e65f7b1301e210dd
parent734a876c39308e90669920498a6503091a5e9f87
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: 6cbd07ae6353 ("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