Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2225897img; Wed, 27 Feb 2019 12:41:00 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibckgvno8e/2UCaMtqJTjEvDopC5xUagLiybwIt6y9XcOjjaLCQYWLSwzhzf/Bh67XnMHSI X-Received: by 2002:a63:470a:: with SMTP id u10mr4885653pga.17.1551300060279; Wed, 27 Feb 2019 12:41:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551300060; cv=none; d=google.com; s=arc-20160816; b=TjAyd+FJV2N77XogwfuUEKZCK3v0OrUYN4Jgp4c0Rh36CgvuuMtmFdawMTPy2Lcdle Rz4XClRCJRwmcm2x2ZuGwCU9s8q+FVy21uLZvzrR4vgXCeuLEbiQFCvyXOgDlChtREgl ZeEDVJj6vI0tm3j/s9X7Um0Yqca/2ru6/WOXrMKJvq0EpkU9zk+g8mpFEoOZT9KVoKFA Ic4jdSLkXcVBDTFyqWrquarpSMcfvXE/6trN0XZUbu1xZb7ll9jWUzgLjFqVNOq64gUS 1lua0Nd6+wrIpxmU2SQ85kJ0t+DSbE5lg0tnzgv3B9zOUL/6S+SFPGd+MQ35mfi/ejJp fA+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=rhGupzntcOCkAF7rrRt1/YLEtOpzntj6QCbMxnhngvs=; b=BaiJiYLUbsUy/qth0taRggJtA/E19G2RDACco6yWoOC4kg6M4ZR6xYlBME17Ufg3me I8BneMaMQgyFCyJljGRPIspBO/IvI81CyUg60gMA8wvqv9gvLHaBPfHTMtEwMaXn5r7U 5ZIanMC9OF9ltfG58WFiwWvYB3sa28J4Bp4MsgOXobqVJm5Dvy1yOIXteJEnnPDSHzv2 aOd3NlDVwuZKFOeT3DG0INwDTfqlXVWKBEcMa0RMHoX5hw/VlmEeFIyODu5J3mskLo3R uUZwxOOkK6JHWr5qGV+2VoXDgDXC2ecirEBSSAkDXC4bp/TZ66+BhwzOIHh7DJf7f+dq y78g== 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 i62si16049713pfc.17.2019.02.27.12.40.43; Wed, 27 Feb 2019 12:41: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; 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 S1730190AbfB0UkX (ORCPT + 99 others); Wed, 27 Feb 2019 15:40:23 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:48878 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729291AbfB0UkX (ORCPT ); Wed, 27 Feb 2019 15:40:23 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id D626E12106D63; Wed, 27 Feb 2019 12:40:21 -0800 (PST) Date: Wed, 27 Feb 2019 12:40:19 -0800 (PST) Message-Id: <20190227.124019.281722845670775310.davem@davemloft.net> To: f.fainelli@gmail.com Cc: netdev@vger.kernel.org, idosch@mellanox.com, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, bridge@lists.linux-foundation.org, jiri@mellanox.com, andrew@lunn.ch, vivien.didelot@gmail.com Subject: Re: [PATCH net-next v3 0/8] net: Remove switchdev_ops From: David Miller In-Reply-To: <20190227194432.725-1-f.fainelli@gmail.com> References: <20190227194432.725-1-f.fainelli@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 27 Feb 2019 12:40:22 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Florian Fainelli Date: Wed, 27 Feb 2019 11:44:24 -0800 > 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 v3: > > - added Reviewed-by tags from Ido where relevant > - added missing notifier_to_errno() in net/bridge/br_switchdev.c when > calling the atomic notifier for PRE_BRIDGE_FLAGS > - kept mlxsw_sp_switchdev_init() in mlxsw/ > > 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 Series applied, thanks Florian. I'll push this out after my build tests complete.