Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1941544imj; Sun, 10 Feb 2019 14:13:01 -0800 (PST) X-Google-Smtp-Source: AHgI3IaFamJr6fhzEHMBRbK4L47KIF2R7HBs72IZy8TW+oskv/SIgHNLvwrQC1GBZkEKQlVFH6yn X-Received: by 2002:a63:9a09:: with SMTP id o9mr29685871pge.94.1549836781743; Sun, 10 Feb 2019 14:13:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549836781; cv=none; d=google.com; s=arc-20160816; b=lpdIxyGS8ODJvkELF7uiR3locJ0mWLb/oZdxXIlfAgHzzoQwFET8m/Y0xQU0sTV09W h9jS39JtquXs2KEalE1PYVqYFaHO6NOqsbwHXWF71R48266U3tR5acnwyGVrezgZmPaY Vi6oC5TgEEFiSIB3LKsUa0mMqbvYCKevZl15RBDNAusdZlwuMUQ7pQpuKNPmfqWtdOL2 7VzdRnUN6qfOZhT84a4+REoj6m8FlmESAoEOoREmMQwbq17phONOOS4t2KynnekcgwND qNWYSyRg6yeUPabBds9kkZ7OfIC5htQAe5mJuERNjB5ABoq9qFcUFG3PlOtziCsjYAL4 hMyQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=tXVqB/VOZq86uvfy6dkXjVHR4xFAHuv/5YrZ26dfmZs=; b=UGj/nFwD9CpGP0SvOq9eUYHJFq9OFYaoPlLlJYDzp2DKTcSJtvQ5Ibzo3fBMX7/zOW LkDUTPx2UPE/0Rhj+PYKEnoaVQQU3T9e0c8+BbLtC6I6RKtQFfrqnRgC/EC77gHVfGjT wM5/wyojdwZ2Qaj5RIPRBWR9kqvae2JJJUBgZd5gxFeSkx96ZdIV8HHuIZAIU6Ukz97X MieJsFbFXExx3HlLfRZWMP2DtaMZD9GPPInIrz+95dI6xtLzp8/zfGMi409IFkVhxPKp ncAC1bsP+jFdqTwthmUpqBZyaLJnCbhzbhm/CAU1vRRhVQUHWJrdDS/on+csAuWtgLKY qYbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=Z4kmjHsh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y35si379195pgl.569.2019.02.10.14.12.44; Sun, 10 Feb 2019 14:13:01 -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; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=Z4kmjHsh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726610AbfBJWMi (ORCPT + 99 others); Sun, 10 Feb 2019 17:12:38 -0500 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:38058 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbfBJWMh (ORCPT ); Sun, 10 Feb 2019 17:12:37 -0500 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 069C7806A8; Mon, 11 Feb 2019 11:12:34 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1549836754; bh=tXVqB/VOZq86uvfy6dkXjVHR4xFAHuv/5YrZ26dfmZs=; h=From:To:Cc:Subject:Date; b=Z4kmjHshuip3OTrlYgLhnf1F5IcC1aHSbBGJCw8uWeBxnIUBmFeS0hwRPHNFGgH1w VQYdFZSiwA9C0cwtdBPrfPbQHcIsCR8TEVtaCJYekrl7IJmXePjsRG7UYpiK754qxd x9qFjA7Uf1eaPlMv7Hiwia147nDq11q5qikeIr2IC2K32+OKPyh+nUisZv89L1QYmC F9DA87yh00SlZcO1ci+siYrYv7iDL4wssIOtiFJi0fVqXaGhMnGGl9YdvFK2EhcvE/ lzbgWrRGxyBenh466w4W8aFNHNMby1r5sC8+Tqw0DPE6uAfRh5g0GR9i31haYFLtgZ vuK7nB4BmPomg== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Mon, 11 Feb 2019 11:12:24 +1300 Received: from callums-dl.ws.atlnz.lc (callums-dl.ws.atlnz.lc [10.33.22.12]) by smtp (Postfix) with ESMTP id D2E6B13EECA; Mon, 11 Feb 2019 11:12:29 +1300 (NZDT) Received: by callums-dl.ws.atlnz.lc (Postfix, from userid 1764) id C65763A09E6; Mon, 11 Feb 2019 11:12:23 +1300 (NZDT) From: Callum Sinclair To: davem@davemloft.net, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, nikolay@cumulusnetworks.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Callum Sinclair Subject: [PATCH net-next] ipmr: ip6mr: Create new sockopt to clear mfc cache or vifs Date: Mon, 11 Feb 2019 11:12:21 +1300 Message-Id: <20190210221222.28215-1-callum.sinclair@alliedtelesis.co.nz> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable x-atlnz-ls: pat Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Using the flags MRT_FLUSH_ENTRIES and MRT_FLUSH_VIFS, all multicast entries can be cleared, all multicast interfaces can be closed or both can be cleared using one sockopt call. Patch Set 2: - Created new flags to flush static entries or vifs Callum Sinclair (1): ipmr: ip6mr: Create new sockopt to clear mfc cache or vifs include/uapi/linux/mroute.h | 9 ++++- include/uapi/linux/mroute6.h | 9 ++++- net/ipv4/ipmr.c | 71 ++++++++++++++++++++------------- net/ipv6/ip6mr.c | 76 +++++++++++++++++++++++------------- 4 files changed, 108 insertions(+), 57 deletions(-) --=20 2.20.1