Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp322737imp; Thu, 21 Feb 2019 02:07:11 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ6EWs4C4XrDVOmYkMTslmFUz/0T/UnAC/slCXxyBWqMSykIisTUfAaRQ95R2kaielRn1JC X-Received: by 2002:a63:295:: with SMTP id 143mr32568759pgc.362.1550743631379; Thu, 21 Feb 2019 02:07:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550743631; cv=none; d=google.com; s=arc-20160816; b=XKafqKNf5uLI4uGKPJEpc7KGOfwcIvUCK4AS8jVtYVl56zNL0vyyu/qvp4qzksjY66 mtAAjMqlU4aBIQtjQ1O1cdF9LBa7tTn4EKDwwBfzQAVZeJfEWy8C0A5U1y+28XaTXYZo XzMVmLoprrS6JiG7mGrHKalq6YNiP8fP/JGC3MBmRRrsanY+M6T8JbPPsMZ5wIm6D3uY ClzORkRT/TjGEL/ubUflk/aYqgTCp8Wx5z+Issc+LqrdxaqzPke7l9RwwUJflQKLPiJe asoXZwHPypephoDR2ks5PGI+nrAALYGXsLJFr8+RsIAGrGFFyAE+J2UqjhnoNnFvGLT4 wv+A== 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=w3slMKyScVk3c/M1GuHIqCx1zuG1ZZC5YGoJKU1LGyg=; b=A+kMqRFMlSG6q4fA7NLcV+jizPwQ8fdDl/ZCYnPzz324ru5i14KvBzALRJ2Mc1QqaK /rdrp3QOmhIU3inniZzJ6DS52uiYh3myqV/1KpJeIuFUspLy/60dHqBaUgYCvCfPEPCk 6dk1eRBSEfBi3HJ1jZdkk4kiLZIpnhn2FTXJr957tAlmxLdNE5Kv+9y+oiBBlq6ubWTu g3pKiajnR8bvEsvDcGpEGejLboM8venPJAfi6WpiyVkrl4LkdboZlJTr1ysWfzTXSiO5 V7CpJ/0q6giHcgQBwxlZ3/vASHm0m9UAT1XoWQyKO/yhvNoIgCD75oLfi7J7vtWCQ+U+ kodQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=c3lIDbUa; 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 r138si14635173pgr.370.2019.02.21.02.06.55; Thu, 21 Feb 2019 02:07:11 -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=c3lIDbUa; 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 S1727457AbfBUKGW (ORCPT + 99 others); Thu, 21 Feb 2019 05:06:22 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40193 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbfBUKGV (ORCPT ); Thu, 21 Feb 2019 05:06:21 -0500 Received: by mail-wr1-f67.google.com with SMTP id q1so29253370wrp.7 for ; Thu, 21 Feb 2019 02:06:20 -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=w3slMKyScVk3c/M1GuHIqCx1zuG1ZZC5YGoJKU1LGyg=; b=c3lIDbUaNjNLMyKHG9p/+qRfL45neoeyY+a3GQMuBg+G2+iGr2jvRHpQ/C4XiiVTt0 PHmLhyDfF63qME6vUgspNt7diDY8DnHztkCKe1BQAJeexxyQZseSmz1ZgdtO8Y/yy8U9 8OONkTl5FrtpyVSfe3CdlZxTT+xeLLVAfl0XeVCKr3i6FNevbGGx/nRb3/JdHXNwq1DV xuTnU1dElwmE14bsgQO5NrpJnNGtg+0NgVgxaQtLq6FmUizkppyOdaW75LGrY+QRMV7t f0ouAQV/9rGQY9z/Cp3mAkt4RzFmTcPvyR7SuJLggCZGP79JmT0Nte92ixHMNsPmGWjR +b9w== 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=w3slMKyScVk3c/M1GuHIqCx1zuG1ZZC5YGoJKU1LGyg=; b=LnrCNbvYmn9P//vjkW5WOQS8zlZhKQnyIHAQMRGK+IzZtgSsIG9DyptkRqgihbH/0B RmJsRcn/vmWdGVWOFN319/2oQX1xYMEYE9jC47zNePY2xqx9AUTfzKC/6SjGnPQNvOrE T9/oAVMZXukr0CBfwPIcBGYBsaabyXVyYw5IntXLczFIVJjLAleaTnNQonj54xZ0bEcP H0Gw7Vnjj7m/1F8uIdCoyIKIDhaY1O2rvVKkxlWOYn6VtoAAV/9VezxZYbjFI3x3/HDZ 5VUKlN5Ej1p8g/f7WXIUGgDVKnTLLgoxnPVJbZYxcraU2Lbhd2uIgNLbkn+63aAjFKZg +DeQ== X-Gm-Message-State: AHQUAuausTUVMQkfVqUXQ7++vl1eBJENxLb8yUnEV4NpX1nxDYDCSvgi VNS9arFXNOZVDPEffcMe3nMPwA== X-Received: by 2002:a5d:6a8e:: with SMTP id s14mr15917104wru.31.1550743579902; Thu, 21 Feb 2019 02:06:19 -0800 (PST) Received: from localhost (ip-89-102-139-73.net.upcbroadband.cz. [89.102.139.73]) by smtp.gmail.com with ESMTPSA id v4sm9499290wme.6.2019.02.21.02.06.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Feb 2019 02:06:19 -0800 (PST) Date: Thu, 21 Feb 2019 10:56:40 +0100 From: Jiri Pirko To: Florian Fainelli Cc: netdev@vger.kernel.org, "David S. Miller" , Ido Schimmel , open list , "open list:STAGING SUBSYSTEM" , "moderated list:ETHERNET BRIDGE" , jiri@mellanox.com, andrew@lunn.ch, vivien.didelot@gmail.com Subject: Re: [PATCH net-next v3 1/8] net: switchdev: Add PORT_PRE_BRIDGE_FLAGS Message-ID: <20190221095640.GD2312@nanopsycho> References: <20190221005826.26317-1-f.fainelli@gmail.com> <20190221005826.26317-2-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190221005826.26317-2-f.fainelli@gmail.com> 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 Thu, Feb 21, 2019 at 01:58:19AM CET, f.fainelli@gmail.com wrote: >In preparation for removing switchdev_port_attr_get(), introduce >PORT_PRE_BRIDGE_FLAGS which will be called through >switchdev_port_attr_set(), in the caller's context (possibly atomic) and >which must be checked by the switchdev driver in order to return whether >the operation is supported or not. > >This is entirely analoguous to how the BRIDGE_FLAGS_SUPPORT works, >except it goes through a set() instead of get(). > >Signed-off-by: Florian Fainelli Acked-by: Jiri Pirko