[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADvbK_cbQ5LWYYV189xfo6R=SXpf76u=4CsVCssZeifhNYkCzA@mail.gmail.com>
Date: Thu, 26 Oct 2017 17:10:09 +0800
From: Xin Long <lucien.xin@...il.com>
To: Nicolas Dichtel <nicolas.dichtel@...nd.com>
Cc: davem <davem@...emloft.net>, network dev <netdev@...r.kernel.org>,
Hannes Frederic Sowa <hannes@...essinduktion.org>,
Vlad Yasevich <vyasevic@...hat.com>,
David Ahern <dsahern@...il.com>
Subject: Re: [PATCH net] Revert "rtnetlink: check DO_SETLINK_NOTIFY correctly
in do_setlink"
On Thu, Oct 26, 2017 at 4:21 PM, Nicolas Dichtel
<nicolas.dichtel@...nd.com> wrote:
> This reverts commit 64ff90cc2e6f42596d7a0c37e41dc95292bb63b1.
>
> The initial test was right. The goal is to advertised any modifications of
> any setting of a link. The test ensures that the user won't lose an update.
>
> CC: David Ahern <dsahern@...il.com>
> CC: Xin Long <lucien.xin@...il.com>
> Reported-by: Vlad Yasevich <vyasevic@...hat.com>
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@...nd.com>
> ---
> net/core/rtnetlink.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
> index 5ace48926b19..52689c399b6c 100644
> --- a/net/core/rtnetlink.c
> +++ b/net/core/rtnetlink.c
> @@ -2251,7 +2251,7 @@ static int do_setlink(const struct sk_buff *skb,
>
> errout:
> if (status & DO_SETLINK_MODIFIED) {
> - if ((status & DO_SETLINK_NOTIFY) == DO_SETLINK_NOTIFY)
> + if (status & DO_SETLINK_NOTIFY)
Just few questions about this ?
1. the check is meaningless here. As it would also return true.
2. why do you think it should be done only for the changes via netlink,
what about the changes via net-sysfs, dev_ioctl ?
3. how about the duplicated notifications issue ?
> netdev_state_change(dev);
>
> if (err < 0)
> --
> 2.13.2
>
Powered by blists - more mailing lists