[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGCP4zM90OY=D76jok6TK_KYR60FF5B5EYUfxDerGsg_h1wC6g@mail.gmail.com>
Date: Fri, 16 Jun 2017 21:14:01 +0300
From: Serhey Popovych <serhe.popovych@...il.com>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 1/3] dev: Prevent creating network devices with negative ifindex
>> What do you think?
>
> Passing -1 is an error, it doesn't make sense to try and be
> helpful to buggy userland.
Here is commit I actually change/fix:
commit 9c7dafbfab15 ("net: Allow to create links with given ifindex")
In this change done the opposite: check for ifm->ifi_index moved to
register_netdevice() from rtnl_newlink().
Let me understand finally: why do I need to reverse and move check
for dev->ifindex from register_netdevice() to rtnl_newlink()? That
will partially revert commit I note above.
--
Thanks, Serhey
Powered by blists - more mailing lists