From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754263AbdKIWGU (ORCPT ); Thu, 9 Nov 2017 17:06:20 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:51301 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751174AbdKIWGS (ORCPT ); Thu, 9 Nov 2017 17:06:18 -0500 Date: Thu, 9 Nov 2017 23:06:14 +0100 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] Revert "net: dsa: constify cpu_dp member of dsa_port" Message-ID: <20171109220614.GA23613@lunn.ch> References: <20171109143932.6923-1-vivien.didelot@savoirfairelinux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171109143932.6923-1-vivien.didelot@savoirfairelinux.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 09, 2017 at 09:39:32AM -0500, Vivien Didelot wrote: > We may have to pass a port's dedicated CPU port to port-wide functions > such as dsa_port_mdb_add, e.g. when offloading bridge device's MDB. > > The DSA port-wide functions currently take a non-const struct dsa_port * > as first argument so we cannot make cpu_dp const yet, even though it'd > be more correct. Revert this patch and make cpu_dp non-const again. Hi Vivien We cannot make cpu_dp const yet. But we can change dsa_port_mdb_add() and friends to take a const, because they don't need to modify it. So NACK. And i will add the needed const attributes to these functions as part of the IGMP patchset. Andrew