From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753031AbdEPUmf (ORCPT ); Tue, 16 May 2017 16:42:35 -0400 Received: from vps0.lunn.ch ([178.209.37.122]:60854 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750924AbdEPUme (ORCPT ); Tue, 16 May 2017 16:42:34 -0400 Date: Tue, 16 May 2017 22:42:32 +0200 From: Andrew Lunn To: Vivien Didelot Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Florian Fainelli Subject: Re: [PATCH net-next] net: dsa: store CPU port pointer in the tree Message-ID: <20170516204232.GA11625@lunn.ch> References: <20170516181033.19980-1-vivien.didelot@savoirfairelinux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170516181033.19980-1-vivien.didelot@savoirfairelinux.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 16, 2017 at 02:10:33PM -0400, Vivien Didelot wrote: > A dsa_switch_tree instance holds a dsa_switch pointer and a port index > to identify the switch port to which the CPU is attached. > > Now that the DSA layer has a dsa_port structure to hold this data, use > it to point the switch CPU port. > > This patch simply substitutes s/dst->cpu_switch/dst->cpu_dp->ds/ and > s/dst->cpu_port/dst->cpu_dp->index/. > > Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn Andrew