]> git.baikalelectronics.ru Git - kernel.git/commit
netns: notify netns id events
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Tue, 7 Apr 2015 09:51:53 +0000 (11:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Apr 2015 21:29:41 +0000 (17:29 -0400)
commit8dfb5c59ea68d07541034010bdfa0baddabc4b45
treed3238d41a1c5aa27c4b53e476d9892c4dcc99e23
parentaaea6f7dc77ab3b869bde7c90bd84169f3ad3d4e
netns: notify netns id events

With this patch, netns ids that are created and deleted are advertised into the
group RTNLGRP_NSID.

Because callers of rtnl_net_notifyid() already know the id of the peer, there is
no need to call __peernet2id() in rtnl_net_fill().

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/rtnetlink.h
net/core/net_namespace.c