Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp647104ybv; Thu, 20 Feb 2020 05:00:31 -0800 (PST) X-Google-Smtp-Source: APXvYqz6myHXo5+NADomVOHjoACxQm9NtBin8MkMHOhxUHuCF6pwlGaAtCnH+gAu09SxiimgrDXS X-Received: by 2002:aca:3542:: with SMTP id c63mr1859901oia.135.1582203631800; Thu, 20 Feb 2020 05:00:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582203631; cv=none; d=google.com; s=arc-20160816; b=ton9M5JI5E5/qMGXQIxCULBR/kmo33N0nfYAG/neB2SWOUZmfJXucWQbi9+E8hNR4B I9EzRhfmN0Jg70hkdNLHiYL137lUdm5AngIwjfRiCVJVfImN9ZhAq4p2vJmPatJ5WgPV NWQ3PHcZgZdQ1bpDnzqvUgUnpmKTIU1U+lA9c6Pw37HA2nDtfRH1SqoqVfJhyI6ve7r7 hJMIEdDCeSchXTePPjdyNb8PvdZPPN6d/NHwY+JKSoW/eGVCinwwCgAOm/qVSQpGEfF8 RmUl0wtKHX1fYdIHSqaQcbZRR2wpgoPacaH9plZ4Vx1Xca/AgEOvuKKLKdKZmXjgVh0z jlcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr; bh=WdIjmnYnMyESo8U7Co2zMFU3RtleSj7pYWp6lX9ONmw=; b=OkrJHuQubfslvS1B2pTAODLV7vYliK5gDTjWDR0sVD501McfIRerK3zLUvMh7/12Z6 ufTMyEDQTXUJWQZcb7dfmTuUDyCNkHfSgW6+BJkAb1UDQxD2aavjUss4LW0XkI4bH0Id gOBvDfOmPATldsyodEHsuLxZx6efvIRt4QewvYUbJMKWBkBxpTNBaP106J5oQQZy/qU6 ubdyd0UvvI/kuqG7QAmt2sL7HfqLdgjX/Pc4J3NNX9icpbSjQqcKBuQmuYK3v0GphhSZ 4ZjqVYsdL47VmbbHZl7Bk1UuUkYTeKGS7NVJEDC6gE+xGqppTVBEc4+PYGLFzGLeYkb8 IEMQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o18si1595105otk.80.2020.02.20.05.00.18; Thu, 20 Feb 2020 05:00:31 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728091AbgBTNAJ (ORCPT + 99 others); Thu, 20 Feb 2020 08:00:09 -0500 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:11887 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726959AbgBTNAJ (ORCPT ); Thu, 20 Feb 2020 08:00:09 -0500 Received-SPF: Pass (esa4.microchip.iphmx.com: domain of Allan.Nielsen@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa4.microchip.iphmx.com; envelope-from="Allan.Nielsen@microchip.com"; x-sender="Allan.Nielsen@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com -exists:%{i}.spf.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa4.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa4.microchip.iphmx.com; envelope-from="Allan.Nielsen@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa4.microchip.iphmx.com; spf=Pass smtp.mailfrom=Allan.Nielsen@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: ejEhHI9zHVlatcJjm0o7ug5tg1ZfML6cZwk5F3814PJj4e7ak3gSAflN764jDCj2OSiP5ryaGK /G0SYQOsepLhXNZgkO7D8hiegxxOvsDGcQdnll4+5pgeVQKHpx2pqWKkQPDUmuBzzQ94/IrWbB r7jb0nIOXcSdZ7hsOfz9flrbQ2suOoXiFkHQrTwgk0jalHiRLRRA+E4hv1Wfy2nkENMILrpkMZ A39/jiRC6q6rbfxNG17J45h+RaDytKbW93dMIXAvQixS0czOhI428gzHqVJ89WmhTJQ+dcxncV hS4= X-IronPort-AV: E=Sophos;i="5.70,464,1574146800"; d="scan'208";a="64820032" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Feb 2020 06:00:08 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 20 Feb 2020 06:00:07 -0700 Received: from localhost (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Thu, 20 Feb 2020 06:00:07 -0700 Date: Thu, 20 Feb 2020 14:00:07 +0100 From: "Allan W. Nielsen" To: Nikolay Aleksandrov CC: Horatiu Vultur , Andrew Lunn , , , , , , , , , , , Subject: Re: [RFC net-next v3 03/10] net: bridge: mrp: Add MRP interface used by netlink Message-ID: <20200220130007.o4tdhyopwrxkr33c@lx-anielsen.microsemi.net> References: <20200124161828.12206-1-horatiu.vultur@microchip.com> <20200124161828.12206-4-horatiu.vultur@microchip.com> <20200124174315.GC13647@lunn.ch> <20200125113726.ousbmm4n3ab4xnqt@soft-dev3.microsemi.net> <20200125152023.GA18311@lunn.ch> <20200125191612.5dlzlvb7g2bucqna@lx-anielsen.microsemi.net> <20200126132843.k4rzn7vfti7lqvos@soft-dev3.microsemi.net> <08c2d3f8-8d70-730c-95d5-8493e6919f3e@cumulusnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Disposition: inline In-Reply-To: <08c2d3f8-8d70-730c-95d5-8493e6919f3e@cumulusnetworks.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20.02.2020 11:08, Nikolay Aleksandrov wrote: >EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > >On 26/01/2020 15:28, Horatiu Vultur wrote: >> The 01/25/2020 20:16, Allan W. Nielsen wrote: >>> On 25.01.2020 16:20, Andrew Lunn wrote: >>>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe >>>> >>>> On Sat, Jan 25, 2020 at 12:37:26PM +0100, Horatiu Vultur wrote: >>>>> The 01/24/2020 18:43, Andrew Lunn wrote: >>>>>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe >>>>>> >>>>>>> br_mrp_flush - will flush the FDB. >>>>>> >>>>>> How does this differ from a normal bridge flush? I assume there is a >>>>>> way for user space to flush the bridge FDB. >>>>> >>>>> Hi, >>>>> >>>>> If I seen corectly the normal bridge flush will clear the entire FDB for >>>>> all the ports of the bridge. In this case it is require to clear FDB >>>>> entries only for the ring ports. >>>> >>>> Maybe it would be better to extend the current bridge netlink call to >>>> be able to pass an optional interface to be flushed? I'm not sure it >>>> is a good idea to have two APIs doing very similar things. >>> I agree. >> I would look over this. >> > >There's already a way to flush FDBs per-port - IFLA_BRPORT_FLUSH. > >>> >>> And when looking at this again, I start to think that we should have >>> extended the existing netlink interface with new commands, instead of >>> adding a generic netlink. >> We could do also that. The main reason why I have added a new generic >> netlink was that I thought it would be clearer what commands are for MRP >> configuration. But if you think that we should go forward by extending >> existing netlink interface, that is perfectly fine for me. >> >>> >>> /Allan >>> >> > >I don't mind extending the current netlink interface but the bridge already has >a huge (the largest) set of options and each time we add a new option we have >to adjust RTNL_MAX_TYPE. If you do decide to go this way maybe look into nesting >all the MRP options under one master MRP element into the bridge options, example: >[IFLA_BR_MRP] > [IFLA_BR_MRP_X] > [IFLA_BR_MRP_Y] > ... Ahh, did not see this mail before responsing to the other one. We can make it part of the BR netlink then. /Allan