Received: by 10.213.65.68 with SMTP id h4csp248774imn; Fri, 23 Mar 2018 03:54:36 -0700 (PDT) X-Google-Smtp-Source: AG47ELvhVUjjLLbdGutTLv4GIwmljcMFuzrJ8fGGoHti2wyQ0Cn4w2qtw2Io+/M5AeJNr22s/6Kn X-Received: by 10.99.96.84 with SMTP id u81mr20688184pgb.231.1521802476702; Fri, 23 Mar 2018 03:54:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521802476; cv=none; d=google.com; s=arc-20160816; b=en/EwITxW3mInwVS8cvt56h9fli9mIIKX02QHkMdlAE7CEzYljC4Q0UuyTR2BZp96b T+dHM9OcZSVGJVvmbfh5kijgq+Bw8+xq6ZYJxS40N/65GfiZR5K+N5Q0Krovex0pHMGz ZFIezM/pa+NviwQPE5Y8M0/e3KlghVhPNePS8qVBUKt1OlmQXxEWrw7ECgG0gdNQa+0N cexrn3bzUXJZ9NwU0tpKmaMzQkl5NAsWvvi9Ofi4CSKU334PSyV0BM7yd/pTkG5EIAE2 xX3pKwHqFxZMmxwS/gmXd+GSNpEfK+7XR98cqE7ZkuRSMQtKL93lFyV3IA1qPrSSkp+9 2hVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=eg/amKB/TFtxMiyX40QFxiyDbJwY41kaG+UFNxUbOp8=; b=j1GC9t14GPr1D6asxcPsHg8nA8GxpzMNnGdKgIj0XoNA50ACTKkr9rbtqEGgdH/6D4 MystWgGKvLXec9DF1gSCMoDhjt7Nqi1RLphx4V9218Hda024bCS1xBMlN3p351qYAcrh cJDZXFezb6MV1mY7I+gAR3gqjxvX4fY3ZNtgEliFl1a7v+/1zFFl2ke5/ULdr7MRNYCu JlMiMFoxKL/mBXCvuN4pcRaVKw5SQFbzRuiRlrz8BtwnawXGBVbqLTFJiIPPDdLOwu1r bs8DySmLL0dC9Bu8a/z/xSUM3WiUf/NjeO4IsZ+NrseCaclS+QF4U4hyhzPc3IS7jrIA jbRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10si1418822pge.433.2018.03.23.03.54.21; Fri, 23 Mar 2018 03:54:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755746AbeCWKxd (ORCPT + 99 others); Fri, 23 Mar 2018 06:53:33 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44966 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755920AbeCWKNq (ORCPT ); Fri, 23 Mar 2018 06:13:46 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5C35B1216; Fri, 23 Mar 2018 10:13:45 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Ahern , Hannes Frederic Sowa , "David S. Miller" , Sasha Levin Subject: [PATCH 4.4 17/97] net: ipv6: send unsolicited NA on admin up Date: Fri, 23 Mar 2018 10:54:04 +0100 Message-Id: <20180323094158.453909558@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323094157.535925724@linuxfoundation.org> References: <20180323094157.535925724@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Ahern [ Upstream commit 4a6e3c5def13c91adf2acc613837001f09af3baa ] ndisc_notify is the ipv6 equivalent to arp_notify. When arp_notify is set to 1, gratuitous arp requests are sent when the device is brought up. The same is expected when ndisc_notify is set to 1 (per ndisc_notify in Documentation/networking/ip-sysctl.txt). The NA is not sent on NETDEV_UP event; add it. Fixes: 5cb04436eef6 ("ipv6: add knob to send unsolicited ND on link-layer address change") Signed-off-by: David Ahern Acked-by: Hannes Frederic Sowa Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- net/ipv6/ndisc.c | 2 ++ 1 file changed, 2 insertions(+) --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -1686,6 +1686,8 @@ static int ndisc_netdev_event(struct not case NETDEV_CHANGEADDR: neigh_changeaddr(&nd_tbl, dev); fib6_run_gc(0, net, false); + /* fallthrough */ + case NETDEV_UP: idev = in6_dev_get(dev); if (!idev) break;