From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SGSR5mGN+meGVq2pHYzBlLBhcWRF4FDb9ZnxN4ndLNk=; b=F9oHKJH+L+j8gBCRjmsTVi7ihjMW9YaIK+KLQH2umzC8GonqJqilMlaXiKIZOedldpKggax0izEwnR5Fc3cSZ/Z1IE3l+rxwc7Ko6Ms6kbUQ4Ua+eIU8JcGSA1wgaGJ8A2YNi6mJ7zJymxkq3VcTVW8BE7FYTdif2j5kQP/pd/Y= From: Ido Schimmel Date: Thu, 21 Feb 2019 09:55:53 +0000 Message-ID: <20190221095551.GA26289@splinter> References: <20190221005826.26317-1-f.fainelli@gmail.com> <20190221005826.26317-2-f.fainelli@gmail.com> In-Reply-To: <20190221005826.26317-2-f.fainelli@gmail.com> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Bridge] [PATCH net-next v3 1/8] net: switchdev: Add PORT_PRE_BRIDGE_FLAGS List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Florian Fainelli Cc: "open list:STAGING SUBSYSTEM" , "andrew@lunn.ch" , "netdev@vger.kernel.org" , "moderated list:ETHERNET BRIDGE" , open list , "vivien.didelot@gmail.com" , Jiri Pirko , "David S. Miller" On Wed, Feb 20, 2019 at 04:58:19PM -0800, Florian Fainelli 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. >=20 > This is entirely analoguous to how the BRIDGE_FLAGS_SUPPORT works, > except it goes through a set() instead of get(). >=20 > Signed-off-by: Florian Fainelli Reviewed-by: Ido Schimmel