From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 1E2FC4025D DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 37807401A0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=5+moI56BVGSpSI7NRhPLKmv5unmEMYSjuvcZ0Mb6yFY=; b=n3e/n0SREsvjcgxpduufQ2rlt6toRTNhJcM8JrQeukA4/U+lHZXB9kDA1SzJCqKoT0 uzMvbfUa4yBKehzvw6CpQ0/+RGtr98Q+GlVJCLx7kMTL0j/ch+07wVR8eDcezjZh5Pu3 mu9Gv5XMXYG476C5JuGodX3JWHum1X4GtHuB/Wg1pTUINexkXK3cTo3XxG9Q+wFobBm4 C1F1DY0WLuplv+d+DUK/C9xZay8xesM+HxCckaUeaF4KNzMkLOGtg9QILXHcmmRTjbdk EhsEldZIGzvL90+ifSyKLnLUn58oegecqiu/pPXG8zkAv6DAG6WT530qcPmhcgujw9Td VQ3g== From: Vladimir Oltean Date: Tue, 8 Nov 2022 16:16:26 +0200 Message-ID: <20221108141626.eymqr6lomtppeaek@skbuf> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Bridge] [PATCH net-next 01/15] bridge: switchdev: Let device drivers determine FDB offload indication List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Petr Machata Cc: Ivan Vecera , bridge@lists.linux-foundation.org, netdev@vger.kernel.org, Nikolay Aleksandrov , Jiri Pirko , Ido Schimmel , "Hans J . Schultz" , Eric Dumazet , mlxsw@nvidia.com, Roopa Prabhu , Jakub Kicinski , Paolo Abeni , "David S. Miller" On Tue, Nov 08, 2022 at 11:47:07AM +0100, Petr Machata wrote: > From: Ido Schimmel > > Currently, FDB entries that are notified to the bridge via > 'SWITCHDEV_FDB_ADD_TO_BRIDGE' are always marked as offloaded. With MAB > enabled, this will no longer be universally true. Device drivers will > report locked FDB entries to the bridge to let it know that the > corresponding hosts required authorization, but it does not mean that > these entries are necessarily programmed in the underlying hardware. > > Solve this by determining the offload indication based of the > 'offloaded' bit in the FDB notification. > > Signed-off-by: Ido Schimmel > Reviewed-by: Petr Machata > Signed-off-by: Petr Machata > --- Reviewed-by: Vladimir Oltean