[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171026082153.8042-1-nicolas.dichtel@6wind.com>
Date: Thu, 26 Oct 2017 10:21:53 +0200
From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, hannes@...essinduktion.org,
vyasevic@...hat.com, Nicolas Dichtel <nicolas.dichtel@...nd.com>,
David Ahern <dsahern@...il.com>,
Xin Long <lucien.xin@...il.com>
Subject: [PATCH net] Revert "rtnetlink: check DO_SETLINK_NOTIFY correctly in do_setlink"
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)
netdev_state_change(dev);
if (err < 0)
--
2.13.2
Powered by blists - more mailing lists