On Fri, Dec 1, 2017 at 9:56 AM, Jiri Pirko <j...@resnulli.us> wrote:
>
> Isn't this here so user may specify a ifindex of netdev which is not yet
> present on the system (not sure how much sense that would make though...)

How is this even possible? If an ifindex is not present, we return ENODEV:

        if (parm->ifindex) {
                dev = __dev_get_by_index(net, parm->ifindex);
                if (dev == NULL) {
                        if (exists)
                                tcf_idr_release(*a, bind);
                        return -ENODEV;
                }

Reply via email to