Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751845AbdFOVX6 (ORCPT ); Thu, 15 Jun 2017 17:23:58 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:35100 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750820AbdFOVX5 (ORCPT ); Thu, 15 Jun 2017 17:23:57 -0400 Date: Thu, 15 Jun 2017 17:23:52 -0400 (EDT) Message-Id: <20170615.172352.714605650422622509.davem@davemloft.net> To: vivien.didelot@savoirfairelinux.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, f.fainelli@gmail.com, andrew@lunn.ch, jcobham@questertangent.com Subject: Re: [PATCH net-next] net: dsa: assign default CPU port to all ports From: David Miller In-Reply-To: <20170615190654.5927-1-vivien.didelot@savoirfairelinux.com> References: <20170615190654.5927-1-vivien.didelot@savoirfairelinux.com> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 15 Jun 2017 13:42:14 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 607 Lines: 14 From: Vivien Didelot Date: Thu, 15 Jun 2017 15:06:54 -0400 > The current code only assigns the default cpu_dp to all user ports of > the switch to which the CPU port belongs. The user ports of the other > switches of the fabric thus don't have a default CPU port. > > This patch fixes this by assigning the cpu_dp of all user ports of all > switches of the fabric when the tree is fully parsed. > > Fixes: a29342e73911 ("net: dsa: Associate slave network device with CPU port") > Signed-off-by: Vivien Didelot Applied, thanks.