Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp2015339imc; Fri, 22 Feb 2019 16:01:07 -0800 (PST) X-Google-Smtp-Source: AHgI3IbwqKiqg4BRF4bjls5CZ2SAHioloIpkuHJMG2b3/lmjYj82kvaNHCVn+Ok4l19UpnpSzt4s X-Received: by 2002:a62:f20d:: with SMTP id m13mr6766426pfh.174.1550880066965; Fri, 22 Feb 2019 16:01:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550880066; cv=none; d=google.com; s=arc-20160816; b=FoRYs6TwWWnAjktS439KtWowdKQsdpz4OiBk1im6vpnJC3ikJXD6WRo3eaDm3ooDag PQSjU4CeCZdPg7C4rNJcFq/5OVp7ePJ9vz4RXd5XSVTknf3ynpscgd17FhrjiVrYuwCj Ic0MdadKGvF1J9dJgZSoMvzduwwbuwFoI7tlcn1Oy015xpkKiTbUJbHvFw+8GsLU+lhC u0ogRJakLmAH/WnASYEWenPNaYUjOb/hTzx+AFIkk72adO0bmGSsptygyu+m5WX16LLS Hytnmd0+CyC/rOZrNOWnMGdbI74v4POWNGh4nxal0JS3qqd/ljv1oVLsWkzAJMmXZo7D 4vFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=p30AzGcPU94wCBS8YtPQqGyNulXQ5D1avMwXHp83bds=; b=Dn6Fw4KBVuMYiMvWQtfeLXubl0+8IyQAFjISHY279AzR4UHiwdEryXC02TNBYvHoBJ pu0WnVqLB9u76VqguzTeEtS5DGzQqnh5SOT+EcxqfBQ4NBzY7r0GbCUhQMasOXcvtY8m GAlrsQYfrDQMOsQ0RCGRB/t3gPROMaw/MB5ht78ZVGjTyXq7UqcuhT/0Pj7gaX9pKOTf Qkchd8kQ+1wugLeHNECNHXqDOXSNbMaIcjfqH/YGTTyyVz8xymdyzoHCEr01GrSTxJ0X ObJM/W4czMJrHdrwKj8uOG9lzrYuAwDmUSUOjGe2SGOc+rG6VAj8J2Lx2gv4GiSHVmzS 6TmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dIUQohih; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si2543823pgg.110.2019.02.22.16.00.51; Fri, 22 Feb 2019 16:01:06 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dIUQohih; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727510AbfBWAAZ (ORCPT + 99 others); Fri, 22 Feb 2019 19:00:25 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:43393 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbfBWAAY (ORCPT ); Fri, 22 Feb 2019 19:00:24 -0500 Received: by mail-pf1-f194.google.com with SMTP id q17so1783007pfh.10; Fri, 22 Feb 2019 16:00:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=p30AzGcPU94wCBS8YtPQqGyNulXQ5D1avMwXHp83bds=; b=dIUQohihWGlkYp7ehda73F3TvfwAG9VhTYUd85Xz4jtLlOuIaNvewcP3gJb0K7rneO KEa8tjRpwb6Yd+OLdRAp5Abzco36eni96Kgb3c+KxgeHx0NAp0TJDe2KdhTteWcu3Aqz fAmi/QVAPs+GaHM7FT6XEPwUDMfXG/TEgLPkVA4QBbcLl0YDhn2m55QBy6LapGzQupPH YrP8X9AaK8IaosUKRMruRY5omYqqQHiafGvoudri4vx9FSYOrUgcNh1S7m+43C7xCfy2 eCdr+z225Ebzve44jE9d+wNwP6PEEwRmAfNqLfbZVAm0aipBZZK/5cwVmGAFmeC50fOc LSeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=p30AzGcPU94wCBS8YtPQqGyNulXQ5D1avMwXHp83bds=; b=bnLEc85AlLgJGhmhfAGLtJtFRUL0dC1xI3fhDDLqa0kDSUpuzS74cyPF5qhZWVLYjT mK48G3gSUBDNA6tZcpqqTLYBQjU/+B0W7XSfGKnGMgAJ+eVE/ASwrpEi6xCMotW9fQ7a WfStVxmGdHmU/XDgvK/gXgxkpstIm9XhIDfhoWpYAl8aOZyIPgmBUo45ouFM4AoyCxy3 UoOhidOPUKL3rVDVqi6b6MHZFqERq66cGHUzmIM6NQGAqUDoPOR+DQ6vWLaBHUfMQs0Z AZY4W/JF6xOo77wYDOv8FDC4EJnCGFw7z+qkpOmxCa/cMj61KbsaaLfaJlFn7e0eMuob 5gqQ== X-Gm-Message-State: AHQUAuYzyTJ5km6PgsAnac5/9xxJaFQ8NjHOyPfzxABmZr8mkIvgofGV O10aHcROVsAVk2Ic6jo0f1mBwair X-Received: by 2002:a65:6651:: with SMTP id z17mr6092052pgv.95.1550880023146; Fri, 22 Feb 2019 16:00:23 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id z12sm3327872pgv.0.2019.02.22.16.00.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Feb 2019 16:00:22 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , "David S. Miller" , Ido Schimmel , linux-kernel@vger.kernel.org (open list), devel@driverdev.osuosl.org (open list:STAGING SUBSYSTEM), bridge@lists.linux-foundation.org (moderated list:ETHERNET BRIDGE), jiri@mellanox.com, andrew@lunn.ch, vivien.didelot@gmail.com Subject: [PATCH net-next 0/8] net: Remove switchdev_ops Date: Fri, 22 Feb 2019 15:59:18 -0800 Message-Id: <20190222235927.10295-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This patch series completes the removal of the switchdev_ops by converting switchdev_port_attr_set() to use either the blocking (process) or non-blocking (atomic) notifier since we typically need to deal with both depending on where in the bridge code we get called from. This was tested with the forwarding selftests and DSA hardware. Ido, Jiri, please review :) Florian Fainelli (8): switchdev: Add SWITCHDEV_PORT_ATTR_SET rocker: Handle SWITCHDEV_PORT_ATTR_SET net: dsa: Handle SWITCHDEV_PORT_ATTR_SET mlxsw: spectrum_switchdev: Handle SWITCHDEV_PORT_ATTR_SET net: mscc: ocelot: Handle SWITCHDEV_PORT_ATTR_SET staging: fsl-dpaa2: ethsw: Handle SWITCHDEV_PORT_ATTR_SET net: switchdev: Replace port attr set SDO with a notification net: Remove switchdev_ops .../net/ethernet/mellanox/mlxsw/spectrum.c | 12 -- .../net/ethernet/mellanox/mlxsw/spectrum.h | 2 - .../mellanox/mlxsw/spectrum_switchdev.c | 24 +-- drivers/net/ethernet/mscc/ocelot.c | 32 +++- drivers/net/ethernet/mscc/ocelot.h | 1 + drivers/net/ethernet/mscc/ocelot_board.c | 2 + drivers/net/ethernet/rocker/rocker_main.c | 23 ++- drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 26 +++- include/linux/netdevice.h | 3 - include/net/switchdev.h | 42 ++--- net/dsa/slave.c | 23 ++- net/switchdev/switchdev.c | 147 +++++++++--------- 12 files changed, 200 insertions(+), 137 deletions(-) -- 2.17.1