Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp441086ybv; Thu, 20 Feb 2020 01:09:26 -0800 (PST) X-Google-Smtp-Source: APXvYqww83U6tlqi/BpHo6/CGqwuT010NSY6zSuW1wvrkwmlOw741+DqYUP6i8l3uzq5sW2GP8+c X-Received: by 2002:a05:6830:612:: with SMTP id w18mr23222577oti.160.1582189766007; Thu, 20 Feb 2020 01:09:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582189765; cv=none; d=google.com; s=arc-20160816; b=rnzk4ow9h/qGvqnILz7xS6uRkp1Wtum2FvJswF3EeewzHiww3m97VKUknMTmJs6Tw/ ylXt0vjjQdEh5h1SLbS4fFqc6HWUYtf+sKKMdkTq7oK+2+x129y4Y2ji0uzVkgJzL3bO w+sWX2RHv9u0x0LGd9aBTZmXILINtHQSeznWIvXwWHTWyuhSDWz7FPca2QLleYfoiPsd NX+vqLQ6A4ut3lZMABuoigmRHsG/irQ5djhiOWYgZZTf1ZVbnf+rHqxiBqUDDrFziYtx /zuZMlZna+wnEcF/q5GaOko574VKqMK4RRnVZWXQxQoUyxhMeYoKhlIiukmuT9oPY3Q7 USSQ== 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:cc:to:subject:dkim-signature; bh=KFjjOM/ATxcLGNdaN9di1npOi28u97TQGyXHv0wmFXw=; b=LEiKvY6oGlM7TcbX55K0Hf2jhI0QhNUt8cIWn82Emohu8unkvQBTezEVkKoHHcaM1P Vue/+9SMmVZWc8ZZalBm0q5qLNE9Ug+jCTlw+wc/5rOs00sg0oFB7r0D5gROHnANXcF4 L1vLFgk06+13VlVbMb8BaB8alxJKYn5sZpdSxnGyLXa5RfAsSdYVkZ9h9XzElWpwQCm5 dHmQZhNPaS+iPnTOo/yjLikP1lIPqEyKR1ZYHNEzZhwVVgJpKaIcUoonv9StK282nVb7 GZ80bY0kzZgHKxHSbKXX7oHafxHM3rQbBCAbs5kPQ9QmfpEEhYOKoBVTwCGpS5bIAaai Y24g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cumulusnetworks.com header.s=google header.b=eadWqpkp; 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 m12si10335971oim.195.2020.02.20.01.09.13; Thu, 20 Feb 2020 01:09:25 -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=eadWqpkp; 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 S1726893AbgBTJJC (ORCPT + 99 others); Thu, 20 Feb 2020 04:09:02 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:41326 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726771AbgBTJJC (ORCPT ); Thu, 20 Feb 2020 04:09:02 -0500 Received: by mail-lf1-f65.google.com with SMTP id m30so2455132lfp.8 for ; Thu, 20 Feb 2020 01:09:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cumulusnetworks.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=KFjjOM/ATxcLGNdaN9di1npOi28u97TQGyXHv0wmFXw=; b=eadWqpkp5Vo1b81QGCZOyn4AynMqBeEj3XDArEaOELEQ3U0I0zewuEynz/bmC025ac GycxMBYJad0D+XjtuJc1uRjnnMCx0rJuGW1I7LGzc3+spyoab2ZsFNYMtYSpU854pH+V THZl66rl/WCzH1AGKSDVzE9Qt7MDZD70wH3fU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KFjjOM/ATxcLGNdaN9di1npOi28u97TQGyXHv0wmFXw=; b=Xcgl3oUeZXfwypP3EOWbwAMQ5kkc5Tc+fa3T1eU60BrkAuVFliwDwP7obdd5RgqudZ LK3/CNik09d8UEGSwzBriT48OFYgPD1xBCVCeAjXAeC2HrjHN/EmsyF+4LZsXZUynZYK I7IBMYTq0FL2ZiujAymPlj6fs2KWuAbP3EFHuqhC83nMcsqalgBIoygTLbOIQVMCkh0e fzR2kXC1mV0mVXnS6iN4xgsqyx30YMfqLwTnZHYwpV41l7ykcB0oGZoSDjMuX5efQEl1 kWw/MtC80SCOD0t4ItOGnQqHzifvBClpDmM6YHlPidrKocZsOSWL1NOa74N/1sfVkWg2 ktOQ== X-Gm-Message-State: APjAAAVOSKW4m4YqRqBKiUvvJBMKguZI+W+c7v3QslZUDS4gkoKjM0Ze h773HxhaBdu/a2dqNXIswX0TFQ== X-Received: by 2002:a05:6512:3284:: with SMTP id p4mr2007451lfe.166.1582189740582; Thu, 20 Feb 2020 01:09:00 -0800 (PST) Received: from [192.168.0.109] (84-238-136-197.ip.btc-net.bg. [84.238.136.197]) by smtp.gmail.com with ESMTPSA id w8sm1457501lfk.75.2020.02.20.01.08.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Feb 2020 01:09:00 -0800 (PST) Subject: Re: [RFC net-next v3 03/10] net: bridge: mrp: Add MRP interface used by netlink To: Horatiu Vultur , "Allan W. Nielsen" Cc: Andrew Lunn , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bridge@lists.linux-foundation.org, jiri@resnulli.us, ivecera@redhat.com, davem@davemloft.net, roopa@cumulusnetworks.com, anirudh.venkataramanan@intel.com, olteanv@gmail.com, jeffrey.t.kirsher@intel.com, UNGLinuxDriver@microchip.com 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> From: Nikolay Aleksandrov Message-ID: <08c2d3f8-8d70-730c-95d5-8493e6919f3e@cumulusnetworks.com> Date: Thu, 20 Feb 2020 11:08:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200126132843.k4rzn7vfti7lqvos@soft-dev3.microsemi.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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] ... To avoid increasing the stack usage and bumping the max rtnl type too much. Cheers, Nik