]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ipnetns: fix misleading comment about 'ip monitor nsid'
authorGuillaume Nault <gnault@redhat.com>
Fri, 8 Nov 2019 17:00:14 +0000 (18:00 +0100)
committerDavid Ahern <dsahern@gmail.com>
Sat, 9 Nov 2019 01:33:02 +0000 (01:33 +0000)
'ip monitor nsid' doesn't call print_nsid().

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/ipnetns.c

index 06a773e43b7dffc3843c7595b60d52c74694dc3c..5ab99a680faf859ae949d6ae1cd00e865d8e0cd2 100644 (file)
@@ -340,7 +340,7 @@ int print_nsid(struct nlmsghdr *n, void *arg)
                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 (netns_get_name(nsid, name) == 0) {
                        print_string(PRINT_ANY, "name",