Received: by 10.223.164.202 with SMTP id h10csp781990wrb; Thu, 9 Nov 2017 14:25:20 -0800 (PST) X-Google-Smtp-Source: ABhQp+TrRAau7pNys59TnsPnqKS9x/cDSMTCWEUmWFrqo5HP0tMeaPJOxgTdNSJpyxbyJtbDqH31 X-Received: by 10.159.218.72 with SMTP id x8mr1884718plv.257.1510266320022; Thu, 09 Nov 2017 14:25:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510266319; cv=none; d=google.com; s=arc-20160816; b=CSvQyFSqJCYoQvAGpFNEYHI23JzjdYLXEd1j/mtmWAiladTKh3tGuIrc3f1jM560Qt HF+5ADfHd+wIi23HeGjfnzqpdGSkXth2AKsLTaAXr3geNMSjMLIDrjbCJsup8k4sRhG3 gVdf6pxBol2+5qtKkwLThSz7yajPitd/80E87cZ/8Y8zepg5bZV+dHz2EY/PZdcehK5r k/U54Eog7yFrZEPqfdNuV2xO9MPzn9d098g2yQpO5sHgvceb4572xztCU/JLm+9xnXEx +Tc0SIHwewBpUuig9Jxx4TFiNI3w80EIpOkITGvEEjbr6c56GmbW3wCbbDP9hMF6uEnv WjAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=FvryamvFvx/XJQGLwCBFTf9icCh0eLbtHvSBn+IIt1k=; b=tLFa1/5Gq5Nd8MgG8eWZcG4tGTb0v6iNhM404YNKnwkzTZO3Fpey9uewq89dziJ6N7 Owco0X1dEQlmdLj4c8GCOKuclOkq1IzdPlMHYS0ZUMn16EM2hrWXZXNCgBj2btSJzqA0 EZT/jcV5lQdbBQeMdTrh9FudBtTSC8LdXF4TyoWLXhTjy9bCF+P8uo4nZ9iuZEnryzf9 cFRt2q33ZdwYkjfftXYfsOZBd73FkD4ZHIeAnj4wj0av6V3S8momBVgEGf0Kxe7/HSpq F0T5dG0RnEPWGO7/u7Bp/C+goOEewLI5/p629ZlU5rVKoetgsZG+5djadyoDoZLV+xdM 6UCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t19si6865917plo.295.2017.11.09.14.25.08; Thu, 09 Nov 2017 14:25:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755213AbdKIWYS (ORCPT + 83 others); Thu, 9 Nov 2017 17:24:18 -0500 Received: from mail.savoirfairelinux.com ([208.88.110.44]:35298 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755132AbdKIWYO (ORCPT ); Thu, 9 Nov 2017 17:24:14 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 105109C1A1A; Thu, 9 Nov 2017 17:24:14 -0500 (EST) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id saoejN9h3tFg; Thu, 9 Nov 2017 17:24:13 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 8274A9C2DED; Thu, 9 Nov 2017 17:24:13 -0500 (EST) X-Virus-Scanned: amavisd-new at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 3zheuJ2Ocpdn; Thu, 9 Nov 2017 17:24:13 -0500 (EST) Received: from localhost (unknown [192.168.49.104]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 564EC9C1A1A; Thu, 9 Nov 2017 17:24:13 -0500 (EST) From: Vivien Didelot To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Florian Fainelli , Andrew Lunn Subject: Re: [PATCH net-next v2] Revert "net: dsa: constify cpu_dp member of dsa_port" In-Reply-To: <20171109195609.28068-1-vivien.didelot@savoirfairelinux.com> References: <20171109195609.28068-1-vivien.didelot@savoirfairelinux.com> Date: Thu, 09 Nov 2017 17:24:13 -0500 Message-ID: <87efp7nl9u.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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, Vivien Didelot writes: > 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. > > This reverts commit 24a9332a58b7f41a0d36c35a2c6897242bffdbc0. No need to apply this revert, Andrew made the dsa_port_mdb_* functions take a const dsa_port in his new IGMP patchset so that we can keep the cpu_dp const, as it should be. Thanks, Vivien From 1583619726855590614@xxx Thu Nov 09 19:57:40 +0000 2017 X-GM-THRID: 1583619726855590614 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread