Thread (11 messages) 11 messages, 3 authors, 2017-12-03

Re: [Patch net-next] act_mirred: use tcfm_dev in tcf_mirred_get_dev()

From: Cong Wang <hidden>
Date: 2017-12-01 21:47:04

On Fri, Dec 1, 2017 at 9:56 AM, Jiri Pirko [off-list ref] 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;
                }
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help