Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1109205imj; Thu, 14 Feb 2019 01:12:00 -0800 (PST) X-Google-Smtp-Source: AHgI3IaGg5SZb6F8lLzdBEYR3imM5/kFX1yUziQO0Mi3P2ZyqI9ssfO9VUAPwxAvg5MMkmVU0b9I X-Received: by 2002:a63:c04b:: with SMTP id z11mr2732634pgi.135.1550135520648; Thu, 14 Feb 2019 01:12:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550135520; cv=none; d=google.com; s=arc-20160816; b=kTVgsZ+h9amfRyxwp/PPLOoTuc+NEdohDiEg4DpZ8fvus/2YOGel+cz2dpScNnY/t5 HfCrIhF4z8mgm5HWB/x9v+1ddsc3sYwi2uufVhfy3F0IIOsjea+Eq7q7l7fD3oWYBoSg Q8sRx41WQSrmS7sSSXTN6WviKBNnojkbWMAPqp/WqbBfqb5sFfeitk2yUCKS8EIVEssz favxXVu0hdnY6a/v4lwdFQM+8i8V6HMPmuRhL7/05nyTJTFvxbBqnY3WIIwilMZ4C4k8 gAg7BJYHDCY5ZdvvCDRHForBfMNQ/IdlxtuNM3KbPpMYyVlb0uLkPehDP9V0c33SY9c/ ExFQ== 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=yH0+HAx5nlwub69336QwKNCKOG2nZFkQBO4sLZZiCxQ=; b=xzn9u96cJrKXF1DkwmvMfE3oiWctSUZHW85YY5okVz0/3PuX4c/1SyqPjHlo+5NrW5 2HmqrES9+Wf21CVHxrCInEf0PpDEdIV9n48rv5MuIDBe+AnO+GV1LMo/+rTVce8Do9++ VLL+PitCK5TsQ8+8n2EUAuAXFjKixQurJEwsoS9rPaFelW2NyJtPYT6xpgh0o0Gs8utl 4T8PR+h4POKumCbClyJ/MqLIxtpco27bl0ByL6LvJSFv/dAgpafb+R2Rg3sudliAtqNR OC0mSzovYnUxZXLY0nUCnBNUARVwQVR3yJqUVnRddVsqGPIKoRE3Pr2yL5XszwCZA3IX 0WEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DAMYPy44; 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 r135si2059532pfc.123.2019.02.14.01.11.45; Thu, 14 Feb 2019 01:12:00 -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=DAMYPy44; 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 S2389325AbfBMWHN (ORCPT + 99 others); Wed, 13 Feb 2019 17:07:13 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:46197 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729139AbfBMWHM (ORCPT ); Wed, 13 Feb 2019 17:07:12 -0500 Received: by mail-pf1-f196.google.com with SMTP id g6so1826874pfh.13; Wed, 13 Feb 2019 14:07:12 -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=yH0+HAx5nlwub69336QwKNCKOG2nZFkQBO4sLZZiCxQ=; b=DAMYPy44Dh8jB5zXG7Vw6j3qR/lSAeS1xx+A74NqsGs98Os0bCd+SFSmc6prkHZpWy g4Kh5cPkLSde4mc4L4iX5GVlWps2mjyh7LPidLNtzAU3l9j/L6gt3AFdYmg6LDRk+hRL PChCcKaewiwYkPglASE+h+hIsGFfIjudGjtquvDZlpSu6Weg4gBW5cotwLXKt1G0T3hw mUr1i7+qNeaXStCFGUfCPK8mAufmzN/bklcifhcO/7NTYmCpT13dbeQdEUK8hWpWVskj R8NVbEnbwPCa/a/BtoESHXExviQ4lmkKPbl0OUCIn2BvAKIDPIoj/O+vUTRiaSWPU7Ys JKdQ== 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=yH0+HAx5nlwub69336QwKNCKOG2nZFkQBO4sLZZiCxQ=; b=h3F/F16f1WfKyvijNl+xlvxRA8uWjRdvceNUC4qgu9bctjH04pU/IRpmh3tgfEgaRG gR2GkowuExIsqxemMp8gecHdrUOcbqSigyi3uxDkqDbmLIe6v3pli3HqCabBm+yiLgaQ Lv3547gROw/X2kvGZ3qs5boQgEibOOoFPFIjoYSY8O4FvDwGg1UH8zUE8mebSvO/F/UE njgAvopHlc0SXgsNsvcMcyAL6batlkeDqxCB/2Fc7IQoaz60tr8o7pknotl9hZ4OaYdV wuQDj4x/a7WZU9DNuw6fFZmk23F1W8eC0pL9Ho2ItaWf0oHB2PxZ+09N2NZATE+g4whC w4ew== X-Gm-Message-State: AHQUAuZrU2qHiCM8e5vzeMjpomZjbANhea5Fv0bBV0HRLP8jyCSzXkti HGRLsAIH5DFBgcp7u+HRIobhrW/8 X-Received: by 2002:a62:2ad6:: with SMTP id q205mr367455pfq.243.1550095631111; Wed, 13 Feb 2019 14:07:11 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id o1sm383735pgn.63.2019.02.13.14.07.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 14:07:10 -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/9] net: Get rid of switchdev_port_attr_get() Date: Wed, 13 Feb 2019 14:06:29 -0800 Message-Id: <20190213220638.1552-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 splits the removal of the switchdev_ops that was proposed a few times before and first tackles the easy part which is the removal of the single call to switchdev_port_attr_get() within the bridge code. As suggestd by Ido, this patch series adds a SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS which is used in the same context as the caller of switchdev_port_attr_set(), so not deferred, and then the operation is carried out in deferred context with setting a support bridge port flag. Follow-up patches will do the switchdev_ops removal after introducing the proper helpers for the switchdev blocking notifier to work across stacked devices (unlike the previous submissions). Florian Fainelli (9): Documentation: networking: switchdev: Update port parent ID section net: switchdev: Add PORT_PRE_BRIDGE_FLAGS mlxsw: spectrum: Check bridge flags during prepare phase staging: fsl-dpaa2: ethsw: Check bridge port flags during prepare net: dsa: Add setter for SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS rocker: Check bridge flags during prepare phase net: bridge: Stop calling switchdev_port_attr_get() net: Remove SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS_SUPPORT net: Get rid of switchdev_port_attr_get() Documentation/networking/switchdev.txt | 15 ++--- .../mellanox/mlxsw/spectrum_switchdev.c | 30 +++------ drivers/net/ethernet/rocker/rocker_main.c | 67 +++++++++---------- drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 27 +++----- include/net/switchdev.h | 13 +--- net/bridge/br_switchdev.c | 16 ++--- net/dsa/dsa_priv.h | 3 + net/dsa/port.c | 11 +++ net/dsa/slave.c | 22 ++---- 9 files changed, 88 insertions(+), 116 deletions(-) -- 2.17.1