Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2404416pxb; Tue, 13 Apr 2021 00:40:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwReIkL1fvQRn9zY2XcYHN2T503LkBOJeBkjmgKThEWIEp8hkrcjLbhxBXJX0a7VZ7Ibgud X-Received: by 2002:a50:9fa1:: with SMTP id c30mr24729675edf.66.1618299615622; Tue, 13 Apr 2021 00:40:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618299615; cv=none; d=google.com; s=arc-20160816; b=cEMpD3dtYx6BAGclW21wy0da8jX9Ugk7ZGctfS6xltyhnNtcGYo6pVLqE3GKW49gRS vgmBkbjh2pbU6YDf64w1bhZhXHrwtTOSNGesJRyNBySGtd4usf05fzVXm7LvlynK/h1E tmPLSv1YOS1b1MArkcr7RKDf8jlUmzl5PGdSqVBTj1Ngb9ZbfAGT4q4WZpbZ6wqeLru7 vzi+Ed/nVQkMgmGYdewUGszY+9dZXfXswaTcU9AlzS94GDTPVh1CBsQCiZll9O3WG/Bw Dz262i/iqnsUL+IMfd1V7aq1OzZMDcQoNaHyasxE0flVbm/rvyVfRrqMGfq24WoxGgTc sHAQ== 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=R+kGO5u+BYm1mAtWVSkshe+vQHtiDTLx0V/TfCfU2J4=; b=ETteqhxMj93uYAMLA2GoU4MiuwEMYCF1vSXzGjoOWMdqcbVtEDTjRj0O9CLEp2MHoq +L2EwUTJEzrBrOjrLJ1h5SA6fc3oiN4bpUCbT4Dwd11SHX4BCbNTRGpnql7kAJEhaqEN Trydib9H8aH5veaR+ODtzBC+LW3lpmaWaE2oV2PR4d4o/dxQla5a1lyHrnLJb5bWKvkW Wg6oFSMm1mZC3M/hraxmqqUBs3AB/5hb3JZpCLb4cwx59iDxxnnggWBkD9vgAEC2Azo4 ORAxjtAU+naFynZeAOX6fXRHNzSZiPU58MNfua8fD/8NHb8Z97ghtRNGLxVa9gClvMIX gKdQ== 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 g26si9046073ejc.32.2021.04.13.00.39.51; Tue, 13 Apr 2021 00:40:15 -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 S243021AbhDMAcU (ORCPT + 99 others); Mon, 12 Apr 2021 20:32:20 -0400 Received: from lists.nic.cz ([217.31.204.67]:43588 "EHLO mail.nic.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239043AbhDMAcU (ORCPT ); Mon, 12 Apr 2021 20:32:20 -0400 Received: from thinkpad (unknown [IPv6:2a0e:b107:ae1:0:3e97:eff:fe61:c680]) by mail.nic.cz (Postfix) with ESMTPSA id AC7B113FC7A; Tue, 13 Apr 2021 02:31:59 +0200 (CEST) Date: Tue, 13 Apr 2021 02:31:59 +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: <20210413023159.1f8fbfc1@thinkpad> In-Reply-To: <20210413022730.2a51c083@thinkpad> 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> <20210413015450.1ae597da@thinkpad> <20210413022730.2a51c083@thinkpad> 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 02:27:30 +0200 Marek Behun wrote: > On Tue, 13 Apr 2021 01:54:50 +0200 > Marek Behun wrote: > > > I will look into this, maybe ask some follow-up questions. > > Tobias, > > it seems that currently the LAGs in mv88e6xxx driver do not use the > HashTrunk feature (which can be enabled via bit 11 of the > MV88E6XXX_G2_TRUNK_MAPPING register). > > If we used this feature and if we knew what hash function it uses, we > could write a userspace tool that could recompute new MAC > addresses for the CPU ports in order to avoid the problem I explained > previously... > > Or the tool can simply inject frames into the switch and try different > MAC addresses for the CPU ports until desired load-balancing is reached. > > What do you think? > > Marek Although changing MAC addresses of the CPU ports each time some new device comes into the network doesn't seem like a good idea, now that I think about it. Hmm.