Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7457050ybi; Thu, 1 Aug 2019 08:27:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkOGgfctdyJ8eeY3l1frGVfgjhUC6QC/UHASR8H1mPHbiu7Wv9xhMm6q10om9gOarKrFmF X-Received: by 2002:a63:b555:: with SMTP id u21mr121768239pgo.222.1564673254295; Thu, 01 Aug 2019 08:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564673254; cv=none; d=google.com; s=arc-20160816; b=aYoNaqOvVRY0CgL4dPe3sxH+MSJG5MxaqG69NMbVYbaLSNLNHfrLl1Zs1xHcrVnsBS uDgTaY9RhdHU2OYkmYoXzuSENw8wZ8sylf5UVC7VAdlvtFEREQE+4MgnvxA/JB10bxV8 kHuFCLQybyyTfOUnvi9lFMN9ROiV6xZw77hGiniZoQyQeAoWlJ6Nn//qrFHlzHgrHDzF D/F9P2cMH6llHW8tPGnyWCIXdScR/CFih6Hlt22ifldoo7lpiC7v0JN0F0emCJ0EYX7c jakA6VBrgjUESzJQWVTXTRKim3nbh+7fTFfyFZLvovSdknHwo1qmX/oHqoNfbA9lXnPs nIDQ== 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:references:cc:to:from:subject:dkim-signature; bh=hQiPzWxvnpkWNbMqkCMWGKGOuScBFYwQeSI9ij30x08=; b=A/rSWclxSApW9iE/QNw6114Pwgi8lA9RMHRItUEe0fr+nDL6/j/KGa4C8cUoeNW9KQ I02oh4VHLQKaiDnOp5c+4LWaNGTurViiOURknb50zZqMp2d20+9GkdsST0I2FKOWhELy 7dycQ2wDef/ScIspGxz4V2DUQbHRd35d0luiljN89pyI28R+RRlXrQ5X3T0kcCtbxQBI RHTXr0xLUREUpvJgsBnRJfOsrLFYGY5LMS8jB57ozFUpNEB/AObVaBM7h1b7XeYpVJ+H Um60PCq6wsXKIpqg0wohaj+hc2DKBLH5Osw02A+aL9NI9cBtu/8AECNdqcJ2976e80qw cLcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cumulusnetworks.com header.s=google header.b=GhCwRnvd; 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 k193si33491788pge.330.2019.08.01.08.27.18; Thu, 01 Aug 2019 08:27:34 -0700 (PDT) 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=GhCwRnvd; 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 S1731882AbfHAOPx (ORCPT + 99 others); Thu, 1 Aug 2019 10:15:53 -0400 Received: from mail-wm1-f43.google.com ([209.85.128.43]:50732 "EHLO mail-wm1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731334AbfHAOPx (ORCPT ); Thu, 1 Aug 2019 10:15:53 -0400 Received: by mail-wm1-f43.google.com with SMTP id v15so64844076wml.0 for ; Thu, 01 Aug 2019 07:15:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cumulusnetworks.com; s=google; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=hQiPzWxvnpkWNbMqkCMWGKGOuScBFYwQeSI9ij30x08=; b=GhCwRnvdds8KBtN4iFv2W3DVlt3DWvoYZRd/CsXZllkwiS8Nhzt1yCo6ymxP0u7xBh eCYZ/u7NHnDg9jnRKv3rB7lxPOhTkEeS7FVlmosef9csr8tAiic9tJ3WmSAnRFUo21Yz Nz5tT3MEbQbpRDbX/ILlyihRmA3QPla26sthk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=hQiPzWxvnpkWNbMqkCMWGKGOuScBFYwQeSI9ij30x08=; b=p+Wp87/fOxJBlBzOX5ZNGeTaNZRECTZBYCx677EuMir6XsXt2biQGrqmgq2aj8eL6F iwyCbDR208AJBm9Ihar257ObHthSDVN4Olfj+XPrfE3lH+aVjDRHwSKlPGFnQ+SA9D0W kJhcfg21d7woUpoj+vFq33KF+O/1UhY2op3Vv3wwokXnQvP6dLFWUfruSvh2IjiivKhl TJWAwkllx0MueglCObVCc9Slb6SHD465YNjkruNCsdNuq9kHT+K6gaQxumpjih+SMFO/ jrcgBtlzMSop/B9CkgPrsEL5ed4BmmLpawWa0CTyFnnNv9n/fgaRnhj9V55sR7THL/q6 275g== X-Gm-Message-State: APjAAAUpIenX0lcdC65sOZvMluMkTHdOaNBOzPs+DdgUoWAmGYoE+TFf TBjRESl03aeMePwrpBKE1SjP6Q== X-Received: by 2002:a1c:4d01:: with SMTP id o1mr119513943wmh.55.1564668951053; Thu, 01 Aug 2019 07:15:51 -0700 (PDT) Received: from [192.168.0.107] (84-238-136-197.ip.btc-net.bg. [84.238.136.197]) by smtp.gmail.com with ESMTPSA id d16sm66277305wrv.55.2019.08.01.07.15.48 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Thu, 01 Aug 2019 07:15:50 -0700 (PDT) Subject: Re: [net-next,rfc] net: bridge: mdb: Extend with multicast LLADDR From: Nikolay Aleksandrov To: Horatiu Vultur , idosch@mellanox.com, andrew@lunn.ch, allan.nielsen@microchip.com Cc: davem@davemloft.net, roopa@cumulusnetworks.com, petrm@mellanox.com, tglx@linutronix.de, fw@strlen.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bridge@lists.linux-foundation.org References: <1564663840-27721-1-git-send-email-horatiu.vultur@microchip.com> <1db865a6-9deb-fbd2-dee6-83609fcc2d95@cumulusnetworks.com> Message-ID: <696c9bcc-f7e3-3d22-69c4-cdf4f37280a9@cumulusnetworks.com> Date: Thu, 1 Aug 2019 17:15:46 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <1db865a6-9deb-fbd2-dee6-83609fcc2d95@cumulusnetworks.com> 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 01/08/2019 17:11, Nikolay Aleksandrov wrote: > On 01/08/2019 17:07, Nikolay Aleksandrov wrote: >> Hi Horatiu, >> Overall I think MDB is the right way, we'd like to contain the multicast code. >> A few comments below. >> >> On 01/08/2019 15:50, Horatiu Vultur wrote: > [snip] >>> >>> Signed-off-by: Horatiu Vultur >>> Co-developed-by: Allan W. Nielsen >>> Signed-off-by: Allan W. Nielsen >>> --- >>> include/linux/if_bridge.h | 1 + >>> include/uapi/linux/if_bridge.h | 1 + >>> net/bridge/br_device.c | 7 +++++-- >>> net/bridge/br_forward.c | 3 ++- >>> net/bridge/br_input.c | 13 ++++++++++-- >>> net/bridge/br_mdb.c | 47 +++++++++++++++++++++++++++++++++++------- >>> net/bridge/br_multicast.c | 4 +++- >>> net/bridge/br_private.h | 3 ++- >>> 8 files changed, 64 insertions(+), 15 deletions(-) >>> >> >> Overall I don't think we need this BR_PKT_MULTICAST_L2, we could do the below much >> easier and without the checks if you use a per-mdb flag that says it's to be treated >> as a MULTICAST_L2 entry. Then you remove all of the BR_PKT_MULTICAST_L2 code (see the >> attached patch based on this one for example). and continue processing it as it is processed today. >> We'll keep the fast-path with minimal number of new conditionals. >> >> Something like the patch I've attached to this reply, note that it is not complete >> just to show the intent, you'll have to re-work br_mdb_notify() to make it proper >> and there're most probably other details I've missed. If you find even better/less >> complex way to do it then please do. >> >> Cheers, >> Nik > > Oops, I sent back your original patch. Here's the actually changed version > I was talking about. > > Thanks, > Nik > > > The querier exists change is a hack just to get the point, I'd prefer to re-write that portion in a better way which makes more sense, i.e. get that check out of there since it doesn't mean that an actual querier exists. :)