From: Andrew Lunn Subject: Re: [PATCH net-next 0/2] bridge: FDB: Notify about removal of non-user-added entries Date: Tue, 1 May 2018 19:54:39 +0200 Message-ID: <20180501175439.GB1265@lunn.ch> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, ivecera@redhat.com, davem@davemloft.net, stephen@networkplumber.org, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, jiri@resnulli.us To: Petr Machata Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:46168 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755898AbeEARyn (ORCPT ); Tue, 1 May 2018 13:54:43 -0400 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Tue, May 01, 2018 at 07:04:19PM +0200, Petr Machata wrote: > Device drivers may generally need to keep in sync with bridge's FDB. In > particular, for its offload of tc mirror action where the mirrored-to > device is a gretap device, mlxsw needs to listen to a number of events. > SWITCHDEV_FDB_{ADD,DEL}_TO_DEVICE would be a natural notification to > listen to in order to keep up with FDB updates. > > However, for removal of FDB entries added due to device activity (as > opposed to explicit addition through "bridge fdb add" or similar), there > are no notifications. Hi Petr Could you explain this some more. Why is mlxsw special in that it needs this, but other drivers don't. The b53 driver supports tc mirror, for example. Andrew