Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp875114imp; Thu, 21 Feb 2019 13:06:35 -0800 (PST) X-Google-Smtp-Source: AHgI3IakTigTcJ5o0WQi75edXlEG7fD6ZfIYgRB7TPp8QsOKVF2CFJtDriW0YuNsuasWB5+P4mDT X-Received: by 2002:a17:902:74cb:: with SMTP id f11mr576554plt.180.1550783194963; Thu, 21 Feb 2019 13:06:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550783194; cv=none; d=google.com; s=arc-20160816; b=YhQBcCCudH7TiIkXEF8oAU5+kH5HTxog1W25FpuDVuPAzMhSdhWHIrW2Mf5hr+cz69 cIhygf27oxU5iHnMS8p6yvb0F1ZUsl64z8Sk/TIVTut87xKtL0wxkZSUBNrlXXfDjUCu eRTiuTuh4OOmN0zUiX4zSokr436lhmM1+JE55e0QNOt2B0bLuZewcAwt9qy6588mWFud HQRH9lOAkL60Vx9fRAnS2jLhZdU1dHOpQbfeXgnV4sqjp0YrC4ToHhUwXCyslLar4dOM YuiCrfTcPDvJKGTYFKCJ2bu8+lu1k1say9zNoiyHNpZ9rXqN+G8usdYif3MGxhkrTCc5 K+uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=0tZ+Lc6RxMd/d0X8nY9shxDT+Bzt8kE4TOuUb/qprOk=; b=hXNJTKawP3wGdcmv4kmB4lIjbEvNZ3bhUQ7VpJIU84oCvRZWWTzNzE7wDE/C1Y6+qn FG76kGANlHmzGZ4sRpfEX7qht9JdMKT1wTOS8/jdWSD12V2LZz5oVzQRX7Hxx+4JmhEi AuL/WBfiBwmUGhK2apAUfTUeNOL6JcnLuIsoZtcmqKm7gLHwmqo+r+bQr6JXq5oGctWV JDO8p17P9WnOD73tUmKP7urT4uu+ulnb5bieWDay+ifj6/hwiQieLWH06AayS44w//5H iPNyk62iqhMMk42rxFuSgldGiZmjGrEbJtuAkV8J6o51rsOaJulDgFyCPKUMiSs6vqx2 GcZA== 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 19si21811369pgq.215.2019.02.21.13.06.19; Thu, 21 Feb 2019 13:06:34 -0800 (PST) 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 S1726661AbfBUVFa (ORCPT + 99 others); Thu, 21 Feb 2019 16:05:30 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:42990 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbfBUVF3 (ORCPT ); Thu, 21 Feb 2019 16:05:29 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 04F30145D4418; Thu, 21 Feb 2019 13:05:28 -0800 (PST) Date: Thu, 21 Feb 2019 13:05:28 -0800 (PST) Message-Id: <20190221.130528.1962020421176856619.davem@davemloft.net> To: callum.sinclair@alliedtelesis.co.nz Cc: kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, nikolay@cumulusnetworks.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, nicolas.dichtel@6wind.com Subject: Re: [PATCH net-next v6] ipmr: ip6mr: Create new sockopt to clear mfc cache or vifs From: David Miller In-Reply-To: <20190217210752.20914-1-callum.sinclair@alliedtelesis.co.nz> References: <20190217210752.20914-1-callum.sinclair@alliedtelesis.co.nz> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 21 Feb 2019 13:05:29 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Callum Sinclair Date: Mon, 18 Feb 2019 10:07:51 +1300 > Created a way to clear the multicast forwarding cache on a socket > without having to either remove the entries manually using the delete > entry socket option or destroy and recreate the multicast socket. > > Calling the socket option MRT_FLUSH will allow any combination of the > four flag options to be cleared. > > MRT_FLUSH_MFC will clear all non static mfc entries and clear the unresolved cache > MRT_FLUSH_MFC_STATIC will clear all static mfc entries > MRT_FLUSH_VIFS will clear all non static interfaces > MRT_FLUSH_VIFS_STATIC will clear all static interfaces. Applied.