From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH net-next 04/18] ipv6: Prepare to handle multiple netdev events Date: Sun, 7 Jan 2018 09:55:22 -0700 Message-ID: <764019bc-9a85-2213-d8ee-74af7f00c028@gmail.com> References: <20180107104518.31693-1-idosch@mellanox.com> <20180107104518.31693-5-idosch@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: davem@davemloft.net, roopa@cumulusnetworks.com, nicolas.dichtel@6wind.com, weiwan@google.com, kafai@fb.com, yoshfuji@linux-ipv6.org, mlxsw@mellanox.com To: Ido Schimmel , netdev@vger.kernel.org Return-path: Received: from mail-pl0-f45.google.com ([209.85.160.45]:36312 "EHLO mail-pl0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754177AbeAGQzY (ORCPT ); Sun, 7 Jan 2018 11:55:24 -0500 Received: by mail-pl0-f45.google.com with SMTP id b12so6254316plm.3 for ; Sun, 07 Jan 2018 08:55:24 -0800 (PST) In-Reply-To: <20180107104518.31693-5-idosch@mellanox.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 1/7/18 3:45 AM, Ido Schimmel wrote: > To make IPv6 more in line with IPv4 we need to be able to respond > differently to different netdev events. For example, when a netdev is > unregistered all the routes using it as their nexthop device should be > flushed, whereas when the netdev's carrier changes only the 'linkdown' > flag should be toggled. > > Currently, this is not possible, as the function that traverses the > routing tables is not aware of the triggering event. > > Propagate the triggering event down, so that it could be used in later > patches. > > Signed-off-by: Ido Schimmel > --- > include/net/ip6_route.h | 2 +- > net/ipv6/addrconf.c | 4 ++-- > net/ipv6/route.c | 37 +++++++++++++++++++++---------------- > 3 files changed, 24 insertions(+), 19 deletions(-) Acked-by: David Ahern