From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikolay Aleksandrov Subject: Re: [PATCH net-next 1/2] switchdev: Add fdb.added_by_user to switchdev notifications Date: Tue, 1 May 2018 20:49:57 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: ivecera@redhat.com, davem@davemloft.net, stephen@networkplumber.org, andrew@lunn.ch, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, jiri@resnulli.us To: Petr Machata , netdev@vger.kernel.org Return-path: Received: from mail-wr0-f194.google.com ([209.85.128.194]:37270 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932114AbeEARuA (ORCPT ); Tue, 1 May 2018 13:50:00 -0400 Received: by mail-wr0-f194.google.com with SMTP id c14-v6so11453970wrd.4 for ; Tue, 01 May 2018 10:49:59 -0700 (PDT) In-Reply-To: Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 01/05/18 20:04, Petr Machata wrote: > The following patch enables sending notifications also for events on FDB > entries that weren't added by the user. Give the drivers the information > necessary to distinguish between the two origins of FDB entries. > > To maintain the current behavior, have switchdev-implementing drivers > bail out on notifications about non-user-added FDB entries. In case of > mlxsw driver, allow a call to mlxsw_sp_span_respin() so that SPAN over > bridge catches up with the changed FDB. > > Signed-off-by: Petr Machata > --- > drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c | 4 ++++ > drivers/net/ethernet/rocker/rocker_main.c | 2 ++ > include/net/switchdev.h | 1 + > net/bridge/br_switchdev.c | 10 +++++++--- > net/dsa/slave.c | 5 ++++- > 5 files changed, 18 insertions(+), 4 deletions(-) > Reviewed-by: Nikolay Aleksandrov