On 2/8/19 4:09 AM, Michal Kubecek wrote: > Not only that, other ip link subcommands also use ioctl for interface > lookup so that e.g. "ip link del dummy1:x" deletes dummy1 without any > complaint. > > But as I mentioned earlier in http://patchwork.ozlabs.org/patch/1037934/ > I'm not sure this behaviour is really desirable.
I sent a patch some time ago to convert ll_name_to_index to use an netlink message first and only fallback to if_nametoindex if it fails. That should fix the problem you mentioned