Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752570AbdI2TiW (ORCPT ); Fri, 29 Sep 2017 15:38:22 -0400 Received: from mail.savoirfairelinux.com ([208.88.110.44]:33996 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752280AbdI2TiU (ORCPT ); Fri, 29 Sep 2017 15:38:20 -0400 From: Vivien Didelot To: Florian Fainelli , netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Andrew Lunn Subject: Re: [PATCH net-next 0/8] net: dsa: change dsa_ptr for a dsa_port In-Reply-To: <03cef84e-546d-d8c2-85fb-afc697ced2cb@gmail.com> References: <20170929183635.8122-1-vivien.didelot@savoirfairelinux.com> <03cef84e-546d-d8c2-85fb-afc697ced2cb@gmail.com> Date: Fri, 29 Sep 2017 15:34:40 -0400 Message-ID: <877ewhqoxb.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1073 Lines: 27 Hi Florian, Florian Fainelli writes: > On 09/29/2017 11:36 AM, Vivien Didelot wrote: >> With DSA, a master net_device is physically wired to a dedicated CPU >> switch port. For interaction with the DSA layer, the struct net_device >> contains a dsa_ptr, which currently points to a dsa_switch_tree object. >> >> This is only valid for a switch fabric with a single CPU port. In order >> to support switch fabrics with multiple CPU ports, we first need to >> change the type of dsa_ptr to what it really is: a dsa_port object. >> >> This is what this patchset does. The first 4 patches cleans up portions >> of DSA core to make the next patches more readable. These next patches >> prepare the xmit and receive hot paths and finally change dsa_ptr. > > This looks nice and clean, as mentioned in patch 5, there may be room > for organizing the structure a bit more efficiently such that everything > still fits within the first cacheline . Thanks for this very constructive comment! I'll look into this. Respinning in a few. Vivien