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=vx/WSBXnhReQ11bAByZd5aM5wpYJK6NbILB5Q6x+bNs=; b=eAIUJfiyEplPuCEgqfXclCCwbQfgY3kmF1h0Dp6S+dTg/WdJ1lAoZShy9NRTHzIz1uYe825LwdQSR9vO5x09WKrGUAicaHdz+dHab+1P2ZP9etoO70aPwi3/W6y8F0EddRE0pgVXvgjHEy/VcOVG6d3yxguX6Q7h3ssW484ydn8= From: Petr Machata References: <877enrzp42.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me> Date: Fri, 25 May 2018 20:00:37 +0300 In-Reply-To: <877enrzp42.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me> (Vivien Didelot's message of "Fri, 25 May 2018 12:17:33 -0400") Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Bridge] [PATCH net-next 6/7] net: bridge: Notify about bridge VLANs List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vivien Didelot Cc: devel@driverdev.osuosl.org, f.fainelli@gmail.com, andrew@lunn.ch, nikolay@cumulusnetworks.com, netdev@vger.kernel.org, bridge@lists.linux-foundation.org, idosch@mellanox.com, jiri@mellanox.com, razvan.stefanescu@nxp.com, gregkh@linuxfoundation.org, davem@davemloft.net Vivien Didelot writes: >> + } else { >> + err = br_switchdev_port_obj_add(dev, v->vid, flags); >> + if (err && err != -EOPNOTSUPP) >> + goto out; >> } > > Except that br_switchdev_port_obj_add taking vid and flags arguments > seems confusing to me, the change looks good: I'm not sure what you're aiming at. Both VID and flags are sent with the notification, so they need to be passed on to the function somehow. Do you have a counterproposal for the API? Thanks, Petr