diff options
| author | Vladimir Oltean <[email protected]> | 2021-10-26 14:27:41 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-10-27 13:54:02 +0000 |
| commit | 5cda5272a4605c34740859378bf7a7940229feca (patch) | |
| tree | acbfa2105c0b67dd5c2a5d194eb3ee5a2675396d /net/switchdev/switchdev.c | |
| parent | net: bridge: reduce indentation level in fdb_create (diff) | |
| download | kernel-5cda5272a4605c34740859378bf7a7940229feca.tar.gz kernel-5cda5272a4605c34740859378bf7a7940229feca.zip | |
net: bridge: move br_fdb_replay inside br_switchdev.c
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.
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.
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
