bridge: switchdev: Allow clearing FDB entry offload indication
authorIdo Schimmel <idosch@mellanox.com>
Wed, 17 Oct 2018 08:53:29 +0000 (08:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 00:45:08 +0000 (17:45 -0700)
commite9ba0fbc7dd23a74e77960c98c988f59a1ff75aa
tree489690a0950dc15baf37a9d495a8cad5abeb7076
parent045a5a99141d96e6254664783e8afb4e298ae2c9
bridge: switchdev: Allow clearing FDB entry offload indication

Currently, an FDB entry only ceases being offloaded when it is deleted.
This changes with VxLAN encapsulation.

Devices capable of performing VxLAN encapsulation usually have only one
FDB table, unlike the software data path which has two - one in the
bridge driver and another in the VxLAN driver.

Therefore, bridge FDB entries pointing to a VxLAN device are only
offloaded if there is a corresponding entry in the VxLAN FDB.

Allow clearing the offload indication in case the corresponding entry
was deleted from the VxLAN FDB.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
drivers/net/ethernet/rocker/rocker_main.c
include/net/switchdev.h
net/bridge/br.c
net/bridge/br_fdb.c
net/bridge/br_private.h
net/bridge/br_switchdev.c
net/dsa/slave.c