ipnetns: fix misleading comment about 'ip monitor nsid'

'ip monitor nsid' doesn't call print_nsid().

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
This commit is contained in:
Guillaume Nault 2019-11-08 18:00:14 +01:00 committed by David Ahern
parent f19966efee
commit df6da60bcb
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ int print_nsid(struct nlmsghdr *n, void *arg)
netns_map_del(c); netns_map_del(c);
} }
/* During 'ip monitor nsid', no chance to have new nsid in cache. */ /* nsid might not be in cache */
if (c == NULL && n->nlmsg_type == RTM_NEWNSID) if (c == NULL && n->nlmsg_type == RTM_NEWNSID)
if (netns_get_name(nsid, name) == 0) { if (netns_get_name(nsid, name) == 0) {
print_string(PRINT_ANY, "name", print_string(PRINT_ANY, "name",