Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752556AbdI2TUf (ORCPT ); Fri, 29 Sep 2017 15:20:35 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:50334 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751972AbdI2TUd (ORCPT ); Fri, 29 Sep 2017 15:20:33 -0400 X-Google-Smtp-Source: AOwi7QBIdXl2ijWIAnNdzccTGtGRLrJ3/ur3bRCENR/iQodwnG2WBYrr/KP3+IgpkCaE8dRmQxWs4w== Subject: Re: [PATCH net-next 7/8] net: dsa: change dsa_ptr for a dsa_port To: Vivien Didelot , netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Andrew Lunn References: <20170929183635.8122-1-vivien.didelot@savoirfairelinux.com> <20170929183635.8122-8-vivien.didelot@savoirfairelinux.com> From: Florian Fainelli Message-ID: <767d2ab8-7fc1-170b-ec13-07c77158d4e3@gmail.com> Date: Fri, 29 Sep 2017 12:20:25 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170929183635.8122-8-vivien.didelot@savoirfairelinux.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 692 Lines: 16 On 09/29/2017 11:36 AM, Vivien Didelot wrote: > With DSA, a master net device (CPU facing interface) has a dsa_ptr > pointer to which hangs a dsa_switch_tree. This is not correct because a > master interface is wired to a dedicated switch port, and because we can > theoretically have several master interfaces pointing to several CPU > ports of the same switch fabric. > > Change the master interface's dsa_ptr for the CPU dsa_port pointer. > This is a step towards supporting multiple CPU ports. Also remove > dsa_get_cpu_port which is now unneeded. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Florian