Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3035453imj; Mon, 11 Feb 2019 12:41:18 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia37oVZm8GfD2VUws8JFQnGxEJLGfL1uVXBEb5QBgKfAAzXeAFj1rmPi2G12xsLywMOm4NC X-Received: by 2002:a17:902:a58c:: with SMTP id az12mr76395plb.299.1549917677923; Mon, 11 Feb 2019 12:41:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549917677; cv=none; d=google.com; s=arc-20160816; b=wRPJ2p/AFRB4AkPSZy1x/Ge9LidnV3QX+JEqS3pM1tFwLoLzVpCc5SvcYpjIRo3qYY Av5MlInW3hJJatL+CRKO4QUAVRrASuu2OjUhD2um59VzMGSfE70Dx4q3ydf831v9AFmT 70zvxATQb7BBEOzXTFAwYxbIEUV9udSDVVgfStngH4xyg5MaqqilowR92F8dZ2kkZ6SV w7TaPm8M0knJtKFekOMYfoVQfpBWLENMRZDdgg5pXABRRXCMSHJ9UHmz7qMhlwVjgj7B YqfkobKvnVonDJfdMzbfrUxQmCRA9e7VjnXjLvu0BZ4kOGLX58F7vBIAPuUmbW0TPU1R UvHg== 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=SkmoCuGIG7bBgkarhLHVf2wX33rKnc3mr2F6ISg3h5w=; b=1CKcGwGSPazQ8FqqDVomj2nqPw8NiQL0AhZgxghpNnaDaBJIX5EkTN+s0ux4qsBHDd i2hGW8REQGa7ncvr9tbCARA00bIswcKHiZ0FXM59E8zLmQJFZIxNpgouUhiIVwlrK2AE KIXMpOdicC2AgNyGuVkjzGESdLwErN/yY4K8/ud4I8waqZYTWuoOf49Y2zPJwxEPiA5Q r6WZ3Ylh3q5NYXzgGX/RB7TzUuxOiBJd9XI3bF0AV5L0HqdAk6pCR4FBLwYkISmUl2RE ZfettspXD4/Afx3uLTOulI+0tlV/s/pnePUWTdq430hS8LLOu/1wVUJr+/RVUcV9XnSN KqUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=taMfTJfj; 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 z38si10016586pga.193.2019.02.11.12.41.02; Mon, 11 Feb 2019 12:41:17 -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=taMfTJfj; 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 S2387710AbfBKTK0 (ORCPT + 99 others); Mon, 11 Feb 2019 14:10:26 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35420 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732529AbfBKTKZ (ORCPT ); Mon, 11 Feb 2019 14:10:25 -0500 Received: by mail-pg1-f195.google.com with SMTP id s198so10636pgs.2; Mon, 11 Feb 2019 11:10:25 -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=SkmoCuGIG7bBgkarhLHVf2wX33rKnc3mr2F6ISg3h5w=; b=taMfTJfj4E+6QegTRVG2Wr9ySYJobUOvxco2ghCl1lfCGwEqglH/PXOhQ5HSPMYKg8 45Tf2UPVyberzHQ8+x5vsvwYmCFjY/tNbuAubqsoN2KotHzI0qvwgmL2uitpMDxI/tQ4 YMLQDD316l10/ZfuIfrS6ermOaK0fz4qw1cTsYE+y1kVfUDgaZToPgyGZFj4NbfN4ppC MdfQrnptrz88EXmr2vsJwCXGup/2RQWyqW1KsxK8FnkwFvFAUYvXfr7VRTa1Nvhc1MYq Grb6pAouoUBFcCLGKPmMgnQFDW+hYx9SBGuYJANfZBkCgGSJjba8w3Mc82LLELn3Q+3c Pw4Q== 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=SkmoCuGIG7bBgkarhLHVf2wX33rKnc3mr2F6ISg3h5w=; b=EywZq1YjAFtkZXsIcx6MncZnzRGlVqmAIe9mAwFMUFq9/AqGkYQarzKjPjpNfefGTo BRE9Rcyjvu5uyjiUydmt5dGRAGa1nFDiLrj3oKJaR1XkzfvWW26gcU7ydxACh3iJ0X2o CkFVhY0yq2VlJx6N2kIrMeh/PohZGk4aQUP0BGJ1GCu585YnDPR8Usf8e8UHdqr6G2ga tb0ixPzc1b3hs8MWTiuUmasTOQPB9ZtQMTDyscjEyryM2eNgcAd6WQgrQ4h+snT2KX4B QqvG7FdxrlbO1ZGwLoTYeULUnlJQborRuW2AFj6gdyE5ah2qPtOrHAnZ9PoYoWp6uGct uOrg== X-Gm-Message-State: AHQUAubfxEPOMupfuW8D9N1S6os/UCiVGR5KD40RkjKE3xlMs7BfkSf0 YGoJ5ZzutioZpqabB/qHW39taQ3h X-Received: by 2002:a65:62da:: with SMTP id m26mr34934837pgv.278.1549912224264; Mon, 11 Feb 2019 11:10:24 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id i24sm2167206pgg.14.2019.02.11.11.10.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 11:10:23 -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 v4 0/9] net: Remove switchdev_ops Date: Mon, 11 Feb 2019 11:09:52 -0800 Message-Id: <20190211191001.8623-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 finishes by the removal of switchdev_ops. To get there we convert the existing switchdev_port_attr_{set,get} switchdev_ops to use a blocking notifier, thus making it consistent with how the objects are pushed to the switchdev enabled devices. Please review and let me know what you think! David, I would like to get Ido's feedback on this to make sure I did not miss something, thank you! Changes in v4: - removed double space in Documentation/networking/switchdev.txt - added Jiri's Acked-by tags - added fall through annotations where appropriate Changes in v3: - dropped patches removing te need to get the attribute since we still need that in order to support different sleeping vs. non-sleeping contexts Changes in v2: - fixed bisectability issues in patch #15 - added Acked-by from Jiri where necessary - fixed a few minor issues according to Jiri's feedback: - rename port_attr_event -> port_attr_set_event - moved SWITCHDEV_PORT_ATTR_SET closer to other blocking events Florian Fainelli (9): Documentation: networking: switchdev: Update port parent ID section switchdev: Add SWITCHDEV_PORT_ATTR_SET, SWITCHDEV_PORT_ATTR_GET rocker: Handle SWITCHDEV_PORT_ATTR_GET/SET mlxsw: spectrum_switchdev: Handle SWITCHDEV_PORT_ATTR_GET/SET net: mscc: ocelot: Handle SWITCHDEV_PORT_ATTR_GET/SET staging: fsl-dpaa2: ethsw: Handle SWITCHDEV_PORT_ATTR_GET/SET net: dsa: Handle SWITCHDEV_PORT_ATTR_GET/SET net: switchdev: Replace port attr get/set SDO with a notification net: Remove switchdev_ops Documentation/networking/switchdev.txt | 10 +- .../net/ethernet/mellanox/mlxsw/spectrum.c | 12 -- .../net/ethernet/mellanox/mlxsw/spectrum.h | 2 - .../mellanox/mlxsw/spectrum_switchdev.c | 36 +++--- drivers/net/ethernet/mscc/ocelot.c | 26 ++++- drivers/net/ethernet/rocker/rocker_main.c | 30 ++++- drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 30 ++++- include/linux/netdevice.h | 3 - include/net/switchdev.h | 28 ++--- net/dsa/slave.c | 30 ++++- net/switchdev/switchdev.c | 107 ++++++------------ 11 files changed, 168 insertions(+), 146 deletions(-) -- 2.17.1