Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2401756pxb; Tue, 13 Apr 2021 00:35:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVaS/hOqCHX3Ha9MUw2V6xAXcHkX5S3cDkBArpSWiSgpDlHDuQ3VX4U+Y3AulgETHohTrV X-Received: by 2002:a17:906:2b03:: with SMTP id a3mr22797158ejg.481.1618299357657; Tue, 13 Apr 2021 00:35:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618299357; cv=none; d=google.com; s=arc-20160816; b=llRVYGZUguScApWSzLzUTxBDIDxd9WrUpICmkWkymLkvYXZ8pkp8qgOuoHyUV8mQ31 47HjpOg5v4bRTu4hm96HEXITuUikR2vxDkXf8KAveAu/Xvs6Qs40rREqutuhJe9j7q8h AicasZv4Pa75BKfmDMHJmK5aLEqDr+QIYTCRsP0RqcDR8JyCtlPq639NJazF+jrgBfCD FLXRm854S1nKOnoTO2qR9C/UpLRLHDX2Dw8QGki6lOC+fyQbz092XbZfI9Bhyvt6UQjg SV2A2WN+up8VxN0e4F3uTrYy0sJNMjyvyqzfz3pVQEcO0e6acLC6bc8NskwMlzEU+gnA eW/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=X3eIugkntWdS5ZBg/61i+e9A/1/4zQDBb9lyadz7uEI=; b=mDDittUxA2PCqzn9PXGvfG0Pj2ULOS6YPN8fdfIgxEwBB6aOCoQ2lqo+YBQXYRSU1e EHUGu9ib0YvXgzVIZmtrqhXlzHbUZ88/U8LaFR3B+nSuO3UgZBF9WAtzPRp0j9HfbPDv Lv4uaW5oIoxyJs6cs13jbrdX/bxmQ6xU6MZjoXe9KN8ELX96q3bBT/DOh3jMxeKHOPk4 1Zaz6SGpEd4KW33KR3Ob9q0KNUfUEe8KXIXCFabTlCN83W0SK9NNp/vS6Wq0HoB6x1B/ 9vx06qE8qwl/JZ64Ea4xH6Nf20G0V3b5fkOdE/K9wsWbWlPZ3H3EUMPAFOz9OR4xZ8sb GTxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nic.cz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb24si2228981ejb.158.2021.04.13.00.35.34; Tue, 13 Apr 2021 00:35:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nic.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242531AbhDLXzL (ORCPT + 99 others); Mon, 12 Apr 2021 19:55:11 -0400 Received: from mail.nic.cz ([217.31.204.67]:58582 "EHLO mail.nic.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237250AbhDLXzK (ORCPT ); Mon, 12 Apr 2021 19:55:10 -0400 Received: from thinkpad (unknown [IPv6:2a0e:b107:ae1:0:3e97:eff:fe61:c680]) by mail.nic.cz (Postfix) with ESMTPSA id 949C0140655; Tue, 13 Apr 2021 01:54:50 +0200 (CEST) Date: Tue, 13 Apr 2021 01:54:50 +0200 From: Marek Behun To: Tobias Waldekranz Cc: Vladimir Oltean , Ansuel Smith , netdev@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Andrew Lunn , Vivien Didelot , Florian Fainelli , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Eric Dumazet , Wei Wang , Cong Wang , Taehee Yoo , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , zhang kai , Weilong Chen , Roopa Prabhu , Di Zhu , Francis Laniel , linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC net-next 0/3] Multi-CPU DSA support Message-ID: <20210413015450.1ae597da@thinkpad> In-Reply-To: <87o8ejjdu6.fsf@waldekranz.com> References: <20210410133454.4768-1-ansuelsmth@gmail.com> <20210411200135.35fb5985@thinkpad> <20210411185017.3xf7kxzzq2vefpwu@skbuf> <878s5nllgs.fsf@waldekranz.com> <20210412213045.4277a598@thinkpad> <8735vvkxju.fsf@waldekranz.com> <20210412235054.73754df9@thinkpad> <87wnt7jgzk.fsf@waldekranz.com> <20210413005518.2f9b9cef@thinkpad> <87r1jfje26.fsf@waldekranz.com> <87o8ejjdu6.fsf@waldekranz.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-100.0 required=5.9 tests=SHORTCIRCUIT, USER_IN_WELCOMELIST,USER_IN_WHITELIST shortcircuit=ham autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.nic.cz X-Virus-Scanned: clamav-milter 0.102.2 at mail X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 Apr 2021 01:13:53 +0200 Tobias Waldekranz wrote: > > ...you could get the isolation in place. But you will still lookup the > > DA in the ATU, and there you will find a destination of either cpu0 or > > cpu1. So for one of the ports, the destination will be outside of its > > port based VLAN. Once the vectors are ANDed together, it is left with no > > valid port to egress through, and the packet is dropped. > > > >> Am I wrong? I confess that I did not understand this into the most fine > >> details, so it is entirely possible that I am missing something > >> important and am completely wrong. Maybe this cannot be done. > > > > I really doubt that it can be done. Not in any robust way at > > least. Happy to be proven wrong though! :) > > I think I figured out why it "works" for you. Since the CPU address is > never added to the ATU, traffic for it is treated as unknown. Thanks to > that, it flooded and the isolation brings it together. As soon as > mv88e6xxx starts making use of Vladimirs offloading of host addresses > though, I suspect this will fall apart. Hmm :( This is bad news. I would really like to make it balance via input ports. The LAG balancing for this usecase is simply unacceptable, since the switch puts so little information into the hash function. I will look into this, maybe ask some follow-up questions. Marek