[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b73e4afe-07a7-08df-cc29-c2490265f2f8@nvidia.com>
Date: Wed, 27 Oct 2021 11:28:23 +0300
From: Nikolay Aleksandrov <nikolay@...dia.com>
To: Ido Schimmel <idosch@...sch.org>,
Vladimir Oltean <vladimir.oltean@....com>
Cc: netdev@...r.kernel.org, Ido Schimmel <idosch@...dia.com>,
Jakub Kicinski <kuba@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Roopa Prabhu <roopa@...dia.com>, Andrew Lunn <andrew@...n.ch>,
Florian Fainelli <f.fainelli@...il.com>,
Vivien Didelot <vivien.didelot@...il.com>,
Vladimir Oltean <olteanv@...il.com>,
Jiri Pirko <jiri@...dia.com>
Subject: Re: [PATCH net-next 6/8] net: bridge: move br_fdb_replay inside
br_switchdev.c
On 27/10/2021 11:16, Ido Schimmel wrote:
> On Tue, Oct 26, 2021 at 05:27:41PM +0300, Vladimir Oltean wrote:
>> br_fdb_replay is only called from switchdev code paths, so it makes
>> sense to be disabled if switchdev is not enabled in the first place.
>>
>> As opposed to br_mdb_replay and br_vlan_replay which might be turned off
>> depending on bridge support for multicast and VLANs, FDB support is
>> always on. So moving br_mdb_replay and br_vlan_replay inside
>> br_switchdev.c would mean adding some #ifdef's in br_switchdev.c, so we
>> keep those where they are.
>
> TBH, for consistency with br_mdb_replay() and br_vlan_replay(), it would
> have been good to keep it where it is, but ...
>
>>
>> The reason for the movement is that in future changes there will be some
>> code reuse between br_switchdev_fdb_notify and br_fdb_replay.
>
> this seems like a good reason, so:
>
> Reviewed-by: Ido Schimmel <idosch@...dia.com>
>
> Nik, WDYT?
>
Good point, it'd be nice to have them all in one place, since they all deal
specifically with switchdev we can move them to br_switchdev.c. We can also
rename them similar to other functions in br_switchdev, e.g. br_switchdev_fdb_replay
Thanks,
Nik
Powered by blists - more mailing lists