From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
To: Anton Aksola <aakso@iki.fi>, netdev@vger.kernel.org
Subject: Re: [PATCH] iproute2: build nsid-name cache only for commands that need it
Date: Thu, 15 Sep 2016 15:26:18 +0200 [thread overview]
Message-ID: <2ab25704-d8aa-1532-a07a-c1765b937d66@6wind.com> (raw)
In-Reply-To: <20160915082326.GA1635@toys.tundra.dog-lvm.novalocal>
Le 15/09/2016 à 10:23, Anton Aksola a écrit :
[snip]
> --- a/ip/ipnetns.c
> +++ b/ip/ipnetns.c
> @@ -775,8 +775,6 @@ static int netns_monitor(int argc, char **argv)
>
> int do_netns(int argc, char **argv)
> {
> - netns_map_init();
> -
> if (argc < 1)
> return netns_list(0, NULL);
>
> @@ -784,8 +782,10 @@ int do_netns(int argc, char **argv)
> (matches(*argv, "lst") == 0))
> return netns_list(argc-1, argv+1);
>
> - if ((matches(*argv, "list-id") == 0))
> + if ((matches(*argv, "list-id") == 0)) {
> + netns_map_init();
> return netns_list_id(argc-1, argv+1);
> + }
'ip netns' (ip netns list) also need it.
next prev parent reply other threads:[~2016-09-15 13:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-15 8:23 [PATCH] iproute2: build nsid-name cache only for commands that need it Anton Aksola
2016-09-15 13:26 ` Nicolas Dichtel [this message]
2016-09-16 6:27 ` Anton Aksola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2ab25704-d8aa-1532-a07a-c1765b937d66@6wind.com \
--to=nicolas.dichtel@6wind.com \
--cc=aakso@iki.fi \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox