Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752615AbdLDRfq (ORCPT ); Mon, 4 Dec 2017 12:35:46 -0500 Received: from mail.savoirfairelinux.com ([208.88.110.44]:45178 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751754AbdLDRfo (ORCPT ); Mon, 4 Dec 2017 12:35:44 -0500 From: Vivien Didelot To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Florian Fainelli , Andrew Lunn , Vivien Didelot Subject: [PATCH net-next 0/5] net: dsa: use per-port upstream port Date: Mon, 4 Dec 2017 12:34:52 -0500 Message-Id: <20171204173457.14873-1-vivien.didelot@savoirfairelinux.com> X-Mailer: git-send-email 2.15.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1010 Lines: 26 An upstream port is a local switch port used to reach a CPU port. DSA still considers a unique CPU port in the whole switch fabric and thus return a unique upstream port for a given switch. This is wrong in a multiple CPU ports environment. We are now switching to using the dedicated CPU port assigned to each port in order to get rid of the deprecated unique tree CPU port. This patchset makes the dsa_upstream_port() helper take a port argument and goes one step closer complete support for multiple CPU ports. Vivien Didelot (5): net: dsa: mv88e6xxx: egress floods all DSA ports net: dsa: mv88e6xxx: helper to setup upstream port net: dsa: mv88e6xxx: setup global upstream port net: dsa: assign a CPU port to DSA port net: dsa: return per-port upstream port drivers/net/dsa/mv88e6xxx/chip.c | 58 +++++++++++++++++++++++++--------------- include/net/dsa.h | 9 ++++--- net/dsa/dsa2.c | 2 +- 3 files changed, 44 insertions(+), 25 deletions(-) -- 2.15.1