From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED, USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D845C43381 for ; Wed, 20 Feb 2019 20:55:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0F4982089F for ; Wed, 20 Feb 2019 20:55:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="bh1w301D" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726137AbfBTUzd (ORCPT ); Wed, 20 Feb 2019 15:55:33 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:36606 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726003AbfBTUzd (ORCPT ); Wed, 20 Feb 2019 15:55:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Zr46Tcx/nwaDdI0wv0pASqfkab59BM627gslUWNfM9s=; b=bh1w301DW0m9AXt6KGrFAGpRK Uza0tNibQm3lTjF04ZqKLrHeN88BJ9KSndo1NPNyXSKfaI6NJe2l3GmwHS0haQtvxcn39hHgtr8jc olD6lTBhin9K/LUkhsvzoU/JsGe7qdYO9Viu+px+C+6w5HYJLoR8fjcsFusDaOKfLW0+wj8QvXJ3p Q/TyeOAlMG4lUI946i9HaVYP+O0AYLN7BOytK3sK/SDAnVkn0wPbDGDDKtm/4jk1U93F0cC0Cbzh4 CIhMN9ZjW9t9YXVSH6L54We+pQN5b4esxOErWD2hfcSKdnAL7tksU23TAGfh2oUCrB6f1TPXKvhUq Zxv7E5MTg==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:54630) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gwYtr-0006KY-JD; Wed, 20 Feb 2019 20:55:27 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.89) (envelope-from ) id 1gwYtp-0000hl-KT; Wed, 20 Feb 2019 20:55:25 +0000 Date: Wed, 20 Feb 2019 20:55:25 +0000 From: Russell King - ARM Linux admin To: Andrew Lunn , Florian Fainelli , Vivien Didelot Cc: "David S. Miller" , Heiner Kallweit , netdev@vger.kernel.org Subject: [PATCH net-next v4 0/3] net: dsa: mv88e6xxx: fix IPv6 Message-ID: <20190220205525.nji63ntsthxbus4l@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org We have had some emails in private over this issue, this is my current patch set rebased on top of net-next which provides working IPv6 (and probably other protocols as well) over mv88e6xxx DSA switches. The problem comes down to mv88e6xxx defaulting to not flood unknown unicast and multicast datagrams, as they would be by dumb switches, and as the Linux bridge code does by default. There is also the issue of IPv6 over a vlan that is transparent to the bridge; the multicast querier will not reach inside the vlan, and so the switch can not learn about multicast routing within the vlan. These flood settings can be disabled via the Linux bridge code if it's desired to make the switch behave more like a managed switch, eg, by enabling the multicast querier. However, the multicast querier defaults to being disabled which effectively means that by default, mv88e6xxx switches block all multicast traffic. This is at odds with the Linux bridge documentation, and the defaults that the Linux bridge code adopts. So, this patch set adds DSA support for Linux bridge flags, adds mv88e6xxx support for the unicast and multicast flooding flags, and lastly enables flooding of these frames by default to match the Linux bridge defaults. drivers/net/dsa/mv88e6xxx/chip.c | 17 +++++++++++++++++ include/net/dsa.h | 2 ++ net/dsa/dsa_priv.h | 2 ++ net/dsa/port.c | 33 ++++++++++++++++++++++++++++++--- net/dsa/slave.c | 6 ++++++ 5 files changed, 57 insertions(+), 3 deletions(-) v2: fix a couple of compile errors in patch 2 and patch 3 (oops). v3: change interface between core DSA and drivers v4: fix comments from v3 -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up