Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp9500imc; Fri, 8 Feb 2019 13:41:15 -0800 (PST) X-Google-Smtp-Source: AHgI3IYsyfoh6He8lmEZx96vHLyvPaQjUKza55WJEhDqY/yWa0dVLCUROtSiLUhaq9+yVfmYtU9u X-Received: by 2002:a63:d413:: with SMTP id a19mr12501658pgh.199.1549662075136; Fri, 08 Feb 2019 13:41:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549662075; cv=none; d=google.com; s=arc-20160816; b=S1PX0kPGNZeaxHhEH9Q6HB18GW2qd4d5O/fhkbICppX8zYZAApXa8ymJOrVkwUreay PMJslCRXBLiKReax76TfKVs0uq0gh0pvfUflaT+0YLBBrhazTleGOk0ku23LpEonkncq Jce6DYv504tJLco3gtiROAfTV/KimrobmMnJXgYWbTjYjpakRLHlKumoU0PAqrKT/Vt8 aPw8zPgWwetHTAluATo4aSgjOP1z7Y6MRcmmyt3hhKwzpdxDrBVQbzYlroSYuefk8T9j mGdqqeuv077IEYBOaK58dsH0MjyMhWW4jMc+l3EONLoARfk5acgMoIgZ+VUkHps6l+wi elIw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=JtYsIJMBQi0vtP7DpovmthczfVtlb0mp9thjyJS3IU8=; b=WV/rza/Si5sZnwOp7M071X1ARFM8mYMjmbFg+qUpYqVJZYJTOhO9dfAUgfBcxqiY7/ nq4o3HMZr/ue652yOa38vbaGQZCqup2W6pGZVbwNhRtZ7m5XU5m+IiuYk4u6cf56QKfy acHvcymDiLHonDGeMvAoIGSoG5UDJ9yJ2yn4z1EzBQvbkhU553/fpOJxwjOwpAXA1Cjf VZn7ooUMhLtMR/aqldPqjLytyXiwzOhWrE8BS/iy04Ua6tiHsOtIEPsrjPsChP25W7X+ XiE8tXRsYF/duZw8BSfE+uhANQsPY/4mzl1ab/57qfxzPQvWcf5pGda1JhzRuLGdXGSS 9b/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cumulusnetworks.com header.s=google header.b="BSp9/nVF"; 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=cumulusnetworks.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3si3126445plk.328.2019.02.08.13.40.58; Fri, 08 Feb 2019 13:41:15 -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=@cumulusnetworks.com header.s=google header.b="BSp9/nVF"; 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=cumulusnetworks.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727398AbfBHVkk (ORCPT + 99 others); Fri, 8 Feb 2019 16:40:40 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:33231 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726791AbfBHVkk (ORCPT ); Fri, 8 Feb 2019 16:40:40 -0500 Received: by mail-wm1-f68.google.com with SMTP id h22so7897155wmb.0 for ; Fri, 08 Feb 2019 13:40:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cumulusnetworks.com; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=JtYsIJMBQi0vtP7DpovmthczfVtlb0mp9thjyJS3IU8=; b=BSp9/nVFDZQm/FJYXWLkjEHZA1U1CdQwjdKWyCRlt92UXgwAlpzzyMPwArrE2nW0ef GYMIQpIf0FAvnW3UOy/EwY98ViqUHwuo+hRq3kKjyvhWo497KwzliWpn9wRTeGSFC/el NxYjugSRZDUd2WINXf8H93PAvzAD68QqbtrhQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JtYsIJMBQi0vtP7DpovmthczfVtlb0mp9thjyJS3IU8=; b=EYxco+CFHepFLLjg2UF2W1If4mmA+wCtxX63jMNfA0+EtXq3wBM08kHVuWOtc4B+7d E3PfVF2oDIG+9zkC+SWS++45Y2IdEf2YZbriqd9738Bn1nh/TOPemjqPxzIffKEDrLc+ WlKVVSQIqFMGiS+C6UA+I5C+AZjkMMqky9sOoxeezZTIBjwVoHBhIDTw70OttdNEXntg SP4qZjLv0vjSD/kDuUJhEHVCHjtPy2FyKpsViDv4kTY+QLf01jR3ReUrpEr5XVnc19kL Rb4UKrwGAMiqq5+7mpIyA/u13r4O/E5JMW0jgkpCAm1fJ1tdVJLzJAf8bLVl2/SyOMaV rPfg== X-Gm-Message-State: AHQUAuYStKmUrIOFpUfAgWG+BuJRdEQBeB7icH5Rgl9o8+OA4IfiZ8rI 5aelGvB9hsRUSnQAM10pSgvUS1xxnIc6yQ== X-Received: by 2002:adf:deca:: with SMTP id i10mr4243579wrn.312.1549662038024; Fri, 08 Feb 2019 13:40:38 -0800 (PST) Received: from [192.168.0.107] (79-100-158-105.ip.btc-net.bg. [79.100.158.105]) by smtp.gmail.com with ESMTPSA id v6sm6297728wrd.88.2019.02.08.13.40.36 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Fri, 08 Feb 2019 13:40:37 -0800 (PST) Subject: Re: [PATCH net-next] ipmr: ip6mr: Create new sockopt to clear mfc cache or vifs To: nicolas.dichtel@6wind.com, Callum Sinclair , davem@davemloft.net, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190208041103.31299-1-callum.sinclair@alliedtelesis.co.nz> <20190208041103.31299-2-callum.sinclair@alliedtelesis.co.nz> <5597e8bc-c23e-1f59-0442-260a7b4ca83d@cumulusnetworks.com> <31a5155c-ce6e-4c0f-61c0-35a5472549aa@6wind.com> From: Nikolay Aleksandrov Message-ID: <31565295-16d2-89b5-0e35-8852c49345ec@cumulusnetworks.com> Date: Fri, 8 Feb 2019 23:40:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <31a5155c-ce6e-4c0f-61c0-35a5472549aa@6wind.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/02/2019 17:08, Nicolas Dichtel wrote: > Le 08/02/2019 à 15:43, Nikolay Aleksandrov a écrit : >> On 08/02/2019 16:18, Nicolas Dichtel wrote: >>> Le 08/02/2019 à 05:11, Callum Sinclair a écrit : >>>> Currently the only way to clear the mfc cache was to delete the entries >>> mfc stands for 'multicast forwarding cache', so 'mfc cache' is a bit strange. >>> >>>> one by one using the MRT_DEL_MFC socket option or to destroy and >>>> recreate the socket. >>> Note that if entries were added with MRT_ADD_MFC_PROXY, they will survive to the >>> socket destruction. This is not the case with your new cmd. Is it intended? >> >> I think you're referring to MFC_STATIC entries (sk != mroute_sk). It >> doesn't matter how you add an entry - they all get cleaned up if added >> through the mroute socket. > Yes, right. > MRT_FLUSH_MFC_STATIC ? > Sounds good to me.