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 5E95EC43381 for ; Sun, 17 Feb 2019 16:31:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2D7DE2190C for ; Sun, 17 Feb 2019 16:31:23 +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="0l02357w" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726258AbfBQQbW (ORCPT ); Sun, 17 Feb 2019 11:31:22 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:39698 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725801AbfBQQbV (ORCPT ); Sun, 17 Feb 2019 11:31:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References: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:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=8KvFGhhZ3Pv6u1+SiMUz35dGToc4uzAnBr5wZLXvMxk=; b=0l02357wZ/WWTNUjvDuupCz2k guJfvYWVZTeHla6I84Tq8YM6WAjA/j3KDZ7VBYEk7ylV6r8UA6SzBsXQK7VDIud9Q/14/I29ivyBi XQditeTCcZ4VDXCvmIPjHr+994bM/ac6mNFh4mWkKzkvkzUXjvCwq4qSXd1eP24nQjb0GfkPegjb/ /RXwSlYS+pg9c1HqvoF9RdnaokmBlqgWs+Rx2DdsAmcHXUQ6wdOWrl8YYHCMIowWhOKPH6woWjj8E t411PkJc9etEp6KC+q7LFGg+5DMl+trgRa592HnygoF1Z463UNwurfRL3VgQwXdKaT0ElfmwZu6uO PImM16+Ow==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:51182) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gvPLY-0001Ij-EZ; Sun, 17 Feb 2019 16:31:16 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.89) (envelope-from ) id 1gvPLW-0006QK-V8; Sun, 17 Feb 2019 16:31:14 +0000 Date: Sun, 17 Feb 2019 16:31:14 +0000 From: Russell King - ARM Linux admin To: Andrew Lunn , Florian Fainelli , Vivien Didelot Cc: "David S. Miller" , netdev@vger.kernel.org Subject: [PATCH net-next v2 0/3] net: dsa: mv88e6xxx: fix IPv6 Message-ID: <20190217163114.yomawlljyxlqy3ob@shell.armlinux.org.uk> References: <20190217142414.cjtmpi5y2l5rtdlb@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190217142414.cjtmpi5y2l5rtdlb@shell.armlinux.org.uk> 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. 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 | 45 ++++++++++++++++++++++++++++++++++------ include/net/dsa.h | 3 +++ net/dsa/dsa_priv.h | 2 ++ net/dsa/port.c | 15 ++++++++++++++ net/dsa/slave.c | 6 ++++++ 5 files changed, 65 insertions(+), 6 deletions(-) v2: fix a couple of compile errors in patch 2 and patch 3 (oops). -- 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