Received: by 10.223.164.202 with SMTP id h10csp336835wrb; Thu, 9 Nov 2017 07:07:48 -0800 (PST) X-Google-Smtp-Source: ABhQp+TeOULJH+pyD+Ohl/MHjHhuSkuLeW3PCKt+gzhYHds2h92KBBmnYt5G64/0gST5MqTAx7Ta X-Received: by 10.101.65.198 with SMTP id b6mr763193pgq.136.1510240068744; Thu, 09 Nov 2017 07:07:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510240068; cv=none; d=google.com; s=arc-20160816; b=fUj33G8iBQCpX7KZ27mPjWVupIXIeBu7qAcNyqBMTuLT6LyR0q8Xj5wi8iHu1yysEY YtsQDRFZKrkD75wWjQHpYyysFs+wCBgkTVFwrJWnxHmMpry71ypyPahLuGtQptCXYLf0 1Uy7Cl31sGe7c9V1wmiswKFMKFlROieNIP94pZhBoBFNc2aIep+a/fctZiIKbTf08jHX PhwFh94JPEZRkKPxGe1FaC/ZbOqDtN5D+2ReXCN2uyGePKAMMPNNzlW9K7943GuXn6lH tz8emjxfx3uiYOMZClsJqLF0eTJH3ZpUeNukUYgN+uLfkqj7ByNsEsXk0rQrV5rQ6BVW X33g== 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=kD3oW5uu+u8349s+NS0iJce9aMnrXdkolJTx4857L4M=; b=P8CKvMfAd4M5drtqJpzvpVV9utcMU1/L8vxxD4UYc8HYa5jbm7B+14sxnjq0L8tOOG X4d2sKC/LOrpz/aO3IvchuYCan+H5JIy2ofNKGHYF7i2wJhoEL9Bs5Omqly8x2OW1oAt pjxWeMMeEJM6gUsdP68wnHlwUN/X5DySv4TFSh83RsAi8Pwqn3DFJpxXStm3xt9bktqN LEOihUErgPZCoqVgsxV9UeCOOSl5swHZCaIQW3L0PIkzK7qgyEs7xXqJUF54zaV8F9GU 8RoA9HkGWdWOnkdmzH1eWryYdLuKda2QFyxFRvJ8GjHTjleDU7CNznQ91u3nxPnoqTwH Nyxg== 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 j186si6480324pgc.455.2017.11.09.07.07.36; Thu, 09 Nov 2017 07:07:48 -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 S1751886AbdKIPGx (ORCPT + 80 others); Thu, 9 Nov 2017 10:06:53 -0500 Received: from mail.savoirfairelinux.com ([208.88.110.44]:59292 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751281AbdKIPGv (ORCPT ); Thu, 9 Nov 2017 10:06:51 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 06A7A9C1AF4; Thu, 9 Nov 2017 10:06:51 -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 OqQlICIqdsRs; Thu, 9 Nov 2017 10:06:50 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 3EBB19C215B; Thu, 9 Nov 2017 10:06:50 -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 hGaWU7iKAzdo; Thu, 9 Nov 2017 10:06:50 -0500 (EST) Received: from localhost (unknown [192.168.50.91]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 0EA129C1AF4; Thu, 9 Nov 2017 10:06:50 -0500 (EST) From: Vivien Didelot To: Egil Hjelmeland , 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 1/6] net: dsa: remove trans argument from mdb ops In-Reply-To: <01a09219-c348-5aa5-c052-c8ea505c769d@egil-hjelmeland.no> References: <20171108171917.5965-1-vivien.didelot@savoirfairelinux.com> <20171108171917.5965-2-vivien.didelot@savoirfairelinux.com> <01a09219-c348-5aa5-c052-c8ea505c769d@egil-hjelmeland.no> Date: Thu, 09 Nov 2017 10:06:49 -0500 Message-ID: <87mv3vqynq.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 Egil, Egil Hjelmeland writes: > On 08. nov. 2017 18:19, Vivien Didelot wrote: >> The DSA switch MDB ops pass the switchdev_trans structure down to the >> drivers, but no one is using them and they aren't supposed to anyway. >> >> Remove the trans argument from MDB prepare and add operations. >> >> - int (*port_mdb_prepare)(struct dsa_switch *ds, int port, >> - const struct switchdev_obj_port_mdb *mdb, >> - struct switchdev_trans *trans); >> - void (*port_mdb_add)(struct dsa_switch *ds, int port, >> - const struct switchdev_obj_port_mdb *mdb, >> - struct switchdev_trans *trans); >> + int (*port_mdb_prepare)(struct dsa_switch *ds, int port, >> + const struct switchdev_obj_port_mdb *mdb); >> + void (*port_mdb_add)(struct dsa_switch *ds, int port, >> + const struct switchdev_obj_port_mdb *mdb); >> int (*port_mdb_del)(struct dsa_switch *ds, int port, >> const struct switchdev_obj_port_mdb *mdb); > > Hi Vivien > Nice to get rid of "trans". I recall I was confused by this parameter. > "Am I supposed to do something with this parameter?". > > But when at it. What about getting rid of switchdev_obj_port_mdb, making > similar signatures as the new .port_fdb_xxx functions? Would that make > sense? There is definitely something to do to factorize FDB and MDB operations, since an Ethernet switch driver will only manipulate an address database in the end. I have something in mind but this is out-of-scope ATM. Thanks, Vivien From 1583578713617805297@xxx Thu Nov 09 09:05:47 +0000 2017 X-GM-THRID: 1583519247280642413 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread