Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1235222img; Tue, 26 Feb 2019 17:15:20 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib4ym4Ks0i+HJYCOvYoKXPcrfrn7cTghxcr/vqOMF0j82Pu6CK1A9oSypuo1Q3kOQYnZhTw X-Received: by 2002:a65:43c1:: with SMTP id n1mr375131pgp.248.1551230120789; Tue, 26 Feb 2019 17:15:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551230120; cv=none; d=google.com; s=arc-20160816; b=VCYBlCh54VXP2GPdrOYOoZzZuzPi8jeO0pCBTH9xLOTos3GkEDETkPIxEy/ZC79WJi gMUm9lvrN6MN+jkCk9wfCq73+Okae2lox1qJ6Vj0Qqj2kqoQcoEghZi/jvmaIG6rN3HW qhqg7bnhnUDQlLzispGUm5RXVwa4u4cL9xUO/+UEGmCSP8NUOGJH+KbJ7bF/Qe68csMy YlRstd+Dkfh40Ch4NaemsAAAFg7rCMW9WPuqbyqUwglNMokg5pOK0Iz0U3u5i2Jf40F7 yGxeX41+tVNZy3jhCLsJEZbF/OUXFby8B2L5DMbdniBfXGvlNm4ebka17ryoI4UXk0AP Zi3Q== 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=cH9oJKpXYpzUBm/E3y8LZkm21TWeyoHh6mJNc57m+hA=; b=WbW9xV7McEZ+U+4cfPlZCiM1/RHkkqSFCNL6Rv7AfMFhZkm8yBB/zUetuvWx0j7HmL 3sdGaM1ZO9aaZqTVID+GpCt8yu4lvV4V0MfbRIAeK+HMOrW1cU+eI71iU8bdgYafRXFB +90/88dtMyEb9Eokz9bVQA0Da0BNsWqFagfA9NPF/gi9te39f9IbKkmfSJfl6GDi4wZY g52q4Bg5FedxjtVGkJ8QNamdMb+pw4dZYXSQAy9VS7il4wziytONLwBo/zS6gcxTINlI Xfx007OFk8EQZNaNX+9zgBn9TO2QEnPMO8ySGn8vWcNyKB0gWyzYrJMjlfsDyk241Crw THHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PyWycX+S; 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 p6si9789651pga.151.2019.02.26.17.15.05; Tue, 26 Feb 2019 17:15:20 -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=PyWycX+S; 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 S1729364AbfB0BOi (ORCPT + 99 others); Tue, 26 Feb 2019 20:14:38 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:40416 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727998AbfB0BOh (ORCPT ); Tue, 26 Feb 2019 20:14:37 -0500 Received: by mail-pl1-f196.google.com with SMTP id bj4so7105763plb.7; Tue, 26 Feb 2019 17:14:37 -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=cH9oJKpXYpzUBm/E3y8LZkm21TWeyoHh6mJNc57m+hA=; b=PyWycX+ScpJfmaeaAtaJ3Y94FGziaYuQ1mEBYYDcAbP4Lz7Hd2pubw5AFiwns4R74a ft6d0ZOCS+0g1Axpue7TY/5w5O/4yCiGpPH2WRhi1zm7yPcNoDuadnARPxPzSRLiMqaE faIaUlMCIZimDXEd+PxZbL5kXerf/ZvpR5XaiBJKdkUtM6QL9+mbgboCmiC2JxjN4+UJ hQxY11DbjIDXwO+FU1M8kq9uKVX47CZZsIsco60AaK1ET4tntom7qDpJaCGfTRbQHiZX Nb/OGKRFJF0fJNfc4RVc44voNsxk96KE6QVl28vD3iEcwEzJvh7bcb0fdfb9GZ92w5jW DpBQ== 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=cH9oJKpXYpzUBm/E3y8LZkm21TWeyoHh6mJNc57m+hA=; b=anRemZwP41QGjfZ69RTUldW/eNv1ISH211+mzQ0uK+MyjQQO/tLkQqK6dKGCjQf5MH FqjPGVcqdbeiDbrXorekd8hxAnjnsQwI8bBb1EC8PzGIt0Q2F6G2hdBUqe4rPPkeihgJ TtZeIDPGn7PJAMQ9tlnLxgrHIz1RR20VyXPnULADbExWXPmhgD+BDJ8wP8QR4FZtkWS3 +pgNibB90FtusfAJuxU9U3YaNHD1qIDfNNmd1lnl16nZd4mGV3OyeC9BA4jlU4BANcjv ceroaXH9MTEtwWx9bVpOqEmN8QgeY8Efv5PwtSZmN100RRraBw5CRcYbfE7bAIA3zvNU 7ijg== X-Gm-Message-State: AHQUAuYJvwRbwUU1EwvoN4MaSRI76NgWOtSUfFpd+f55K8X4GgV0uf0H Gm1sK/UrOIMypQKsWXt5z45yL9r/ X-Received: by 2002:a17:902:aa47:: with SMTP id c7mr4446378plr.338.1551230076336; Tue, 26 Feb 2019 17:14:36 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id q28sm21885221pgl.35.2019.02.26.17.14.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Feb 2019 17:14:35 -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 v2 0/8] net: Remove switchdev_ops Date: Tue, 26 Feb 2019 17:14:19 -0800 Message-Id: <20190227011427.16487-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, hopefully this captures your comments done on v1, if not, can you illustrate with some pseudo-code what you had in mind if that's okay? Changes in v2: - do not check for SWITCHDEV_F_DEFER when calling the blocking notifier and instead directly call the atomic notifier from the single location where this is required 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 | 24 +++- include/linux/netdevice.h | 3 - include/net/switchdev.h | 38 ++++--- net/bridge/br_switchdev.c | 7 +- net/dsa/slave.c | 23 +++- net/switchdev/switchdev.c | 104 +++++++++++++----- 13 files changed, 203 insertions(+), 92 deletions(-) -- 2.17.1