Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1899076ybl; Sat, 25 Jan 2020 11:17:18 -0800 (PST) X-Google-Smtp-Source: APXvYqxxM4qMObodRvQha00zQgKb23ZhiAlblhdum0V2my7E6ZaQ/arIhTiJegWCspfTs4lrxS7D X-Received: by 2002:a05:6830:1294:: with SMTP id z20mr7008469otp.60.1579979838816; Sat, 25 Jan 2020 11:17:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579979838; cv=none; d=google.com; s=arc-20160816; b=tgUJZgSfo6Y7yRRgeqkBH03iylyp1YgbUs4P4gpNofjsIUWT7f0W8XtwtdVDiHXlum Olu3DySVy3a5fFDy3/wzWyIWe2KBOJZsEAMksg4aFSvfvpAgxUVSgK2t5I2TXvc8U3ia mWbzPDsiP/8EVo7l26FRt3AqlZi++B6kFoM1s7JYyp0wO9yN86IMEG3rL4N/BUINkFBG WiI4yxD6/k+T47yWN+5+xqJq5L+8zgyrecEgibkK2HSm49HBveFt3V1B0zieD1e9xTWu GFLA4hsNdx5yizqAYdwx2yj80zZWGaV0A7dCRU869/UAaqPOVqEqFyO9LrB4iHyF0WFh sIQQ== 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=Ych1rPLMFw7pKJojDsB4NxL0r54dBivH7LFKga/xUtg=; b=XQSiCoG+QpuZMtYvrZpgFgNgOweOEnyIZY0BbZ1HUA5roC5hKjaSnRyqU2kNVPPpzT Pi6bkTzxg2fBb7Pbg/Y7adqNnoEx4AqncOCg/zLaDM1CsP11sXz8V7d6ddQO9dkahwKL nfPcShtxwC7blPxj3L8LNOc4w+Ocx9PevMuJm87vgRjtlQPevaNQ9cUzg5iJCmlL+F9C +1VYN5CiptsQYmkloNZ3CgOPbYgQtJjBP7ALqrUWXKEZwFgVqMddIMy6DLECYfzt1xLB N4C2kzWgXUUELVZYJs72mCQQBss9oRLpxAOty4U6Edu8mM42KvCCqdpTTcVu1gJXfUVv S+9Q== 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 i12si4911893otl.74.2020.01.25.11.17.07; Sat, 25 Jan 2020 11:17:18 -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 S1727307AbgAYTQP (ORCPT + 99 others); Sat, 25 Jan 2020 14:16:15 -0500 Received: from esa2.microchip.iphmx.com ([68.232.149.84]:4736 "EHLO esa2.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbgAYTQP (ORCPT ); Sat, 25 Jan 2020 14:16:15 -0500 Received-SPF: Pass (esa2.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=esa2.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 (esa2.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa2.microchip.iphmx.com; envelope-from="Allan.Nielsen@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa2.microchip.iphmx.com; dkim=none (message not signed) header.i=none; 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: x4hJIa9iFYOUSnyqOswuEs0+n+ZxsmpfPXpEgiDhuhDL0Gwz6TaW3pQJqhqTRYRY8gh+3zqhda 4w1HvNB6gKkxBTF/2gIHo9+DBL2gd2zi2Orhow8IJD3v21SpsDEfhDSIDwCC3m1ah7LgXCUQ/O NRS+wpWlgnfnKYhumxYyfCRN7yyFCNHRebzFu1l9AUhz63JQ6F4VUv++HJ4ltlqUOfqb1Sjk0O nGm/t/9lu1JP+PHCsNE+SicBt2LBUxoWDLOj0dKn0q24PQhb56yAGy51iCca6qNLHM3zbMsXDx Zto= X-IronPort-AV: E=Sophos;i="5.70,362,1574146800"; d="scan'208";a="63745682" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Jan 2020 12:16:14 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sat, 25 Jan 2020 12:16:11 -0700 Received: from localhost (10.10.85.251) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Sat, 25 Jan 2020 12:16:13 -0700 Date: Sat, 25 Jan 2020 20:16:12 +0100 From: "Allan W. Nielsen" To: Andrew Lunn CC: Horatiu Vultur , , , , , , , , , , , , Subject: Re: [RFC net-next v3 03/10] net: bridge: mrp: Add MRP interface used by netlink Message-ID: <20200125191612.5dlzlvb7g2bucqna@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> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Disposition: inline In-Reply-To: <20200125152023.GA18311@lunn.ch> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. /Allan