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 <dsah...@gmail.com> CC: Xin Long <lucien....@gmail.com> Reported-by: Vlad Yasevich <vyase...@redhat.com> Signed-off-by: Nicolas Dichtel <nicolas.dich...@6wind.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