Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3865178imj; Tue, 12 Feb 2019 06:05:26 -0800 (PST) X-Google-Smtp-Source: AHgI3IbnwKdhhVvNNarjsad6H9iV402NYvf3p+Nbh3d1rEws6TiZetHI+FBNSLsrN3n8w9c1DKXh X-Received: by 2002:a17:902:a417:: with SMTP id p23mr4160080plq.187.1549980326405; Tue, 12 Feb 2019 06:05:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549980326; cv=none; d=google.com; s=arc-20160816; b=fXJSoFhK1jJ9qzxGJApmyR0d1gsibqwjbkkDsnf6q1O4jtTPeaAtxU2TcdI1lcbfwr hyW3/E5/o3ld/9CPLrQRmRq8yyv3qRnLDxck5dIMbeUhogJxkfi8MYlUdsR3jFf6+LaU dhszszq7Eb5vOcjmp1gIL0shU8kYAkO3+0yzbhz2ggqiLXa4dcuhkOq+A9Qw59GpmWvP yiTNyEZheedkFV66TcHdUd7o1gk7bfRx7ZIMgEARVBAr21rovcfzcWvNod1rNE77G/Zi rGSl1z54ef3QJPYkhl9Ek/4GHKcULnLJwu7Kvyu2YXYuJ6DyZ52HKgCX5qH4Vdufo2V5 i5GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lCalz13so0yT9FLlCRV3yI401Qfqpo2SioVUk5Ytw+U=; b=hql+3FeQw9zBqX3EfTMb++JkdREBwQKP5lb2SFEPyPnqiIsSnNVHCf5k7rHhTLgDc0 h06yo21rXa45Dkid0a3EtWERhAtSJ7zDzHUoRSWjfdVzJupJ7S+BcWWvU8EgymMvhkS4 4lnzVtCiQKjnjlQFuR11znPDcXYe9uVUiEf16QIJ1xa9eFQxVNdSmb5HMVFJeR9CnxgD nK2cQRPGHDU2ZhcX0b9RhXEhythAPIHqc9N1NxuKrGWNaa3vp5myD8MtNs7OF/rO2Lj1 wOnxrkAWeT5EVyxblcdEWEKXNTLB2T5AAigtrYYQKVLkx5zlj3FSUqsszZer9y005854 O3lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=NPtRoXUq; 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 l3si11285276pgp.285.2019.02.12.06.04.53; Tue, 12 Feb 2019 06:05:26 -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=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=NPtRoXUq; 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 S1729991AbfBLOCy (ORCPT + 99 others); Tue, 12 Feb 2019 09:02:54 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36984 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728126AbfBLOCy (ORCPT ); Tue, 12 Feb 2019 09:02:54 -0500 Received: by mail-wr1-f66.google.com with SMTP id c8so2817921wrs.4 for ; Tue, 12 Feb 2019 06:02:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=lCalz13so0yT9FLlCRV3yI401Qfqpo2SioVUk5Ytw+U=; b=NPtRoXUq4DLG2mTF5knAg5RoX+MMQUFH8mhBJahJNfCCfegveDPj8yW/tHkv/AqYqy b9ifMPeYVP4PXYmUfw4Q4uxxr2QjQ3JazFs62rFPGbU5gms7J90etQ+9INUJP/th9AFH lGaMsD+XUbqSylQl89lvCIZKUa4dZwZSKEgfM72Jy5CE91ITMMaKj1lf4sMPidzEsH09 VOEocgkjoUiIfvH5SLkyEUxt4fGMOcL2+QMhyTjoa8NeZt4v7ETzmEaWrs8alAZ1v1ZY pt144EE2eOzy+4nXhq6AePfTqE+7qvSoPPF/FyUa04Vml8xYVOzMP6Ns92sUmILOt8eQ nyFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=lCalz13so0yT9FLlCRV3yI401Qfqpo2SioVUk5Ytw+U=; b=G+DNtmAkn0ky0K6PMNMe1EIVSsu6T89DRTxjAukaNSrvxqH9OZ7tMnYjTMCvFChlLL fOSScBMhXUZx8qZLTC05pqPTQu3SpttOC6O0URi5fx5RFrOrOjIw1DuNY+LB6qLe9Mru TiQ+2c47reGb6IZbbcFaffj0tAGbU4r6cqH0LbHcm2GXzNKpwWuSV/g5cmW4m1VIo5Ib G5ylh3+Nb3kLWd6Y7kwyKUwr044KMHYINr7MttyVEEXnQxbc6xgeJkJRB+HtQ2//z1Ys uHKTprvwwbmqfXBUkKiepp9x4w4ZjUpbO4Kx19hIV6uQ4Lo/25/IZAirc9YR6EwL1WFL eSJw== X-Gm-Message-State: AHQUAuarBwFWULOhi5hUkxhGxWI6HeVMYeiLacbIHHoIf/ETIfxOeBZs /B2opTeG242PK4vUrE7+vWM/iQ== X-Received: by 2002:adf:ba8e:: with SMTP id p14mr2941271wrg.230.1549980172425; Tue, 12 Feb 2019 06:02:52 -0800 (PST) Received: from localhost (mail.chocen-mesto.cz. [85.163.43.2]) by smtp.gmail.com with ESMTPSA id v1sm27309249wrw.90.2019.02.12.06.02.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Feb 2019 06:02:51 -0800 (PST) Date: Tue, 12 Feb 2019 14:53:27 +0100 From: Jiri Pirko To: Ido Schimmel Cc: Florian Fainelli , "netdev@vger.kernel.org" , "David S. Miller" , open list , "open list:STAGING SUBSYSTEM" , "moderated list:ETHERNET BRIDGE" , Jiri Pirko , "andrew@lunn.ch" , "vivien.didelot@gmail.com" Subject: Re: [PATCH net-next v4 0/9] net: Remove switchdev_ops Message-ID: <20190212135327.GG2881@nanopsycho> References: <20190211191001.8623-1-f.fainelli@gmail.com> <20190212131443.GA13819@splinter> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190212131443.GA13819@splinter> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tue, Feb 12, 2019 at 02:14:47PM CET, idosch@mellanox.com wrote: >On Mon, Feb 11, 2019 at 11:09:52AM -0800, Florian Fainelli wrote: >> 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! > >Hi Florian, > >Why do you still keep switchdev_port_attr_get()? I believe we can remove >it and simplify things. > >After your recent patchset to remove 'PORT_BRIDGE_FLAGS', the only >remaining user of get() is 'PORT_BRIDGE_FLAGS_SUPPORT'. It can be >converted to a blocking set() with 'PORT_PRE_BRIDGE_FLAGS' (or a similar >name). Let's do that in a follow-up. > >I would like to make sure we're in sync with regards to future changes. >After this patchset to get rid of switchdev_ops we can continue to >completely removing switchdev (I believe Jiri approves). The Yes. >prepare-commit model is not really needed and the two switchdev >notification chains can be split into bridge and vxlan specific chains. > >Notifications sent in an atomic context can be handled by drivers >directly in this context. Similar to how FDB/route/neighbour are >handled. It will really simplify things. No need for the defer flag >anymore and tricks like 'PORT_BRIDGE_FLAGS_SUPPORT' and >'PORT_PRE_BRIDGE_FLAGS'. In the atomic context the driver can veto the >requested bridge flags, but program the device from a blocking context >(using a workqueue). Sounds good to me.